#rank-page {
  background: #f4f8f6;
  color: #142033;
}

#rank-page .hide {
  display: none !important;
}

#rank-page .pc-rank {
  padding: 16px 0 28px;
}

#rank-page .rank-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: #7b8a9d;
  font-size: 13px;
}

#rank-page .rank-crumb a {
  color: #5f7187;
}

#rank-page .rank-crumb a:hover {
  color: #0aa75a;
}

#rank-page .rank-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 8px;
  padding: 28px 34px;
  overflow: hidden;
  border: 1px solid #e0f1e9;
  border-radius: 8px;
  background:
    radial-gradient(circle at 74% 48%, rgba(12, 183, 99, .16), transparent 28%),
    linear-gradient(135deg, #fff 0%, #f1fbf6 100%);
  box-shadow: 0 10px 28px rgba(22, 82, 62, .06);
}

#rank-page .rank-hero:after {
  content: "";
  position: absolute;
  right: 26%;
  bottom: -18px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: rgba(11, 169, 91, .08);
}

#rank-page .rank-hero__main,
#rank-page .rank-hero__marks {
  position: relative;
  z-index: 1;
}

#rank-page .rank-hero__main p {
  margin: 0 0 8px;
  color: #0aa75a;
  font-size: 14px;
  font-weight: 600;
}

#rank-page .rank-hero h1 {
  margin: 0 0 10px;
  color: #111c2f;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: 0;
}

#rank-page .rank-hero__main div {
  color: #607086;
  font-size: 15px;
}

#rank-page .rank-hero__marks {
  display: grid;
  grid-template-columns: repeat(4, 98px);
  gap: 10px;
}

#rank-page .rank-hero__marks span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid #d9f1e5;
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  color: #239261;
  font-size: 13px;
  white-space: nowrap;
}

#rank-page .rank-tabs {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  padding: 10px;
  overflow-x: auto;
  border: 1px solid #e7edf0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(38, 62, 82, .04);
  scrollbar-width: none;
}

#rank-page .rank-tabs::-webkit-scrollbar {
  display: none;
}

#rank-page .rank-tabs a {
  flex: 0 0 auto;
  min-width: 104px;
  padding: 10px 18px;
  border-radius: 7px;
  color: #53667e;
  font-size: 14px;
  text-align: center;
}

#rank-page .rank-tabs a:hover,
#rank-page .rank-tabs a.is-active {
  background: #0aa75a;
  color: #fff;
}

#rank-page .rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
  margin-top: 16px;
}

#rank-page .rank-card,
#rank-page .rank-side-card,
#rank-page .rank-install,
#rank-page .rank-service {
  border: 1px solid #e7edf0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(35, 68, 55, .04);
}

#rank-page .rank-card__head,
#rank-page .rank-side-card h2,
#rank-page .rank-install h2 {
  min-height: 56px;
  border-bottom: 1px solid #edf1f3;
}

#rank-page .rank-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px;
}

#rank-page .rank-card__head h2,
#rank-page .rank-side-card h2,
#rank-page .rank-install h2 {
  margin: 0;
  color: #111c2f;
  font-size: 18px;
  line-height: 1.2;
}

#rank-page .rank-switch {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#rank-page .rank-switch li {
  min-width: 54px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #607086;
  cursor: pointer;
  font-size: 13px;
  text-align: center;
}

#rank-page .rank-switch li:hover,
#rank-page .rank-switch li.is-active {
  background: #e9f8f0;
  color: #0aa75a;
}

#rank-page .rank-list {
  margin: 0;
  padding: 0 22px 8px;
  list-style: none;
}

#rank-page .rank-item {
  display: grid;
  grid-template-columns: 44px 54px minmax(0, 1fr) 92px 76px 96px 92px;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  border-top: 1px dashed #e5ebef;
}

#rank-page .rank-list .rank-item:first-child {
  border-top: 0;
}

#rank-page .rank-item:hover {
  background: #fbfefc;
}

#rank-page .rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #eef3f6;
  color: #738197;
  font-weight: 700;
}

#rank-page .rank-num--1 {
  background: linear-gradient(135deg, #ff6d4a, #ffb136);
  color: #fff;
}

#rank-page .rank-num--2 {
  background: linear-gradient(135deg, #aeb8c5, #e7edf2);
  color: #fff;
}

#rank-page .rank-num--3 {
  background: linear-gradient(135deg, #ff8a18, #ffc04d);
  color: #fff;
}

#rank-page .rank-icon {
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 8px;
  background: #f2f6f7;
}

#rank-page .rank-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#rank-page .rank-info {
  min-width: 0;
}

#rank-page .rank-info h3 {
  margin: 0 0 5px;
  font-size: 15px;
  line-height: 1.25;
}

#rank-page .rank-info h3 a {
  display: block;
  overflow: hidden;
  color: #111c2f;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#rank-page .rank-info h3 a:hover {
  color: #0aa75a;
}

#rank-page .rank-info p {
  margin: 0;
  overflow: hidden;
  color: #8290a3;
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#rank-page .rank-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 92px;
  min-height: 26px;
  padding: 0 9px;
  overflow: hidden;
  border-radius: 6px;
  background: #eaf8f1;
  color: #0aa75a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#rank-page .rank-size,
