.relation-map {
  width: min(620px, 100%);
  margin-top: 48px;
  border: 1px solid rgba(138, 218, 221, 0.16);
  background: rgba(4, 20, 37, 0.32);
  box-shadow: 0 24px 60px rgba(1, 12, 24, 0.18);
}

.relation-map-header {
  height: 34px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(138, 218, 221, 0.12);
  font-family: "Segoe UI", sans-serif;
  font-size: 8px;
  letter-spacing: 0.18em;
  color: #7196a8;
}

.relation-map-header small {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 8px;
  color: #79b9ad;
}

.relation-map-header i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4fd0a6;
  box-shadow: 0 0 0 4px rgba(79, 208, 166, 0.1);
}

.relation-map-canvas {
  position: relative;
  aspect-ratio: 620 / 224;
  min-height: 190px;
}

.relation-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.relation-lines path {
  fill: none;
  stroke: url("#relation-line");
  stroke-width: 1;
}

.relation-lines circle {
  fill: #8adadd;
  filter: drop-shadow(0 0 5px rgba(138, 218, 221, 0.75));
}

.relation-node {
  position: absolute;
  width: 148px;
  min-height: 52px;
  border: 1px solid rgba(138, 218, 221, 0.26);
  background: rgba(10, 39, 63, 0.92);
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  color: #dff5f5;
  box-shadow: 0 10px 24px rgba(1, 12, 24, 0.16);
}

.relation-node > span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border: 1px solid rgba(138, 218, 221, 0.28);
  border-radius: 50%;
  font-family: "Segoe UI", sans-serif;
  font-size: 8px;
  color: #80c5c8;
}

.relation-node strong,
.relation-node small {
  display: block;
}

.relation-node strong {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.relation-node small {
  margin-top: 2px;
  font-family: "Segoe UI", sans-serif;
  font-size: 7px;
  letter-spacing: 0.13em;
  color: #648ca2;
}

.node-company {
  left: 0;
  top: 5%;
}

.node-school {
  right: 0;
  top: 5%;
}

.node-result {
  left: 0;
  bottom: 5%;
}

.node-teacher {
  right: 0;
  bottom: 5%;
}

.relation-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 106px;
  height: 106px;
  border: 1px solid rgba(138, 218, 221, 0.68);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #123e5b, #09243c 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow:
    0 0 0 8px rgba(138, 218, 221, 0.035),
    0 18px 38px rgba(0, 10, 22, 0.3);
}

.relation-hub > span {
  font-family: "Segoe UI", sans-serif;
  font-size: 8px;
  letter-spacing: 0.15em;
  color: #8adadd;
}

.relation-hub strong {
  margin: 4px 0 2px;
  font-size: 14px;
  font-weight: 500;
}

.relation-hub small {
  font-family: "Segoe UI", sans-serif;
  font-size: 6px;
  letter-spacing: 0.14em;
  color: #648ca2;
}

@media (max-width: 1100px) {
  .relation-node {
    width: 128px;
    padding: 9px;
  }

  .relation-node strong {
    font-size: 11px;
  }
}
