@charset "UTF-8";

body.p-top {
  min-width: 1180px;
  color: #1f2b3d;
  background: #f3f6f8 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Keep the ranking shell aligned with the PC homepage. */
.p-top .in-header {
  height: 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 26px rgba(25, 35, 53, 0.06);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  transition: background 0.22s ease, box-shadow 0.22s ease;
}

.p-top .in-header.is-portal-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(25, 35, 53, 0.1);
}

.p-top .in-header__wrap,
.p-top .top-nav,
.p-top .top-list__wr,
.p-top .modern-bottom .portal-footer-compact {
  width: 1500px !important;
  max-width: none;
  box-sizing: border-box;
}

.p-top .in-header__wrap {
  display: flex;
  align-items: center;
  height: 72px;
}

.p-top .in-header__logo {
  flex: 0 0 149px;
  float: none;
  margin: 0 24px 0 0;
}

.p-top .in-header__nav {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  float: none;
  height: 44px;
  margin: 0 24px 0 0;
  line-height: 44px;
}

.p-top .in-header__nav > ul {
  display: flex;
  align-items: center;
  height: 44px;
}

.p-top .in-header__nav .nav-item {
  float: none;
  width: auto;
  min-width: 52px;
  margin-left: 0 !important;
  padding: 0 9px;
  color: #465064;
  font-size: 15px;
  font-weight: 650;
}

.p-top .in-header__nav .nav-item:hover > a,
.p-top .in-header__nav .nav-item.active > a {
  color: #0787e8 !important;
}

.p-top .in-header__nav .underline {
  left: 50%;
  bottom: 1px;
  width: 18px;
  height: 3px;
  margin-left: -9px;
  background: #0787e8 !important;
}

