/* 三款沿用详情页的两栏版式，面板和主操作共用各自的产品强调色。 */
.product-detail-panel {
  --detail-panel-glow: color-mix(in srgb, var(--accent) 8%, transparent);
  --detail-panel-line: color-mix(in srgb, var(--accent) 24%, #293a50);
  background: radial-gradient(ellipse at 76% 52%, var(--detail-panel-glow), transparent 63%), #0b131f;
}
.product-detail-panel[data-product-panel="connection"] {
  background: radial-gradient(ellipse at 24% 48%, var(--detail-panel-glow), transparent 60%), #0b1422;
}
.product-detail-panel .rp-copy h2 > span:first-child { color: var(--accent); }
.detail-panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 21px; }
.detail-panel-actions .button-primary { background: var(--accent); box-shadow: 0 5px 24px var(--detail-panel-glow); }
.detail-panel-actions .button-primary:hover { background: color-mix(in srgb, var(--accent) 72%, white); }
.detail-panel-figure { border-color: var(--detail-panel-line); }
.detail-panel-figure-title { display: flex; min-width: 0; flex-wrap: wrap; justify-content: end; align-items: center; gap: 4px 8px; text-align: end; }
.detail-panel-preview {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid var(--detail-panel-line);
  border-radius: 20px;
  background: var(--detail-panel-glow);
  color: var(--accent);
  font-size: .7rem;
  line-height: 1.3;
}

/* 示意节点用 CSS 绘制，三列严格平分，英文名称可在窄屏上自然换行。 */
.detail-panel-figure-route {
  background:
    radial-gradient(ellipse at 52% 52%, var(--detail-panel-glow), transparent 77%),
    repeating-linear-gradient(90deg, #a4c1ec0e 0 1px, transparent 1px 25px),
    repeating-linear-gradient(0deg, #a4c1ec0e 0 1px, transparent 1px 25px),
    #0c1827;
}
.detail-panel-route {
  --detail-route-gap: clamp(7px, 2vw, 22px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--detail-route-gap);
  margin: 0;
  padding: 6px 0 0;
  list-style: none;
}
.detail-panel-route > li {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 9px;
  min-width: 0;
  min-height: clamp(100px, 11vw, 144px);
  padding: 8px 5px;
  text-align: center;
  border: 1px solid var(--detail-panel-line);
  border-radius: 10px;
  background: linear-gradient(145deg, var(--detail-panel-glow), transparent 74%), #111e30;
}
.detail-panel-route > li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 100%;
  width: calc(var(--detail-route-gap) + 2px);
  height: 1px;
  background: var(--accent);
  opacity: .65;
}
.detail-panel-route strong { overflow-wrap: break-word; color: var(--ink); font-size: clamp(.72rem, 1.28vw, .94rem); line-height: 1.35; }
.detail-panel-route-icon {
  display: grid;
  position: relative;
  place-items: center;
  width: clamp(32px, 5vw, 51px);
  aspect-ratio: 1;
  border: 1px solid var(--detail-panel-line);
  border-radius: 12px;
  background: var(--detail-panel-glow);
  color: var(--accent);
}
.detail-panel-route-icon::before,
.detail-panel-route-icon::after {
  content: "";
  position: absolute;
}

/* 出口来源图的各节点分别表现运营商、住宅、机架、终端和蜂窝信号。 */
.detail-panel-route-icon-static-0::before,
.detail-panel-route-icon-mobile-1::before {
  width: 56%;
  height: 54%;
  background: currentColor;
  clip-path: polygon(50% 0, 86% 100%, 70% 100%, 62% 76%, 38% 76%, 30% 100%, 14% 100%);
}
.detail-panel-route-icon-static-0::after,
.detail-panel-route-icon-mobile-1::after {
  inset: 19% 17% 44%;
  border: 1px solid currentColor;
  border-block-color: transparent;
  border-radius: 48%;
}
.detail-panel-route-icon-static-1::before {
  width: 54%;
  height: 19%;
  border-radius: 3px;
  background: currentColor;
  clip-path: polygon(0 13%, 70% 13%, 70% 0, 100% 50%, 70% 100%, 70% 87%, 0 87%);
  transform: translateY(-64%);
}
.detail-panel-route-icon-static-1::after {
  width: 54%;
  height: 19%;
  border-radius: 3px;
  background: currentColor;
  clip-path: polygon(0 13%, 70% 13%, 70% 0, 100% 50%, 70% 100%, 70% 87%, 0 87%);
  transform: translateY(64%) rotate(180deg);
  opacity: .6;
}
.detail-panel-route-icon-static-2::before {
  width: 60%;
  height: 57%;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 40%, 90% 52%, 85% 48%, 85% 100%, 59% 100%, 59% 72%, 42% 72%, 42% 100%, 15% 100%, 15% 48%, 10% 52%, 0 40%);
}
.detail-panel-route-icon-datacenter-0::before {
  width: 49%;
  height: 51%;
  border: 1.5px solid currentColor;
  border-radius: 3px 3px 0 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 18%, currentColor 18% 28%, transparent 28% 36%),
    linear-gradient(transparent 0 25%, currentColor 25% 35%, transparent 35% 63%, currentColor 63% 75%, transparent 75%);
  background-size: 100% 60%, 100% 73%;
  background-position: center;
  background-repeat: no-repeat;
}
.detail-panel-route-icon-datacenter-1::before {
  width: 56%;
  height: 50%;
  border: 1px solid currentColor;
  border-radius: 3px;
  background: linear-gradient(180deg, transparent 31%, currentColor 31% 37%, transparent 37% 63%, currentColor 63% 69%, transparent 69%);
}
.detail-panel-route-icon-datacenter-1::after {
  width: 6%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 -.31em currentColor, 0 .31em currentColor;
  transform: translateX(-.39em);
}
.detail-panel-route-icon-datacenter-2::before {
  width: 55%;
  aspect-ratio: 1;
  border: 1px dashed currentColor;
  border-radius: 50%;
}
.detail-panel-route-icon-datacenter-2::after {
  width: 25%;
  aspect-ratio: 1;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 11px currentColor;
}
.detail-panel-route-icon-mobile-0::before {
  width: 34%;
  height: 60%;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}
