@charset "UTF-8";

/* 排行榜页整体改版 — 保留 top-nav / hover 展开 / 链接交互 */

body.p-top .rank-page .top-head-wr,
body.p-top .rank-page .top-nav,
body.p-top .rank-page .top-list__wr {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  overflow: visible !important;
}

body.p-top .rank-page .top-list__wr.clearfix::after,
body.p-top .rank-page .top-list__box.clearfix::after {
  display: none !important;
}

body.p-top .rank-page .top-list__box-item {
  float: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

body.p-top .rank-page .top-list__box-item:hover {
  transform: translateY(-2px);
  border-color: rgba(66, 232, 180, .28) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}


body.p-top .rank-page {
  /* 勿用 100vw：cyber-dock 下会溢出，触发 body overflow-x:clip 进而裁切纵向内容 */
  width: calc(100% - 96px);
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 0 56px;
  box-sizing: border-box;
  overflow: visible;
}

body:has(.cyber-dock).p-top .rank-page {
  width: calc(100% - 96px) !important;
  max-width: 1360px !important;
}

/* —— 页头 —— */
body.p-top .rank-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding: 28px 28px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  background:
    linear-gradient(135deg, rgba(255, 98, 14, .12) 0%, transparent 42%),
    linear-gradient(225deg, rgba(66, 232, 180, .1) 0%, transparent 38%),
    rgba(255, 255, 255, .03);
}

body.p-top .rank-hero__badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 98, 14, .15);
  border: 1px solid rgba(255, 98, 14, .25);
}

body.p-top .rank-hero__badge .iconfont {
  font-size: 28px;
  color: #ff620e;
}

body.p-top .rank-hero__site {
  margin: 0 0 4px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(232, 242, 246, .5);
}

body.p-top .rank-hero__title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  line-height: 1.2;
}

body.p-top .rank-hero__desc {
  margin: 8px 0 0;
  font-size: 14px;
  color: rgba(232, 242, 246, .55);
  line-height: 1.5;
}

/* 隐藏旧版头部装饰 */
body.p-top .rank-page .top-head-wr {
  display: none !important;
}

/* —— 榜单 Tab —— */
body.p-top .rank-page .top-nav.rank-tabs {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 20px 0 0 !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  background: rgba(16, 17, 25, .92) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .08) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .25);
}

body.p-top .rank-page .top-nav > ul {
  gap: 6px !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

body.p-top .rank-page .top-nav > ul::-webkit-scrollbar {
  display: none;
}

body.p-top .rank-page .top-nav__item a {
  height: 38px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  border: 1px solid transparent;
}

body.p-top .rank-page .top-nav__item.active a {
  background: rgba(255, 98, 14, .2) !important;
  border-color: rgba(255, 98, 14, .35) !important;
  color: #fff !important;
}

body.p-top .rank-page .top-nav__item a:hover {
  background: rgba(255, 255, 255, .06) !important;
  border-color: rgba(255, 255, 255, .1) !important;
}

/* —— 全部榜单：多栏概览 —— */
body.p-top .rank-page .top-list__wr:not(:has(.top-list__box)) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
  margin-top: 24px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media screen and (min-width: 1400px) {
  body.p-top .rank-page .top-list__wr:not(:has(.top-list__box)) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media screen and (max-width: 860px) {
  body.p-top .rank-page .top-list__wr:not(:has(.top-list__box)) {
    grid-template-columns: 1fr !important;
  }
}

body.p-top .rank-page .top-list {
  min-height: 0 !important;
  padding: 16px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, .03) !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .2) !important;
}

body.p-top .rank-page .top-list__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto !important;
  margin-bottom: 12px !important;
  padding-bottom: 10px;
  line-height: 1.3 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

body.p-top .rank-page .top-list__head > span {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

body.p-top .rank-page .top-list__head .more {
  font-size: 12px !important;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(66, 232, 180, .1);
  text-decoration: none;
}

body.p-top .rank-page .top-list__item--first {
  margin-bottom: 12px !important;
  padding: 12px 12px 12px 96px !important;
  min-height: 130px !important;
  border-radius: 10px !important;
  background: rgba(255, 98, 14, .08) !important;
  border: 1px solid rgba(255, 98, 14, .2) !important;
}

body.p-top .rank-page .top-list__item--first .cover {
  width: 76px !important;
  height: 102px !important;
  left: 12px !important;
  top: 12px !important;
  border-radius: 8px !important;
}

body.p-top .rank-page .top-list__item {
  min-height: 40px !important;
  padding: 6px 4px !important;
  border-bottom-color: rgba(255, 255, 255, .06) !important;
}

body.p-top .rank-page .top-list__item .comic-title a {
  color: rgba(232, 242, 246, .88) !important;
  font-size: 13px !important;
}

body.p-top .rank-page .top-list__item .comic-count {
  font-size: 12px !important;
}

/* hover 展开：保持 comic-hall 逻辑，微调比例 */
body.p-top .rank-page .top-list__item:hover {
  min-height: 132px !important;
  padding: 12px 52px 12px 96px !important;
  border-radius: 8px;
  background: rgba(255, 255, 255, .04) !important;
}

body.p-top .rank-page .top-list__item:hover > .tag {
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  font-size: 15px !important;
}

/* —— 单榜单页 —— */
body.p-top .rank-page .top-list__wr:has(.top-list__box) {
  margin-top: 24px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 24px !important;
  border-radius: 14px !important;
  overflow: visible !important;
  height: auto !important;
}

body.p-top .rank-page .top-list__wr:has(.top-list__box) .top-list__box {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  overflow: visible !important;
  height: auto !important;
}
body.p-top .rank-page .top-list__wr:has(.top-list__box) .top-list__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px !important;
  padding-bottom: 14px !important;
  font-size: 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

body.p-top .rank-page .top-list__wr:has(.top-list__box) .top-list__title::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ff620e, #42e8b4);
}

