/* 三组图解沿用同一仪表框架，独享池、连通性和流量各自表达不同的内容。 */
.rp-section {
  padding-block: clamp(48px, 6.4vw, 89px);
  border-block-start: 1px solid #263348;
  background: radial-gradient(ellipse at 77% 44%, #19465045, transparent 59%), #0b131f;
}
.rp-section.rp-connection {
  background: radial-gradient(ellipse at 24% 50%, #24426659, transparent 55%), #0b1422;
}
.rp-section.rp-traffic {
  background: radial-gradient(ellipse at 80% 50%, #1e48504a, transparent 57%), #0a1422;
}
.rp-split {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(30px, 5vw, 84px);
}
.rp-split-reversed { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.rp-split-reversed .rp-instrument { grid-area: 1 / 1; }
.rp-copy h2 { font-size: clamp(1.72rem, 3vw, 2.6rem); font-weight: 750; line-height: 1.22; letter-spacing: -.037em; }
.rp-copy h2 > span { display: block; }
.rp-connection .rp-copy h2 > span:first-child { color: #8cbfff; }
.rp-traffic .rp-copy h2 > span:first-child { color: var(--cyan); }
.rp-copy p { max-width: 49ch; margin-top: 15px; color: var(--muted); font-size: 1rem; line-height: 1.76; }
.rp-action { margin-block-start: 21px; }
.rp-instrument {
  min-width: 0;
  margin: 0;
  padding: clamp(14px, 2.3vw, 26px);
  border: 1px solid #364d64;
  border-radius: 18px;
  background: linear-gradient(155deg, #142235, #0d1929 76%);
  box-shadow: inset 0 1px #e5f5ff0b, 0 20px 48px #02071359;
}
.rp-figure-label { color: var(--muted); font-size: .87rem; font-weight: 650; line-height: 1.45; }
.rp-instrument-header {
  margin-bottom: 15px;
  padding-bottom: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #30465d;
  color: #aebfda;
  font-size: .8rem;
}
.rp-instrument-brand { display: flex; align-items: center; gap: 7px; color: var(--ink); white-space: nowrap; font-size: .95rem; }
.rp-instrument-brand img { flex: none; }

/* 干线先汇入筛选节点，分支再分别连接端口、带宽及所分配的出口池。 */
.rp-pool {
  background:
    radial-gradient(ellipse at 50% 12%, #1b5a564c, transparent 66%),
    repeating-linear-gradient(90deg, #8fc3f00d 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, #8fc3f00d 0 1px, transparent 1px 28px),
    #0e1d2c;
}
.rp-pool-trunk {
  display: grid;
  justify-items: center;
  margin-block-start: 17px;
  text-align: center;
}
.rp-pool-trunk strong { min-width: 53%; padding: 8px 12px; border: 1px solid #426d80; border-radius: 7px; background: #12293a; font-size: .9rem; }
.rp-pool-trunk strong:last-child { border-color: #6cd7b990; background: #163d45; color: var(--cyan); }
.rp-pool-trunk span { height: 15px; border-inline-start: 1px solid #60c0b88c; }
.rp-branches {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 1vw, 14px);
  padding: 28px 0 0;
  margin: 0;
  list-style: none;
}
.rp-branches::before {
  content: "";
  position: absolute;
  inset: 0 16.66% auto;
  height: 16px;
  border-block-end: 1px solid #60c0b870;
  background: linear-gradient(#60c0b88c, #60c0b88c) center / 1px 100% no-repeat;
}
.rp-branch {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 10px 3px 11px;
  border: 1px solid #3b5969;
  border-radius: 8px;
  text-align: center;
  background: #142936;
  font-size: .82rem;
  line-height: 1.33;
}
.rp-branch::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  height: 14px;
  border-inline-start: 1px solid #60c0b88c;
}
.rp-port { font-weight: 720; }
.rp-bandwidth { color: #a9bfd2; }
.rp-branch strong { color: #8de6d0; }
.rp-branch:hover { border-color: #73d8c6; }

/* 测速样例以读数为主。标签和数值使用文本，缩放时保持可读。 */
.rp-speed { border-color: #3e6187; }
.rp-speed-summary {
  margin-block: 11px 13px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 7px;
}
.rp-speed-summary > div { min-width: 0; padding: clamp(9px, 2vw, 18px); border: 1px solid #365471; border-radius: 10px; background: #101f33; }
.rp-speed-summary dt, .rp-speed-readings dt { color: #a9bbd4; font-size: .82rem; line-height: 1.4; }
.rp-speed-summary dd {
  margin-top: 5px;
  color: #a9cdff;
  font: 720 clamp(1.04rem, 2.75vw, 2.1rem)/1.12 "Aptos", "Segoe UI", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rp-speed-summary small { font-size: .52em; }
.rp-speed-readings { display: grid; }
.rp-speed-readings > div { min-width: 0; display: flex; justify-content: space-between; gap: 7px; padding: 8px 2px; border-block-start: 1px solid #294057; }
.rp-speed-readings dd { color: var(--ink); font: 720 .83rem/1.4 "Aptos", "Segoe UI", system-ui, sans-serif; }
.rp-speed-readings > div:first-child dd { color: var(--cyan); }

/* 折线和面积共用两组坐标，点位与纵轴刻度以 8 GB 为满量程。 */
.rp-traffic-board .rp-figure-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
.rp-traffic-board .rp-figure-label > span { color: #b2d9e2; }
.rp-chart {
  margin-block: 15px 12px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  grid-template-rows: clamp(110px, 16vw, 210px) auto;
  gap: 5px 4px;
  font-size: clamp(.64rem, 1.2vw, .77rem);
  color: #a6b8d0;
}
.rp-chart-axis { display: flex; flex-direction: column; justify-content: space-between; text-align: end; padding-inline-end: 4px; }
.rp-chart-plot {
  position: relative;
  border-inline-start: 1px solid #486078;
  border-block-end: 1px solid #486078;
  background:
    repeating-linear-gradient(0deg, transparent 0 calc(25% - 1px), #95bce52e calc(25% - 1px) 25%),
    repeating-linear-gradient(90deg, transparent 0 calc(16.667% - 1px), #95bce51a calc(16.667% - 1px) 16.667%),
    #0c1929;
}
.rp-series, .rp-series-fill, .rp-series-line { position: absolute; inset: 0; }
.rp-series-mint, .rp-legend-mint { --rp-series-color: #79f0d1; }
.rp-series-blue, .rp-legend-blue { --rp-series-color: #82adff; }
.rp-series-fill { background: linear-gradient(color-mix(in srgb, var(--rp-series-color) 34%, transparent), color-mix(in srgb, var(--rp-series-color) 8%, transparent)); }
.rp-series-line { background: var(--rp-series-color); }
.rp-series i {
  position: absolute;
  top: var(--rp-y);
  left: var(--rp-x);
  width: 6px;
  height: 6px;
  border: 1.5px solid var(--rp-series-color);
  border-radius: 50%;
  background: #0a1524;
  transform: translate(-50%, -38%);
}
.rp-chart-days { grid-column: 2; display: flex; justify-content: space-between; gap: 2px; }
.rp-chart-days > span { text-align: center; white-space: nowrap; }
.rp-chart-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.rp-chart-legend li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 7px 8px; border: 1px solid #3f5971; border-radius: 7px; color: var(--muted); font-size: .82rem; }
.rp-chart-legend li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--rp-series-color); }
.rp-chart-legend strong { margin-inline-start: auto; color: var(--rp-series-color); white-space: nowrap; }

@media (max-width: 760px) {
  .rp-split, .rp-split-reversed { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .rp-split-reversed .rp-instrument { grid-area: auto; }
}
@media (max-width: 390px) {
  .rp-branch { font-size: .72rem; }
  .rp-chart-legend li { font-size: .74rem; }
}
