:root {
  --blue: #0b48a5;
  --blue-deep: #07347d;
  --blue-soft: #eaf2ff;
  --red: #e21a18;
  --red-deep: #bd1115;
  --yellow: #f8ba18;
  --ink: #101b2d;
  --ink-soft: #68748a;
  --line: #e5eaf1;
  --paper: #ffffff;
  --canvas: #f7f9fc;
  --shadow: 0 28px 70px rgba(22, 49, 91, .12);
  --spring: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Avenir Next", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid rgba(11, 72, 165, .35); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 9px 13px;
  color: #fff;
  background: var(--blue-deep);
  border-radius: 9px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.ranking-page { overflow: hidden; background: var(--canvas); }
.hero-section {
  position: relative;
  min-height: clamp(530px, 72vw, 780px);
  background: #eaf3fb;
}
.hero-label {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: clamp(18px, 4vw, 56px);
  left: clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,.96);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .17em;
  text-shadow: 0 2px 14px rgba(10, 49, 106, .28);
}
.hero-label span:last-child { font-size: 9px; letter-spacing: .13em; }
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
}
.hero-media::before,
.hero-media::after {
  position: absolute;
  z-index: 1;
  content: "";
  pointer-events: none;
}
.hero-media::before {
  inset: 0;
  background: linear-gradient(90deg, rgba(247,249,252,.96) 0%, rgba(247,249,252,0) 12%, rgba(247,249,252,0) 87%, rgba(247,249,252,.84) 100%);
  mix-blend-mode: normal;
}
.hero-media::after {
  right: 0;
  bottom: 0;
  left: 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(247,249,252,0) 0%, rgba(247,249,252,.08) 22%, rgba(247,249,252,.76) 72%, var(--canvas) 100%);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 17%;
  filter: saturate(1.08) contrast(1.02);
}