/* 前三名领奖台 */
body.p-top .rank-page .top-list__box-item:nth-child(1),
body.p-top .rank-page .top-list__box-item:nth-child(2),
body.p-top .rank-page .top-list__box-item:nth-child(3) {
  grid-column: span 4;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 20px 16px 16px !important;
  min-height: 0 !important;
  text-align: center;
  border-radius: 12px !important;
  overflow: visible !important;
}

body.p-top .rank-page .top-list__box-item:nth-child(1) {
  background: linear-gradient(180deg, rgba(255, 184, 77, .14), rgba(255, 255, 255, .03)) !important;
  border-color: rgba(255, 184, 77, .3) !important;
}

body.p-top .rank-page .top-list__box-item:nth-child(2) {
  background: linear-gradient(180deg, rgba(192, 192, 192, .12), rgba(255, 255, 255, .03)) !important;
  border-color: rgba(192, 192, 192, .25) !important;
}

body.p-top .rank-page .top-list__box-item:nth-child(3) {
  background: linear-gradient(180deg, rgba(205, 127, 50, .12), rgba(255, 255, 255, .03)) !important;
  border-color: rgba(205, 127, 50, .25) !important;
}

body.p-top .rank-page .top-list__box-item:nth-child(-n+3) .tag {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  margin: 0 0 12px !important;
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1 !important;
  border-radius: 50%;
  z-index: 1;
}

body.p-top .rank-page .top-list__box-item:nth-child(1) .tag {
  color: #1a1408 !important;
  background: linear-gradient(135deg, #ffd76a, #ffb84d) !important;
}

body.p-top .rank-page .top-list__box-item:nth-child(2) .tag {
  color: #1a1a1a !important;
  background: linear-gradient(135deg, #e8e8e8, #b8b8b8) !important;
}

body.p-top .rank-page .top-list__box-item:nth-child(3) .tag {
  color: #1a1008 !important;
  background: linear-gradient(135deg, #e8a86a, #cd7f32) !important;
}

body.p-top .rank-page .top-list__box-item:nth-child(-n+3) .cover {
  position: relative !important;
  float: none !important;
  left: auto !important;
  top: auto !important;
  display: block !important;
  width: 100px !important;
  height: 134px !important;
  margin: 0 0 12px !important;
  border-radius: 8px !important;
  overflow: hidden;
  flex-shrink: 0;
}

body.p-top .rank-page .top-list__box-item:nth-child(-n+3) .cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

body.p-top .rank-page .top-list__box-item:nth-child(-n+3) .comic__title,
body.p-top .rank-page .top-list__box-item:nth-child(-n+3) .comic-author,
body.p-top .rank-page .top-list__box-item:nth-child(-n+3) .comic-feature,
body.p-top .rank-page .top-list__box-item:nth-child(-n+3) .comic-update,
body.p-top .rank-page .top-list__box-item:nth-child(-n+3) .comic-count {
  float: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  text-align: center;
}

body.p-top .rank-page .top-list__box-item:nth-child(-n+3) .comic__title {
  margin-top: 0 !important;
  font-size: 15px !important;
}

body.p-top .rank-page .top-list__box-item:nth-child(-n+3) .comic-author,
body.p-top .rank-page .top-list__box-item:nth-child(-n+3) .comic-feature {
  font-size: 12px !important;
}

body.p-top .rank-page .top-list__box-item:nth-child(-n+3) .comic-feature {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 第 4 名起：双列紧凑横卡 */
body.p-top .rank-page .top-list__box-item:nth-child(n+4) {
  grid-column: span 6;
  position: relative !important;
  padding: 12px 14px 12px 96px !important;
  min-height: 120px !important;
  height: auto !important;
  overflow: hidden;
}

body.p-top .rank-page .top-list__box-item:nth-child(n+4) .cover {
  position: absolute !important;
  width: 72px !important;
  height: 96px !important;
  left: 12px !important;
  top: 12px !important;
  float: none !important;
}

body.p-top .rank-page .top-list__box-item:nth-child(n+4) .tag {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  width: 26px !important;
  height: 26px !important;
  font-size: 12px !important;
  line-height: 26px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.p-top .rank-page .top-list__box-item:nth-child(n+4) .comic__title a {
  font-size: 14px !important;
}

@media screen and (max-width: 900px) {
  body.p-top .rank-page {
    width: calc(100% - 24px);
  }

  body.p-top .rank-page .top-list__box-item:nth-child(1),
  body.p-top .rank-page .top-list__box-item:nth-child(2),
  body.p-top .rank-page .top-list__box-item:nth-child(3),
  body.p-top .rank-page .top-list__box-item:nth-child(n+4) {
    grid-column: span 12;
  }
}

@media screen and (min-width: 1400px) {
  body.p-top .rank-page .top-list__box-item:nth-child(-n+3) .cover {
    width: 118px !important;
    height: 158px !important;
  }

  body.p-top .rank-page .top-list__box-item:nth-child(-n+3) {
    padding: 24px 20px 18px !important;
  }

  body.p-top .rank-page .top-list__box-item:nth-child(n+4) {
    padding: 14px 16px 14px 108px !important;
    min-height: 118px !important;
  }

  body.p-top .rank-page .top-list__box-item:nth-child(n+4) .cover {
    width: 80px !important;
    height: 106px !important;
  }
}