#rank-page .rank-item time {
  color: #66778d;
  font-size: 13px;
  white-space: nowrap;
}

#rank-page .rank-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 6px;
  background: #0aa75a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

#rank-page .rank-btn:hover {
  background: #078f4d;
  color: #fff;
}

#rank-page .rank-sidebar {
  display: grid;
  gap: 14px;
}

#rank-page .rank-side-card h2,
#rank-page .rank-install h2 {
  display: flex;
  align-items: center;
  padding: 0 18px;
}

#rank-page .rank-side-list {
  margin: 0;
  padding: 10px 18px 14px;
  list-style: none;
}

#rank-page .rank-side-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 36px;
  border-bottom: 1px dashed #e6ecef;
}

#rank-page .rank-side-list li:last-child {
  border-bottom: 0;
}

#rank-page .rank-side-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #eef3f6;
  color: #738197;
  font-size: 12px;
  font-weight: 700;
}

#rank-page .rank-side-list li:nth-child(1) span,
#rank-page .rank-side-list li:nth-child(2) span,
#rank-page .rank-side-list li:nth-child(3) span {
  background: #ff8a18;
  color: #fff;
}

#rank-page .rank-side-list a {
  overflow: hidden;
  color: #253046;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#rank-page .rank-side-list a:hover {
  color: #0aa75a;
}

#rank-page .rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 18px 18px;
}

#rank-page .rank-tags a {
  padding: 7px 12px;
  border-radius: 999px;
  background: #f2f5f7;
  color: #607086;
  font-size: 13px;
}

#rank-page .rank-tags a:hover {
  background: #e9f8f0;
  color: #0aa75a;
}

#rank-page .rank-install {
  padding-bottom: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 82%, rgba(10, 167, 90, .18), transparent 28%),
    linear-gradient(135deg, #fff 0%, #eefaf4 100%);
}

#rank-page .rank-install p {
  margin: 16px 18px 18px;
  color: #607086;
  font-size: 14px;
}

#rank-page .rank-install a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 34px;
  margin-left: 18px;
  border: 1px solid #0aa75a;
  border-radius: 999px;
  color: #0aa75a;
  font-size: 14px;
}

#rank-page .rank-install a:hover {
  background: #0aa75a;
  color: #fff;
}

#rank-page .rank-service {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 16px;
  padding: 16px 20px;
}

#rank-page .rank-service div {
  position: relative;
  padding-left: 18px;
}

#rank-page .rank-service div:before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0aa75a;
}

#rank-page .rank-service strong {
  display: block;
  margin-bottom: 4px;
  color: #142033;
  font-size: 15px;
}

#rank-page .rank-service span {
  color: #607086;
  font-size: 13px;
}

#rank-page .rank-empty {
  padding: 38px 20px;
  color: #7b8a9d;
  text-align: center;
}

@media (max-width: 1180px) {
  #rank-page .rank-layout {
    grid-template-columns: 1fr;
  }

  #rank-page .rank-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  #rank-page .rank-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  #rank-page .rank-hero__marks {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #rank-page .rank-sidebar {
    grid-template-columns: 1fr;
  }

  #rank-page .rank-service {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 14px;
  }
}

@media (max-width: 760px) {
  #rank-page .pc-rank {
    padding: 10px 0 18px;
  }

  #rank-page .rank-crumb {
    display: none;
  }

  #rank-page .rank-hero {
    margin-top: 8px;
    padding: 22px 18px;
  }

  #rank-page .rank-hero h1 {
    font-size: 28px;
  }

  #rank-page .rank-hero__main div {
    font-size: 14px;
  }

  #rank-page .rank-hero__marks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #rank-page .rank-tabs {
    margin-top: 10px;
    padding: 8px;
  }

  #rank-page .rank-tabs a {
    min-width: 88px;
    padding: 9px 13px;
  }

  #rank-page .rank-layout {
    gap: 12px;
    margin-top: 12px;
  }

  #rank-page .rank-card__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
  }

  #rank-page .rank-list {
    padding: 0 14px 6px;
  }

  #rank-page .rank-item {
    grid-template-columns: 34px 44px minmax(0, 1fr) 78px;
    gap: 9px;
    min-height: 68px;
  }

  #rank-page .rank-icon {
    width: 42px;
    height: 42px;
  }

  #rank-page .rank-info h3 {
    font-size: 14px;
  }

  #rank-page .rank-tag,
  #rank-page .rank-item time {
    display: none;
  }

  #rank-page .rank-size {
    display: block;
    grid-column: 3 / 4;
    margin-top: -14px;
    color: #8290a3;
    font-size: 12px;
  }

  #rank-page .rank-btn {
    min-height: 32px;
    font-size: 13px;
  }

  #rank-page .rank-service {
    grid-template-columns: 1fr;
    margin-top: 12px;
  }
}

@media (max-width: 420px) {
  #rank-page .rank-hero__marks {
    grid-template-columns: 1fr 1fr;
  }

  #rank-page .rank-switch {
    width: 100%;
    overflow-x: auto;
  }

  #rank-page .rank-switch li {
    flex: 1 0 auto;
  }
}
