* {
  box-sizing: border-box;
}

:root {
  --arrow-col-width: 200px;
  --equal-col-width: calc((100% - var(--arrow-col-width)) / 16);
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Microsoft YaHei", "Arial Narrow", "PingFang SC", Arial, sans-serif;
  font-size: 14px;
  line-height: 18px;
  color: #666;
  background: #eef2f8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Crect width='12' height='12' fill='%23eef2f8'/%3E%3Cpath d='M0 11h12M11 0v12' stroke='%23d7deec' stroke-width='0.8'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: #12387a;
  color: #fff;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 3px;
}

.skip-link:focus {
  left: 8px;
}

.top {
  height: 170px;
  background:
    linear-gradient(180deg, rgba(10, 41, 97, 0.9), rgba(10, 41, 97, 0.7)),
    radial-gradient(circle at 14% -20%, rgba(255, 255, 255, 0.18), transparent 40%),
    linear-gradient(90deg, #12387a, #2559ab);
  border-bottom: 4px solid #194388;
}

.top-inner {
  width: calc(100% - 16px);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  position: relative;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.top-main-title {
  color: #f3f8ff;
  font-size: 56px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.meta-box {
  width: 370px;
  max-width: 100%;
  border: 1px solid rgba(187, 214, 255, 0.35);
  background: rgba(4, 25, 62, 0.45);
  color: #e2eeff;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.5;
  position: absolute;
  right: 0;
  top: 14px;
}

.meta-box p {
  margin: 3px 0;
}

.main-wrap {
  width: 100%;
  margin: 10px auto 24px;
}

.toolbar {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #d5dce9;
  background: #f8fbff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.toolbar label {
  font-weight: 700;
  color: #294775;
}

.toolbar input {
  width: 330px;
  max-width: 100%;
  border: 1px solid #c3cfe2;
  padding: 6px 8px;
  background: #fff;
  font: inherit;
}

.toolbar select {
  border: 1px solid #c3cfe2;
  padding: 6px 6px;
  background: #fff;
  color: #294775;
  font: inherit;
}

.toolbar input:focus-visible,
.toolbar select:focus-visible,
.toolbar button:focus-visible {
  outline: 2px solid #1f63bf;
  outline-offset: 1px;
}

.toolbar button {
  border: 1px solid #2f5eaa;
  background: #3f72c4;
  color: #fff;
  padding: 6px 10px;
  font: inherit;
  cursor: pointer;
}

.toolbar button:hover {
  background: #355f9f;
}

.result-count {
  margin: 0 0 0 auto;
  color: #395482;
}

.overview {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #d5dce9;
  background: #f8fbff;
  color: #35527f;
}

.overview p {
  margin: 4px 0;
}

.overview strong {
  color: #203f6f;
}

.table-wrap {
  border: 1px solid #cad3e2;
  background: #f3f5f9;
  padding: 4px;
}

h1 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
  color: #214780;
}

.table-scroll {
  overflow-x: hidden;
  border: 1px solid #c6d0e2;
  background: #dce2ee;
  position: relative;
}

.ladder-table {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 1px;
  table-layout: fixed;
  background: #dce2ee;
}

.ladder-table caption {
  position: absolute;
  left: -9999px;
}

.ladder-table col.col-normal {
  width: var(--equal-col-width);
}

.ladder-table col.col-right-eq {
  width: var(--equal-col-width);
}

.ladder-table col.col-arrow {
  width: var(--arrow-col-width);
}

.ladder-table th,
.ladder-table td {
  height: 22px;
  text-align: center;
  vertical-align: middle;
  background: #eceded;
  padding: 7px 0;
  color: #666;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.group-head th {
  font-size: 14px;
  line-height: 18px;
  color: #f2f7ff;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 10px 4px;
}

.group-n {
  background: linear-gradient(180deg, #5b7db5, #3b5f9d) !important;
  font-size: 20px !important;
  line-height: 1.15 !important;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

.group-sep {
  background: #eceded !important;
}

.group-a {
  background: linear-gradient(180deg, #a25f55, #88463d) !important;
  font-size: 20px !important;
  line-height: 1.15 !important;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

.group-i {
  background: linear-gradient(180deg, #4a7f9e, #2f607d) !important;
}

.col-head th {
  background: #dde5f3;
  color: #1f3f74;
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
  padding-top: 7px;
  padding-bottom: 7px;
}

.col-head th.arrow-col-head {
  background: #eceded;
  color: transparent;
}

.model-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.model-list li {
  margin: 0;
  padding: 0;
  line-height: 18px;
}

.model-detail-link {
  color: #1c5da8;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed rgba(28, 93, 168, 0.4);
}

.model-detail-link:hover {
  color: #0f3d73;
  border-bottom-color: rgba(15, 61, 115, 0.7);
}

.model-detail-link:focus-visible {
  outline: 2px solid #1f63bf;
  outline-offset: 1px;
}

.row-high td {
  background: #eef5ff;
}

.row-mid td {
  background: #eceded;
}

.row-low td {
  background: #f6f6f6;
}

.ladder-table tbody tr:hover td:not(.arrow-col) {
  background: #e7f4fe !important;
  color: #0e4f9a;
}

.ladder-table tbody tr:hover td.arrow-col {
  background: #eceded !important;
  color: inherit !important;
}

.cell-empty {
  color: transparent !important;
}

.no-result-cell {
  background: #f6f8fb !important;
  color: #5f6f8f !important;
  font-weight: 700 !important;
  padding: 16px 10px !important;
}

.arrow-col-head {
  width: var(--arrow-col-width);
  color: transparent !important;
  text-indent: -9999px;
}

.arrow-col {
  width: var(--arrow-col-width);
  padding: 0 !important;
  background: #eceded !important;
  vertical-align: top !important;
  position: relative;
  overflow: hidden;
}

.arrow-overlay {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  background: #eceded;
  overflow: hidden;
}

.arrow-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./img/jiantou.svg?v=33") no-repeat center top;
  background-size: 100% auto;
}

.foot {
  margin: 18px 0 30px;
  text-align: center;
  font-size: 12px;
  color: #60708d;
  line-height: 1.7;
}

.foot p {
  margin: 2px 0;
}

.noscript-tip {
  margin: 0;
  padding: 8px 12px;
  text-align: center;
  background: #fff3cd;
  color: #6b4f00;
  border-top: 1px solid #f2d48b;
}

@media (max-width: 900px) {
  :root {
    --arrow-col-width: 128px;
  }

  .top {
    height: auto;
    padding: 14px 0;
  }

  .top-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-main-title {
    font-size: 34px;
    line-height: 1.1;
  }

  .meta-box {
    position: static;
    width: 100%;
  }

  .result-count {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  :root {
    --arrow-col-width: 96px;
  }

  .ladder-table th,
  .ladder-table td {
    font-size: 12px;
    line-height: 15px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .group-n,
  .group-a {
    font-size: 16px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
}