.p-top .in-header__search {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  float: none;
  min-width: 250px;
  max-width: 340px;
  height: 40px;
  margin: 0 auto 0 clamp(32px, 3vw, 56px) !important;
  padding: 0;
  border: 1px solid rgba(25, 35, 53, 0.07);
  border-radius: 12px;
  background: rgba(241, 244, 247, 0.9);
  box-sizing: border-box;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.p-top .in-header__search:focus-within {
  border-color: rgba(7, 135, 232, 0.28);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(7, 135, 232, 0.08);
}

.p-top .modern-header .in-header__search .input,
.p-top .modern-header .in-header__search .input:focus {
  flex: 1 1 auto;
  float: none;
  width: auto !important;
  min-width: 0;
  height: 38px;
  padding: 0 15px;
  border: 0 !important;
  border-radius: 11px 0 0 11px !important;
  outline: 0;
  color: #283247 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 14px;
  text-indent: 0;
}

.p-top .modern-header .in-header__search .button {
  flex: 0 0 44px;
  float: none;
  width: 44px !important;
  height: 40px;
  border-radius: 0 12px 12px 0 !important;
  background: linear-gradient(135deg, #16a8f5, #0878e8) !important;
  box-shadow: 0 6px 14px rgba(7, 135, 232, 0.22);
  transition: background 0.18s ease, transform 0.18s ease;
}

.p-top .modern-header .in-header__search .button::before {
  content: none !important;
}

.p-top .modern-header .in-header__search .button:hover {
  background: linear-gradient(135deg, #27b4fb, #076fdb) !important;
  transform: translateY(-1px);
}

.p-top .in-header__user {
  display: flex !important;
  flex: 0 0 auto;
  align-items: center;
  float: none;
  height: 72px;
}

.p-top .in-header__user .user-item {
  margin: 0 !important;
  padding: 8px 12px;
  border-radius: 10px;
  color: #626d7f;
}

.p-top .in-header__user .user-item:hover {
  color: #0787e8;
  background: rgba(7, 135, 232, 0.07);
}

.p-top .in-header__avatar {
  flex: 0 0 40px;
  float: none;
  margin: 0 0 0 8px;
}

.p-top .modern-bottom.footer-wrapper {
  margin-top: 72px !important;
}

.p-top .top-nav {
  position: sticky;
  top: 0;
  z-index: 120;
  height: auto !important;
  min-height: 56px;
  margin-top: 28px;
  margin-bottom: 30px !important;
  padding: 7px 9px !important;
  border: 1px solid rgba(34, 52, 76, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 10px 30px rgba(31, 48, 70, 0.07);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-sizing: border-box;
}

.p-top .top-nav ul {
  display: flex;
  align-items: center;
  min-height: 40px;
}

.p-top .top-nav__item {
  float: none;
  margin: 0 3px !important;
  color: #667386;
  font-size: 14px;
  line-height: 1;
}

.p-top .top-nav__item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 76px;
  height: 40px;
  padding: 0 15px;
  border-radius: 6px;
  color: inherit;
  box-sizing: border-box;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.p-top .top-nav__item:not(.active) a:hover {
  color: #0874c4;
  background: rgba(7, 135, 232, 0.07);
  transform: translateY(-1px);
}

.p-top .top-nav__item.active a {
  color: #fff !important;
  background: linear-gradient(135deg, #13a7e8, #0878df);
  box-shadow: 0 7px 18px rgba(7, 135, 232, 0.34), inset 0 1px rgba(255, 255, 255, 0.24);
  font-weight: 700;
}

.p-top .top-nav__item.active .iconfont {
  color: currentColor !important;
}

.p-top .top-list__wr {
  margin-top: 0;
  margin-bottom: 44px;
}

.p-rank-grid .top-list__title {
  margin-bottom: 20px !important;
  padding: 0 !important;
  border: 0;
  line-height: 1.2;
}

.p-rank-grid .top-list__title span {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-left: 16px !important;
  border: 0 !important;
  color: #1d2a3e !important;
  font-size: 25px !important;
  font-weight: 800 !important;
  letter-spacing: 0;
}

.p-rank-grid .top-list__title > span::before,
.p-rank-overview .top-list__head > span::before {
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 20px;
  border-radius: 3px;
  content: "";
  background: linear-gradient(180deg, #18b7e9, #0876dc);
  box-shadow: 0 0 12px rgba(7, 135, 232, 0.24);
  transform: translateY(-50%);
}

.p-rank-grid .top-list__box {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 18px;
  width: 100% !important;
  margin-top: 0;
}

.p-rank-grid .top-list__box::before,
.p-rank-grid .top-list__box::after {
  display: none;
}

.p-rank-grid .top-list__box-item {
  position: relative;
  float: none;
  display: flex;
  flex-direction: column;
  width: auto !important;
  min-width: 0;
  height: auto !important;
  min-height: 382px;
  margin: 0 !important;
  padding: 13px !important;
  overflow: hidden;
  border: 1px solid rgba(31, 50, 74, 0.07) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 12px 32px rgba(31, 50, 74, 0.105) !important;
  box-sizing: border-box;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease !important;
}

.p-rank-grid .top-list__box-item:hover {
  z-index: 2;
  border-color: rgba(7, 135, 232, 0.18) !important;
  box-shadow: 0 18px 38px rgba(31, 50, 74, 0.13) !important;
  transform: translateY(-6px);
}

.p-rank-grid .top-list__box-item .cover {
  position: relative;
  float: none;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 0 13px !important;
  overflow: hidden !important;
  border-radius: 7px !important;
  background: #e9eef3;
  aspect-ratio: 3 / 4;
  box-shadow: 0 8px 20px rgba(25, 41, 61, 0.12);
}

.p-rank-grid .top-list__box-item .cover-update {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  display: block;
  width: max-content;
  max-width: calc(100% - 20px);
  padding: 5px 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(8, 17, 30, 0.58);
  box-shadow: 0 6px 16px rgba(4, 10, 18, 0.18), inset 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-sizing: border-box;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.p-rank-grid .top-list__box-item .cover img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) !important;
}

.p-rank-grid .top-list__box-item:hover .cover img {
  transform: scale(1.045);
}

.p-rank-grid .top-list__box-item .comic__title {
  min-width: 0;
  margin: 0 0 7px !important;
  line-height: 1.45;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.p-rank-grid .top-list__box-item .comic__title a {
  color: #243249 !important;
  font-size: 16px !important;
  font-weight: 750 !important;
}

.p-rank-grid .top-list__box-item .comic-author,
.p-rank-grid .top-list__box-item .comic-update {
  min-width: 0;
  margin: 2px 0 !important;
  color: #7c8898 !important;
  font-size: 12px !important;
  line-height: 1.55;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.p-rank-grid .top-list__box-item .comic-author a {
  color: inherit;
}

.p-rank-grid .top-list__box-item .comic-update .hl {
  color: #0879ca !important;
  font-weight: 650;
}

.p-rank-grid .top-list__box-item .comic-feature {
  display: none !important;
}

.p-rank-grid .top-list__box-item .comic-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: auto 0 0 !important;
  padding-top: 7px;
  border-top: 0;
  color: #8792a2 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.4;
}

.p-rank-grid .top-list__box-item .comic-count .layui-icon {
  color: #3b94c8;
  font-size: 13px;
  line-height: 1;
}

.p-rank-grid .top-list__box-item .tag {
  position: absolute;
  top: 23px;
  left: 23px;
  right: auto;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px !important;
  height: 34px !important;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50% !important;
  color: #fff !important;
  background: rgba(7, 14, 25, 0.5) !important;
  box-shadow: 0 7px 18px rgba(4, 10, 19, 0.2), inset 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  box-sizing: border-box;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  line-height: 1 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.p-rank-grid .top-list__box-item .tag--1,
.p-rank-overview .top-list__item--first .tag--first {
  border-color: rgba(255, 238, 174, 0.78) !important;
  color: #5f3a10 !important;
  background: linear-gradient(145deg, #fff3bd 0%, #e4b14e 48%, #a96718 100%) !important;
  background-size: 180% 180% !important;
  box-shadow: 0 8px 20px rgba(181, 115, 25, 0.34), inset 0 1px rgba(255, 255, 255, 0.72) !important;
  text-shadow: 0 1px rgba(255, 255, 255, 0.45);
  animation: rank-metal-shimmer 4s ease-in-out infinite;
}

.p-rank-grid .top-list__box-item .tag--2,
.p-rank-overview .top-list__item .tag--2 {
  border-color: rgba(230, 237, 245, 0.82) !important;
  color: #495665 !important;
  background: linear-gradient(145deg, #fff 0%, #d7e0e8 50%, #8e9dac 100%) !important;
  box-shadow: 0 7px 18px rgba(87, 105, 124, 0.23), inset 0 1px #fff !important;
  text-shadow: 0 1px rgba(255, 255, 255, 0.6);
}

.p-rank-grid .top-list__box-item .tag--3,
.p-rank-overview .top-list__item .tag--3 {
  border-color: rgba(242, 196, 168, 0.78) !important;
  color: #62331f !important;
  background: linear-gradient(145deg, #f8d2bb 0%, #c88259 52%, #8d482e 100%) !important;
  box-shadow: 0 7px 18px rgba(128, 66, 40, 0.22), inset 0 1px rgba(255, 255, 255, 0.64) !important;
  text-shadow: 0 1px rgba(255, 255, 255, 0.36);
}

.p-rank-grid .top-list__box-item .tag--1 {
  width: 40px !important;
  height: 40px !important;
  font-size: 16px;
}

.p-rank-grid .top-list__box-item .tag--1::before {
  position: absolute;
  top: 4px;
  left: 0;
  width: 100%;
  content: "TOP";
  font-size: 6px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.p-rank-grid .top-list__box-item .tag--1 {
  padding-top: 7px;
}

.p-rank-overview .top-list__wr {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.p-rank-overview .top-list__wr::before,
.p-rank-overview .top-list__wr::after {
  display: none;
}

.p-rank-overview .top-list__wr .top-list {
  float: none;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 18px !important;
  border: 1px solid rgba(31, 50, 74, 0.07) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 12px 32px rgba(31, 50, 74, 0.07) !important;
  box-sizing: border-box;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease !important;
}

.p-rank-overview .top-list__wr .top-list:hover {
  z-index: 2;
  border-color: rgba(7, 135, 232, 0.15) !important;
  box-shadow: 0 18px 42px rgba(31, 50, 74, 0.11) !important;
  transform: translateY(-3px);
}

.p-rank-overview .top-list__head {
  min-height: 32px;
  margin-bottom: 15px !important;
  padding: 0 0 13px !important;
  border-bottom: 1px solid rgba(31, 50, 74, 0.08) !important;
}

.p-rank-overview .top-list__head > span {
  position: relative;
  padding-left: 14px !important;
  border: 0 !important;
  color: #223149 !important;
  font-size: 19px !important;
  font-weight: 800 !important;
}

.p-rank-overview .top-list__head .more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #7d8999 !important;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 24px;
  transition: color 0.18s ease, transform 0.18s ease;
}

.p-rank-overview .top-list__head .more svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.p-rank-overview .top-list__head .more:hover {
  color: #0878cc !important;
  transform: translateX(2px);
}

.p-rank-overview .top-list__item--first {
  min-height: 156px;
  height: auto;
  margin-bottom: 8px !important;
  padding: 8px 0 14px !important;
  border-bottom: 1px solid rgba(31, 50, 74, 0.08) !important;
}

.p-rank-overview .top-list__item--first .cover {
  width: 104px;
  height: 139px;
  margin-right: 14px;
  overflow: hidden;
  border-radius: 7px !important;
  box-shadow: 0 10px 24px rgba(28, 45, 66, 0.16) !important;
}

.p-rank-overview .top-list__item--first .cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-rank-overview .top-list__item--first .comic-title {
  margin-top: 8px;
}

.p-rank-overview .top-list__item--first .comic-title a {
  color: #243249;
  font-size: 16px !important;
  font-weight: 750 !important;
}

.p-rank-overview .top-list__item--first .comic-author,
.p-rank-overview .top-list__item--first .comic-feature,
.p-rank-overview .top-list__item--first .comic-update,
.p-rank-overview .top-list__item--first .comic-count {
  margin: 5px 0;
  color: #7d8998 !important;
  font-size: 12px;
  line-height: 1.55;
}

.p-rank-overview .top-list__item--first .comic-feature {
  display: none;
}

.p-rank-overview .top-list__item--first .comic-update .hl {
  color: #0787e8 !important;
  font-weight: 700;
}

.p-rank-overview .top-list__item--first .comic-count,
.p-rank-overview .top-list__item .comic-count {
  color: #8792a2 !important;
  font-weight: 600 !important;
}

.p-rank-overview .top-list__item--first .tag--first {
  top: 14px;
  right: auto;
  left: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid;
  border-radius: 50%;
  box-sizing: border-box;
}

.p-rank-overview .top-list__item--first .tag--first::before {
  content: "1";
  font-size: 14px;
  font-weight: 850;
}

.p-rank-overview .top-list__item {
  height: 42px;
  padding: 0 8px;
  border-bottom: 1px solid rgba(31, 50, 74, 0.055);
  border-radius: 6px;
  line-height: 42px;
  box-sizing: border-box;
  transition: background 0.18s ease, transform 0.18s ease;
}

.p-rank-overview .top-list__item:hover {
  background: rgba(7, 135, 232, 0.05) !important;
  transform: translateX(3px);
}

.p-rank-overview .top-list__item .tag {
  display: inline-flex;
  float: left;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  margin: 9px 9px 0 0;
  border: 1px solid rgba(43, 61, 83, 0.08);
  border-radius: 50% !important;
  color: #718094 !important;
  background: linear-gradient(145deg, #f6f8fa, #e9eef3) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-style: normal;
  font-weight: 800 !important;
  line-height: 1;
}

.p-rank-overview .top-list__item .tag--2 {
  border-color: rgba(240, 246, 252, 0.9) !important;
  color: #fff !important;
  background: linear-gradient(145deg, #edf3f8 0%, #aebdca 48%, #718191 100%) !important;
  box-shadow: 0 5px 14px rgba(89, 106, 124, 0.3), inset 0 1px rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 3px rgba(48, 61, 75, 0.48);
}

.p-rank-overview .top-list__item .tag--3 {
  border-color: rgba(245, 183, 139, 0.82) !important;
  color: #fff !important;
  background: linear-gradient(145deg, #eaa06d 0%, #c86632 50%, #8f331c 100%) !important;
  box-shadow: 0 5px 14px rgba(145, 58, 28, 0.3), inset 0 1px rgba(255, 255, 255, 0.42) !important;
  text-shadow: 0 1px 3px rgba(82, 31, 16, 0.5);
}

.p-rank-overview .top-list__item .comic-title {
  max-width: calc(100% - 154px);
  color: #35445a;
  font-size: 14px;
  font-weight: 650;
}

.p-rank-overview .top-list__item .comic-count {
  max-width: 112px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.p-rank-overview .top-list__item .comic-count {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  height: 42px;
}

.p-rank-overview .top-list__item .comic-count svg {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #3b94c8;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1579px) and (min-width: 1281px) {
  .p-top .in-header__wrap,
  .p-top .top-nav,
  .p-top .top-list__wr,
  .p-top .modern-bottom .portal-footer-compact {
    width: calc(100% - 80px) !important;
  }
}

@media (min-width: 1600px) {
  .p-rank-grid .top-list__box {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.p-rank-overview .top-list__item-detail {
  display: none !important;
}

@keyframes rank-metal-shimmer {
  0%, 100% { background-position: 0 50%; }
  50% { background-position: 100% 50%; }
}

@media (max-width: 1280px) {
  .p-top .in-header__wrap,
  .p-top .top-nav,
  .p-top .top-list__wr,
  .p-top .modern-bottom .portal-footer-compact {
    width: 1120px !important;
  }

  .p-top .in-header__nav {
    margin-right: 12px;
  }

  .p-top .in-header__nav .nav-item {
    min-width: 46px;
    padding-right: 6px;
    padding-left: 6px;
  }

  .p-top .in-header__search {
    max-width: 300px;
    margin-right: auto !important;
    margin-left: 32px !important;
  }
}

@media (max-width: 1239px) {
  .p-rank-grid .top-list__box {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .p-top *,
  .p-top *::before,
  .p-top *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
