/* 榜单页：冷白资料手册，保留喵数据品牌蓝 */
.rankings-page {
  --rank-paper: #f0f3f6;
  --rank-white: #ffffff;
  --rank-ink: #18222d;
  --rank-copy: #40505f;
  --rank-muted: #6e7c89;
  --rank-line: #d4dce3;
  --rank-blue: #1268c9;
  --rank-blue-soft: #e0eaf4;
  background: var(--rank-paper);
  color: var(--rank-ink);
}

.rankings-shell {
  max-width: 1320px;
  padding-top: 34px;
  padding-bottom: 76px;
}

.rankings-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 34px;
  padding: 10px 0 26px;
  margin-bottom: 21px;
  border: 0;
  border-bottom: 2px solid var(--rank-ink);
}
.hero-copy { max-width: 680px; }
.rankings-hero h1 {
  color: var(--rank-ink);
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 760;
  letter-spacing: -.06em;
  line-height: 1.08;
}
.rankings-hero p {
  max-width: 620px;
  margin-top: 13px;
  color: var(--rank-copy);
  font-size: 14px;
  line-height: 1.8;
}
.rankings-hero .head-meta {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  align-items: end;
  gap: 0;
  padding: 3px 0 2px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.rankings-hero .hm-item {
  min-width: 82px;
  padding: 0 17px;
  border-left: 1px solid #bdc8d2;
  text-align: left;
}
.rankings-hero .hm-item:first-child { padding-left: 0; border-left: 0; }
.rankings-hero .hm-item .v {
  color: var(--rank-ink);
  font-size: 29px;
  font-weight: 720;
  letter-spacing: -.045em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.rankings-hero .hm-item .k { margin-top: 7px; color: var(--rank-muted); font-size: 11px; letter-spacing: 0; }
.rankings-hero .hm-item-date .v { color: var(--rank-blue); font: 700 13px/1.8 "Bahnschrift", "Arial", sans-serif; letter-spacing: 0; }

.rankings-page .notice {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin: 0 0 25px;
  padding: 11px 14px;
  border: 0;
  border-left: 3px solid var(--rank-blue);
  border-radius: 0;
  background: #e3e9ee;
  color: var(--rank-copy);
  font-size: 11.5px;
  line-height: 1.7;
}
.notice-mark { flex: none; color: var(--rank-blue); font-size: 10px; font-weight: 750; }
.notice-copy b { color: var(--rank-ink); font-weight: 700; }

.catalog-layout {
  display: grid;
  grid-template-columns: 192px minmax(0, 1fr);
  align-items: start;
  gap: 34px;
}
.catalog-nav { position: sticky; top: 86px; }
.catalog-nav h2 {
  margin: 0;
  padding: 0 0 11px;
  border-bottom: 2px solid var(--rank-ink);
  color: var(--rank-ink);
  font-size: 14px;
  font-weight: 700;
}
.board-index { display: flex; flex-direction: column; }
.board-index a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  padding: 11px 5px;
  border-bottom: 1px solid var(--rank-line);
  color: var(--rank-copy);
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
  transition: color .12s ease, background-color .12s ease;
}
.board-index a span { color: var(--rank-blue); font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.board-index a:hover { background: #e4ebf1; color: var(--rank-ink); }

.catalog-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 11px;
  border-bottom: 2px solid var(--rank-ink);
}
.catalog-heading h2 { margin: 0; color: var(--rank-ink); font-size: 20px; font-weight: 720; letter-spacing: -.035em; }
.catalog-heading span { color: var(--rank-muted); font-size: 11px; }

.rankings-page .grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 24px 20px;
  margin-top: 15px;
}
.rankings-page .mod {
  position: relative;
  grid-column: span 6;
  min-width: 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid #9eabb7;
  border-bottom: 1px solid var(--rank-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scroll-margin-top: 90px;
}
.rankings-page .mod:hover { border-top-color: var(--rank-blue); }
.rankings-page .mod:first-child {
  grid-column: span 12;
  padding: 0 16px 13px;
  border: 0;
  border-top: 4px solid var(--rank-blue);
  border-bottom: 1px solid #bdc8d2;
  background: var(--rank-white);
}
.rankings-page .mod:nth-child(8) {
  grid-column: span 12;
  padding: 0 16px 13px;
  border-top: 2px solid var(--rank-ink);
  border-bottom: 1px solid #bdc8d2;
  background: #e6edf3;
}
.rankings-page .mod-head { align-items: center; gap: 10px; padding: 12px 0 0; }
.rankings-page .mod-idx {
  display: inline-block;
  width: 25px;
  flex: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--rank-blue);
  font: 700 12px/1.4 "Bahnschrift", "Arial", sans-serif;
  font-variant-numeric: tabular-nums;
}
.rankings-page .mod-title { color: var(--rank-ink); font-size: 15px; font-weight: 700; letter-spacing: -.015em; }
.rankings-page .mod-src { margin-left: auto; max-width: 54%; color: #71808d; font-size: 10px; line-height: 1.5; text-align: right; }
.rankings-page .mod-body { padding: 10px 0 9px; }
.rankings-page .duo { gap: 0; }
.rankings-page .mod:first-child .mod-body .duo > div { padding: 4px 18px 2px 0; }
.rankings-page .mod:first-child .mod-body .duo > div + div { padding-right: 0; padding-left: 18px; border-left: 1px solid #e0e5e9; }
.rankings-page .duo .sub-h { margin-bottom: 7px; color: #71808d; font-size: 11px; letter-spacing: 0; }
.rankings-page .duo .sub-h b { color: var(--rank-ink); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.rankings-page .row {
  gap: 9px;
  min-width: 0;
  padding: 8px 5px;
  border-bottom-color: #e5e9ed;
  color: var(--rank-copy);
  font-size: 12px;
}
.rankings-page .row:hover { background: #f0f4f7; }
.rankings-page .rk { color: #87939e; font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rankings-page .rk.top { color: #687786; }
.rankings-page .row:nth-child(1) .rk.top { color: var(--rank-blue); font-weight: 800; }
.rankings-page .row:nth-child(2) .rk.top { color: #496477; }
.rankings-page .rn { color: #273541; }
.rankings-page .rn small { margin-left: 5px; color: #84919c; font-size: 10px; }
.rankings-page .rv { color: #657481; font-size: 11px; font-variant-numeric: tabular-nums; }
.rankings-page .rv b { color: #1b2833; font-weight: 700; }
.rankings-page .bar-line { gap: 12px; padding: 7px 5px; font-size: 11px; }
.rankings-page .bar-name { width: 84px; color: #344452; }
.rankings-page .bar-track { height: 5px; border-radius: 0; background: #dfe5ea; }
.rankings-page .bar-fill { border-radius: 0; background: var(--rank-blue); opacity: .9; }
.rankings-page .bar-val { width: 60px; color: #6f7e8a; font-size: 11px; font-variant-numeric: tabular-nums; }
.rankings-page .bar-val b { color: #25333e; }
.rankings-page .mod:nth-child(8) .duo { grid-template-columns: minmax(250px, .55fr) minmax(0, 1fr); gap: 22px; }
.rankings-page .mod:nth-child(8) .duo > div:first-child { display: flex; min-height: 300px; flex-direction: column; justify-content: center; padding: 20px; border-left: 3px solid var(--rank-blue); background: #dbe5ed; }
.rankings-page .mod:nth-child(8) .duo > div:first-child .row:nth-child(2) { padding-top: 16px; padding-bottom: 16px; }
.rankings-page .mod:nth-child(8) .duo > div:first-child .row:nth-child(2) .rv { color: var(--rank-blue); font-size: 21px; }
.rankings-page .mod:nth-child(8) .duo > div:first-child .row:nth-child(2) .rv b { color: inherit; }
.rankings-page .mod:nth-child(8) .duo > div:first-child .row:nth-child(3) .rv b { color: var(--rank-blue); }
.rankings-page .entry { padding: 10px 4px; border-top: 1px solid #d9e0e5; }
.rankings-page .entry .e-ico { width: 42px; height: 38px; border: 0; border-radius: 0; background: #dce7f0; color: var(--rank-blue); font-size: 13px; font-weight: 800; }
.rankings-page .entry .e-txt b { color: var(--rank-ink); font-size: 13px; }
.rankings-page .entry .e-txt span { color: var(--rank-muted); font-size: 11px; }
.rankings-page .entry .e-go { padding: 5px 0; border: 0; border-bottom: 1px solid var(--rank-blue); border-radius: 0; color: var(--rank-blue); font-size: 11px; }
.rankings-page .entry .e-go:hover { background: transparent; color: #064d9d; }
.rankings-page .mod-note { padding: 0 0 10px; color: #7a8792; font-size: 10px; line-height: 1.6; }
.rankings-page .mod:focus { outline: 2px solid var(--rank-blue); outline-offset: 3px; }
.board-index a:focus-visible,
.rankings-page .entry .e-go:focus-visible { outline: 2px solid var(--rank-blue); outline-offset: 3px; }

.rankings-page footer { margin-top: 0; }

@media (max-width: 1000px) {
  .rankings-hero { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 22px; }
  .rankings-hero .head-meta { width: fit-content; }
  .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .catalog-nav { position: static; }
  .catalog-nav h2 { margin-bottom: 0; }
  .board-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .board-index a { padding-right: 10px; padding-left: 8px; }
}

@media (max-width: 680px) {
  .rankings-shell { padding: 24px 18px 56px; }
  .rankings-hero { gap: 18px; padding: 8px 0 20px; margin-bottom: 16px; }
  .rankings-hero h1 { font-size: clamp(40px, 10vw, 54px); }
  .rankings-hero p { margin-top: 10px; font-size: 12px; }
  .rankings-hero .head-meta { width: 100%; grid-template-columns: .85fr .95fr 1.3fr; }
  .rankings-hero .hm-item { min-width: 0; padding: 0 11px; }
  .rankings-hero .hm-item .v { font-size: 23px; }
  .rankings-hero .hm-item .k { font-size: 10px; }
  .rankings-hero .hm-item-date .v { font-size: 12px; }
  .rankings-page .notice { align-items: flex-start; gap: 9px; margin-bottom: 20px; padding: 10px 11px; font-size: 10.5px; }
  .catalog-heading { align-items: end; }
  .catalog-heading h2 { font-size: 18px; }
  .catalog-heading span { max-width: 150px; font-size: 10px; text-align: right; }
  .rankings-page .grid { gap: 19px 14px; }
  .rankings-page .mod,
  .rankings-page .mod:first-child,
  .rankings-page .mod:nth-child(8) { grid-column: span 12; }
  .rankings-page .mod:first-child,
  .rankings-page .mod:nth-child(8) { padding-right: 11px; padding-left: 11px; }
  .rankings-page .mod-src { max-width: 46%; font-size: 9px; }
  .rankings-page .mod-head { padding-top: 10px; }
  .rankings-page .mod-body { padding-top: 8px; }
  .rankings-page .mod:first-child .mod-body .duo > div { padding: 5px 0 8px; }
  .rankings-page .mod:first-child .mod-body .duo > div + div { padding-left: 0; border-left: 0; border-top: 1px solid #e0e5e9; }
  .rankings-page .duo { grid-template-columns: 1fr; }
  .rankings-page .mod:nth-child(8) .duo { grid-template-columns: 1fr; gap: 13px; }
  .rankings-page .mod:nth-child(8) .duo > div:first-child { min-height: auto; padding: 14px; }
}

@media (max-width: 420px) {
  .rankings-shell { padding-right: 14px; padding-left: 14px; }
  .board-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rankings-hero .hm-item { padding: 0 8px; }
  .rankings-hero .hm-item .v { font-size: 20px; }
  .rankings-hero .hm-item-date .v { font-size: 10px; }
  .rankings-page .mod-head { flex-wrap: wrap; }
  .rankings-page .mod-src { width: 100%; max-width: none; margin-left: 35px; text-align: left; }
  .rankings-page .row { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 7px; font-size: 11px; }
  .rankings-page .rv { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .board-index a { transition: none; }
}
