.node-hero {
  position: relative;
  overflow: hidden;
  margin: -48px -44px 0;
  padding: 58px 54px 28px;
  background: #eef3ff;
  text-align: left;
}

.node-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(89, 111, 211, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89, 111, 211, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, transparent 0, #000 46%, #000 100%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  min-height: 390px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(55%, 620px);
  min-width: 0;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #334765;
  font-size: 12px;
  font-weight: 800;
}

.hero-facts span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.hero-facts i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0aa870;
  box-shadow: 0 0 0 4px rgba(10, 168, 112, .12);
}

.node-hero h1 {
  max-width: 650px;
  margin: 22px 0 16px;
  font-size: 54px;
  line-height: 1.08;
  letter-spacing: 0;
}

.node-hero h1 em { display: block; }

.node-hero p {
  max-width: 600px;
  margin: 0;
  color: #4f607a;
  font-size: 16px;
  line-height: 1.75;
}

.hero-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 520px);
  margin-top: 22px;
}

.hero-quick-actions .btn {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 12px;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 500px);
  margin-top: 24px;
  padding: 12px;
  border: 1px solid #d4dcf0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 14px 34px rgba(54, 73, 145, .09);
}

.hero-actions > span {
  grid-column: 1 / -1;
  color: #65738a;
  font-size: 10px;
  font-weight: 800;
}

.hero-actions .btn {
  min-height: 43px;
  padding: 10px 13px;
  border-radius: 7px;
  font-size: 12px;
}

.hero-actions .btn.primary { grid-column: 1 / -1; }

.hero-topology {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -2%;
  width: min(48vw, 520px);
  max-width: 50%;
  aspect-ratio: 1 / 1;
  transform: translateY(-50%);
  opacity: .92;
}

.hero-topology::before,
.hero-topology::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(83, 105, 214, .19);
  border-radius: 50%;
}

.hero-topology::before { inset: 7%; }
.hero-topology::after { inset: 23%; }

.topology-core,
.topology-node,
.topology-state {
  position: absolute;
  z-index: 2;
}

.topology-core {
  left: 50%;
  top: 50%;
  width: 150px;
  height: 150px;
  display: grid;
  place-content: center;
  gap: 4px;
  transform: translate(-50%, -50%);
  border: 2px solid #5368d8;
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  text-align: center;
  box-shadow: 0 0 0 16px rgba(83, 104, 216, .10), 0 20px 50px rgba(54, 73, 145, .14);
}

.topology-core small {
  color: #687795;
  font-size: 10px;
  font-weight: 700;
}

.topology-core strong {
  color: #172033;
  font-size: 23px;
}

.topology-core span {
  color: #4054c8;
  font-size: 10px;
  font-weight: 800;
}

.topology-node {
  min-width: 122px;
  padding: 11px 12px 11px 31px;
  border: 1px solid rgba(198, 208, 233, .92);
  border-radius: 7px;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 10px 26px rgba(35, 51, 91, .10);
}

.topology-node i {
  position: absolute;
  left: 12px;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0aa870;
  box-shadow: 0 0 0 4px #dff7ee;
}