.ranking-card {
  position: relative;
  z-index: 3;
  width: min(1120px, calc(100% - 36px));
  margin: clamp(-112px, -10vw, -70px) auto 0;
  padding: clamp(24px, 4vw, 46px);
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 30px 30px 22px 22px;
  box-shadow: var(--shadow);
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-kicker {
  margin: 0 0 9px;
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .17em;
}
h1 {
  margin: 0;
  color: var(--blue-deep);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: .98;
}
.heading-meta { display: grid; justify-items: end; gap: 8px; padding-bottom: 3px; }
.data-cutoff {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .04em;
}
.agency-count { display: flex; align-items: baseline; gap: 7px; color: var(--ink-soft); }
.agency-count strong { color: var(--red); font-size: 28px; font-weight: 900; letter-spacing: -.06em; }
.agency-count span { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.board-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}
.board-tab {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  color: var(--blue);
  background: #fff;
  border: 1.5px solid #a9c4ef;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: transform 420ms var(--spring), background 420ms var(--spring), border-color 420ms var(--spring), color 420ms var(--spring), box-shadow 420ms var(--spring);
}
.board-tab span { max-width: 220px; font-size: clamp(12px, 1.5vw, 16px); font-weight: 900; line-height: 1.12; text-transform: uppercase; }
.board-tab small { flex: none; color: currentColor; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; opacity: .72; }
.board-tab:hover { transform: translateY(-2px); border-color: var(--blue); box-shadow: 0 10px 18px rgba(11,72,165,.12); }
.board-tab:active { transform: translateY(0) scale(.985); }
.board-tab.is-active { color: #fff; background: var(--red); border-color: var(--red); box-shadow: 0 12px 24px rgba(226,26,24,.18); }
.board-tab.is-active:hover { background: var(--red-deep); border-color: var(--red-deep); }

.board-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 26px;
  padding: 0 2px 12px;
  border-bottom: 1px solid var(--line);
}
.board-intro > div { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.board-intro strong { overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.status-line { width: 8px; height: 8px; flex: none; background: var(--red); border-radius: 50%; box-shadow: 0 0 0 5px rgba(226,26,24,.1); }
.board-unit { color: var(--ink-soft); font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }

.ranking-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.ranking-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(130px, 180px);
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  color: #fff;
  background: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ranking-head span:last-child { text-align: right; }
.ranking-list { max-height: 650px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #8aa9da #eff4fc; scrollbar-width: thin; }
.ranking-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(130px, 180px);
  align-items: center;
  min-height: 82px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  transition: background 280ms var(--spring), transform 280ms var(--spring);
}
.ranking-row:last-child { border-bottom: 0; }
.ranking-row:hover { background: #f9fbff; }
.rank-number { color: var(--blue); font-size: clamp(25px, 3vw, 38px); font-weight: 900; letter-spacing: -.07em; line-height: 1; }
.agency-name { min-width: 0; }
.agency-name strong { display: block; overflow: hidden; font-size: clamp(17px, 2vw, 23px); font-weight: 900; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.agency-value { display: flex; align-items: baseline; justify-content: flex-end; gap: 7px; white-space: nowrap; }
.agency-value strong { color: var(--ink); font-size: clamp(18px, 2.3vw, 29px); font-weight: 900; letter-spacing: -.06em; }
.agency-value span { color: var(--ink-soft); font-size: 10px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.ranking-row.is-rank-1,
.ranking-row.is-rank-2,
.ranking-row.is-rank-3 { min-height: 94px; border-bottom-color: rgba(255,255,255,.18); }
.ranking-row.is-rank-1 { color: #fff; background: linear-gradient(105deg, #062b68, #0b48a5); }
.ranking-row.is-rank-1:hover { background: linear-gradient(105deg, #041f4e, #083d8e); }
.ranking-row.is-rank-2 { color: #fff; background: linear-gradient(105deg, #2e66ad, #5485c4); }
.ranking-row.is-rank-2:hover { background: linear-gradient(105deg, #245591, #4775b0); }
.ranking-row.is-rank-3 { color: #12366c; background: linear-gradient(105deg, #91b1dc, #c0d2ed); }
.ranking-row.is-rank-3:hover { background: linear-gradient(105deg, #7e9fcf, #aec4e4); }
.ranking-row.is-rank-1 .rank-number,
.ranking-row.is-rank-2 .rank-number,
.ranking-row.is-rank-1 .agency-value strong,
.ranking-row.is-rank-2 .agency-value strong { color: #fff; }
.ranking-row.is-rank-1 .agency-value span,
.ranking-row.is-rank-2 .agency-value span { color: rgba(255,255,255,.8); }
.ranking-row.is-rank-3 .rank-number,
.ranking-row.is-rank-3 .agency-value strong { color: #12366c; }
.ranking-row.is-rank-3 .agency-value span { color: rgba(18,54,108,.72); }
.ranking-row.is-rank-1 .rank-number,
.ranking-row.is-rank-2 .rank-number,
.ranking-row.is-rank-3 .rank-number { font-size: clamp(31px, 3.6vw, 46px); }
.ranking-row.is-rank-1 .agency-name strong,
.ranking-row.is-rank-2 .agency-name strong,
.ranking-row.is-rank-3 .agency-name strong { font-size: clamp(19px, 2.3vw, 28px); }
.ranking-row.is-rank-1 .agency-value strong,
.ranking-row.is-rank-2 .agency-value strong,
.ranking-row.is-rank-3 .agency-value strong { font-size: clamp(22px, 2.7vw, 34px); }
.rank-empty { padding: 36px 20px; color: var(--ink-soft); text-align: center; }
.scroll-note { margin: 13px 0 0; color: var(--ink-soft); font-size: 11px; font-weight: 700; text-align: right; }

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 0 34px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.page-footer span:first-child { color: var(--blue); }

@media (max-width: 700px) {
  .hero-section { min-height: 610px; }
  .hero-label { top: 15px; display: grid; gap: 5px; }
  .hero-label span:last-child { font-size: 8px; }
  .hero-media img { object-position: center 13%; }
  .ranking-card { width: calc(100% - 20px); margin-top: -74px; padding: 24px 14px 20px; border-radius: 24px 24px 16px 16px; }
  .section-heading { align-items: flex-start; }
  .heading-meta { gap: 5px; padding-top: 3px; }
  .data-cutoff { font-size: 10px; white-space: nowrap; }
  h1 { font-size: 34px; }
  .agency-count { padding-top: 3px; }
  .agency-count strong { font-size: 23px; }
  .agency-count span { font-size: 9px; }
  .board-switch { gap: 8px; margin-top: 22px; }
  .board-tab { min-height: 70px; display: grid; align-content: center; justify-items: start; gap: 4px; padding: 11px 12px; }
  .board-tab span { max-width: none; font-size: 11px; line-height: 1.13; }
  .board-tab small { font-size: 9px; }
  .board-intro { margin-top: 21px; }
  .board-intro strong { font-size: 11px; }
  .ranking-head { grid-template-columns: 48px minmax(0, 1fr) minmax(102px, 118px); padding: 0 12px; font-size: 9px; }
  .ranking-row { grid-template-columns: 48px minmax(0, 1fr) minmax(102px, 118px); min-height: 78px; padding: 11px 12px; }
  .rank-number { font-size: 28px; }
  .agency-name strong { font-size: 15px; }
  .ranking-row.is-rank-1,
  .ranking-row.is-rank-2,
  .ranking-row.is-rank-3 { min-height: 86px; }
  .ranking-row.is-rank-1 .rank-number,
  .ranking-row.is-rank-2 .rank-number,
  .ranking-row.is-rank-3 .rank-number { font-size: 34px; }
  .ranking-row.is-rank-1 .agency-name strong,
  .ranking-row.is-rank-2 .agency-name strong,
  .ranking-row.is-rank-3 .agency-name strong { font-size: 16px; }
  .ranking-row.is-rank-1 .agency-value strong,
  .ranking-row.is-rank-2 .agency-value strong,
  .ranking-row.is-rank-3 .agency-value strong { font-size: 20px; }
  .agency-value { gap: 4px; }
  .agency-value strong { font-size: 18px; }
  .agency-value span { font-size: 8px; }
  .ranking-list { max-height: 540px; }
  .page-footer { width: calc(100% - 30px); display: grid; gap: 6px; padding-bottom: 25px; font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