.detail-panel-route-icon-mobile-0::after {
  width: 14%;
  height: 2px;
  top: 68%;
  border-radius: 2px;
  background: currentColor;
}
.detail-panel-route-icon-mobile-2::before {
  width: 60%;
  height: 47%;
  align-self: center;
  background: currentColor;
  clip-path: polygon(0 75%, 19% 75%, 19% 100%, 0 100%, 0 75%, 27% 57%, 45% 57%, 45% 100%, 27% 100%, 27% 57%, 54% 29%, 73% 29%, 73% 100%, 54% 100%, 54% 29%, 81% 0, 100% 0, 100% 100%, 81% 100%, 81% 0);
}

/* 试用弹窗提供实际交互，图中只展示示例地址和请求结果。 */
.detail-panel-address {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: clamp(11px, 2vw, 17px);
  margin-bottom: 13px;
  border: 1px solid var(--detail-panel-line);
  border-radius: 9px;
  background: linear-gradient(105deg, var(--detail-panel-glow), transparent 90%), #0e1929;
}
.detail-panel-address-dot { flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 13px var(--detail-panel-line); }
.detail-panel-address span { display: block; color: var(--muted); font-size: .83rem; }
.detail-panel-address code { display: block; margin-top: 3px; color: var(--accent); font-size: clamp(1.12rem, 2.4vw, 1.7rem); font-weight: 700; }
.detail-panel-readings > div { align-items: baseline; flex-wrap: wrap; }
.detail-panel-readings dt { overflow-wrap: break-word; }
.detail-panel-readings dd { margin: 0; text-align: end; }
.detail-panel-readings code { white-space: nowrap; font: 600 clamp(.69rem, 1.2vw, .81rem)/1.45 monospace; }
.detail-panel-readings > div:first-child dd { color: var(--accent); }

/* 流量栏与表格数值一一对应，色调辅助辨认两条线路。 */
.detail-panel-traffic { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .83rem; }
.detail-panel-traffic thead td:first-child { width: clamp(42px, 8vw, 72px); }
.detail-panel-traffic th, .detail-panel-traffic td { text-align: start; }
.detail-panel-traffic thead th { padding: 0 6px 7px; color: var(--detail-series); }
.detail-panel-traffic tbody th, .detail-panel-traffic tbody td { border-block-start: 1px solid #30465d; }
.detail-panel-traffic tbody th { padding-block: 9px; color: var(--muted); font-weight: 600; }
.detail-panel-traffic td > div { display: flex; align-items: center; gap: 6px; padding-inline: 6px; }
.detail-panel-traffic-tone-0 { --detail-series: var(--accent); }
.detail-panel-traffic-tone-1 { --detail-series: #8db7f7; }
.detail-panel-bar { display: block; flex: 1; height: 5px; min-width: 13px; border-radius: 8px; background: #24384f; }
.detail-panel-bar i { display: block; width: var(--bar-width); height: 100%; border-radius: inherit; background: var(--detail-series); }
.detail-panel-gb { white-space: nowrap; color: var(--ink); font-variant-numeric: tabular-nums; }

@media (max-width: 440px) {
  .detail-panel-figure .rp-instrument-header { gap: 5px; }
  .detail-panel-figure-title { font-size: .73rem; }
  .detail-panel-actions .button { padding-inline: 13px; }
  .detail-panel-readings > div { gap: 3px 9px; }
  .detail-panel-traffic { font-size: .73rem; }
}