.topology-node strong,
.topology-node small { display: block; }
.topology-node strong { color: #26334a; font-size: 12px; }
.topology-node small { margin-top: 3px; color: #687795; font-size: 9px; }
.topology-node.node-a { left: 4%; top: 10%; }
.topology-node.node-b { right: 2%; top: 14%; }
.topology-node.node-c { right: 5%; bottom: 10%; }
.topology-node.node-c i { background: #f49a10; box-shadow: 0 0 0 4px #fff0d5; }

.topology-line {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 35%;
  height: 2px;
  background: #8fa1eb;
  transform-origin: left center;
}

.topology-line::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5368d8;
}

.topology-line.line-a { transform: rotate(218deg); }
.topology-line.line-b { transform: rotate(318deg); }
.topology-line.line-c { transform: rotate(38deg); }

.topology-state {
  left: 50%;
  bottom: 2%;
  transform: translateX(-50%);
  padding: 8px 11px;
  border: 1px solid #d6deef;
  border-radius: 6px;
  background: rgba(248, 250, 255, .96);
  color: #40506b;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.topology-state i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #0aa870;
}

.node-endpoint {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
  width: 100%;
  margin: 22px 0 0;
  padding: 15px 16px 15px 20px;
  border-color: #cfd8ed;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 30px rgba(54, 73, 145, .08);
}

.node-endpoint span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.node-endpoint b {
  margin: 0;
  color: #3549c3;
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 12px;
  white-space: nowrap;
}

.node-endpoint code {
  overflow: visible;
  color: #34435c;
  font-size: 14px;
  font-weight: 700;
  text-overflow: clip;
  white-space: nowrap;
}

.node-endpoint button {
  flex-shrink: 0;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid #cad4f3;
  border-radius: 7px;
  background: var(--soft);
  color: #3549c3;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.hero-route-summary {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #cfd8ef;
  border-radius: 8px;
  background: #cfd8ef;
}

.hero-route-summary article {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .96);
}

.hero-route-summary article > span { color: #5368d8; font: 10px ui-monospace, monospace; font-weight: 800; }
.hero-route-summary strong,
.hero-route-summary small { display: block; }
.hero-route-summary strong { font-size: 12px; }
.hero-route-summary small { margin-top: 4px; color: #536176; font-size: 9px; line-height: 1.5; }

.home-explainer {
  padding: 48px 0 0;
}

.home-explainer-head {
  max-width: 760px;
}

.home-explainer-head > span {
  color: #4054c8;
  font-size: 11px;
  font-weight: 800;
}

.home-explainer-head h2 {
  margin: 9px 0 10px;
  font-size: 30px;
  line-height: 1.25;
}

.home-explainer-head p {
  margin: 0;
  color: #536176;
  line-height: 1.8;
}

.home-explainer .hero-route-summary {
  margin-top: 24px;
}

.home-entry-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-entry-list button {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 22px 20px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.home-entry-list button + button {
  border-left: 1px solid var(--line);
}

.home-entry-list button:hover {
  background: #f4f6fc;
}

.home-entry-list span {
  color: #4054c8;
  font-size: 10px;
  font-weight: 800;
}

.home-entry-list strong {
  font-size: 15px;
}

.home-entry-list small {
  color: #65738a;
  font-size: 11px;
  line-height: 1.6;
}

html[data-theme=dark] .node-hero { background: #111a2a; }
html[data-theme=dark] .node-hero p,
html[data-theme=dark] .hero-facts { color: #c0cad9; }
html[data-theme=dark] .hero-actions,
html[data-theme=dark] .node-endpoint,
html[data-theme=dark] .hero-route-summary article,
html[data-theme=dark] .topology-node,
html[data-theme=dark] .topology-core { background: rgba(24, 34, 52, .96); border-color: #344158; }
html[data-theme=dark] .topology-core strong,
html[data-theme=dark] .topology-node strong { color: #f4f7fb; }
html[data-theme=dark] .node-endpoint code,
html[data-theme=dark] .hero-route-summary small,
html[data-theme=dark] .topology-node small { color: #c0cad9; }
html[data-theme=dark] .home-entry-list button:hover { background: #182132; }

@media (max-width: 1050px) {
  .node-hero { padding: 46px 34px 24px; }
  .hero-layout { min-height: 370px; }
  .hero-copy { width: 55%; }
  .node-hero h1 { font-size: 40px; }
  .node-hero p { font-size: 14px; line-height: 1.7; }
  .hero-topology { right: -5%; width: 390px; max-width: 54%; }
  .topology-core { width: 122px; height: 122px; }
  .topology-core strong { font-size: 18px; }
  .topology-node { min-width: 102px; padding: 9px 9px 9px 27px; }
  .topology-node i { left: 10px; top: 14px; }
  .topology-node strong { font-size: 10px; }
}

@media (max-width: 800px) {
  .node-hero { margin: -28px -18px 0; padding: 38px 20px 24px; }
  .hero-layout { min-height: 0; }
  .hero-copy { width: 100%; }
  .node-hero h1 { font-size: 43px; }
  .node-hero p { max-width: 620px; font-size: 14px; }
  .hero-topology {
    position: relative;
    top: auto;
    right: auto;
    width: min(100%, 460px);
    max-width: none;
    margin: 28px auto 0;
    transform: none;
    opacity: 1;
  }
  .hero-route-summary { grid-template-columns: 1fr; margin-top: 16px; }
  .home-explainer { padding-top: 36px; }
  .home-explainer-head h2 { font-size: 25px; }
  .home-entry-list { grid-template-columns: 1fr; }
  .home-entry-list button + button { border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 520px) {
  .node-hero { padding: 32px 16px 20px; }
  .hero-facts { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-facts span:last-child { grid-column: 1 / -1; }
  .node-hero h1 { font-size: 34px; }
  .node-hero h1 em { display: block; }
  .hero-quick-actions { grid-template-columns: 1fr 1fr; }
  .hero-quick-actions .btn.primary { grid-column: 1 / -1; }
  .hero-topology { width: 100%; }
  .topology-core { width: 118px; height: 118px; }
  .topology-core strong { font-size: 18px; }
  .topology-node { min-width: 102px; padding: 9px 9px 9px 27px; }
  .topology-node i { left: 10px; top: 14px; }
  .hero-route-summary article { padding-inline: 13px; }
  .home-entry-list button { padding: 18px 4px; }
}
