/* 首页行业覆盖：桌面环绕展示，手机双列排列。 */
.industries {
  padding: 68px 0 42px;
  background: var(--tint);
}

.industries .section-heading {
  margin-bottom: 0;
}

.industries .section-heading h2 {
  text-wrap: balance;
}

.industries__intro {
  margin: 14px 0 0;
  color: var(--muted);
  text-wrap: pretty;
}

.industry-map {
  position: relative;
  height: 600px;
  margin-top: 20px;
}

.industry-map__orbits,
.industry-map__nodes {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.industry-map__orbits::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgb(55 132 255 / 4%);
  content: "";
  transform: translate(-50%, -50%);
}

.industry-map__orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid #d8e5fa;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.industry-map__orbit--outer {
  width: 86%;
  height: 86%;
}

.industry-map__orbit--inner {
  width: 54%;
  height: 54%;
}

.industry-map__signals {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: var(--brand);
  fill: var(--brand);
}

.industry-map__signal {
  transform-origin: 50px 50px;
  animation: industry-orbit 28s linear infinite paused;
}

.industry-map__signal--inner {
  animation-duration: 20s;
  animation-direction: reverse;
}

.industries.is-animating .industry-map__signal {
  animation-play-state: running;
}

.industry-map__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: 178px;
  height: 178px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  border: 8px solid #e0ecff;
  border-radius: 50%;
  background: var(--brand-strong);
  box-shadow: 0 0 0 1px #c5daff, 0 10px 28px rgb(19 52 110 / 12%);
  transform: translate(-50%, -50%);
}

.industry-map__hub img {
  width: 116px;
  height: 56px;
  object-fit: contain;
}

.industry-map__hub strong {
  color: var(--surface);
  font-size: 14px;
  font-weight: 600;
}

.industry-map__node {
  position: absolute;
  top: var(--node-y);
  left: var(--node-x);
  width: 100px;
  height: 100px;
  transform: translate(-50%, -50%);
}

.industry-map__float {
  display: block;
  width: 100%;
  height: 100%;
  animation: industry-float var(--float-duration, 6s) ease-in-out infinite paused;
  animation-delay: var(--float-delay, 0s);
}

.industry-map__node-body {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #e0e9f7;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 4px 14px rgb(19 52 110 / 6%);
  font-size: 14px;
  font-weight: 600;
  transition: transform 180ms ease-out, border-color 180ms ease-out;
}

.industry-map__node:hover .industry-map__node-body {
  border-color: var(--brand);
  transform: scale(1.07);
}

.industries .industry-map__node:hover .industry-map__float {
  animation-play-state: paused;
}

.industry-map__icon {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
}

.industry-map__label {
  max-width: 6em;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
  word-break: keep-all;
}

.industry-map__node:nth-child(1) { --node-x: 50%; --node-y: 23%; }
.industry-map__node:nth-child(2) { --node-x: 69.1%; --node-y: 30.9%; }
.industry-map__node:nth-child(3) { --node-x: 77%; --node-y: 50%; }
.industry-map__node:nth-child(4) { --node-x: 69.1%; --node-y: 69.1%; }
.industry-map__node:nth-child(5) { --node-x: 50%; --node-y: 77%; }
.industry-map__node:nth-child(6) { --node-x: 30.9%; --node-y: 69.1%; }
.industry-map__node:nth-child(7) { --node-x: 23%; --node-y: 50%; }
.industry-map__node:nth-child(8) { --node-x: 30.9%; --node-y: 30.9%; }
.industry-map__node:nth-child(9) { --node-x: 66.5%; --node-y: 10.3%; }
.industry-map__node:nth-child(10) { --node-x: 89.7%; --node-y: 33.5%; }
.industry-map__node:nth-child(11) { --node-x: 89.7%; --node-y: 66.5%; }
.industry-map__node:nth-child(12) { --node-x: 66.5%; --node-y: 89.7%; }
.industry-map__node:nth-child(13) { --node-x: 33.5%; --node-y: 89.7%; }
.industry-map__node:nth-child(14) { --node-x: 10.3%; --node-y: 66.5%; }
.industry-map__node:nth-child(15) { --node-x: 10.3%; --node-y: 33.5%; }
.industry-map__node:nth-child(16) { --node-x: 33.5%; --node-y: 10.3%; }

.industries.is-revealed .industry-map__node {
  animation: industry-node-enter 560ms ease-out both paused;
  animation-delay: var(--enter-delay, 0ms);
}

.industries.is-revealed .industry-map__hub {
  animation: industry-hub-enter 700ms ease-out both paused;
}

.industries.is-animating .industry-map__node,
.industries.is-animating .industry-map__hub,
.industries.is-animating .industry-map__float {
  animation-play-state: running;
}

.industry-map__hub::after {
  position: absolute;
  inset: -18px;
  border: 1px solid rgb(55 132 255 / 24%);
  border-radius: 50%;
  content: "";
  opacity: 0;
  pointer-events: none;
  animation: industry-hub-pulse 4s ease-out infinite paused;
}

.industries.is-animating .industry-map__hub::after {
  animation-play-state: running;
}

@keyframes industry-node-enter {
  from { opacity: 0; transform: translate(-50%, -38%) scale(.86); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes industry-hub-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes industry-float {
  0%, 100% { transform: translateY(-4px); }
  50% { transform: translateY(4px); }
}

@keyframes industry-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes industry-hub-pulse {
  0% { opacity: .6; transform: scale(.95); }
  80%, 100% { opacity: 0; transform: scale(1.16); }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .industry-map__node {
    width: 90px;
    height: 90px;
  }

  .industry-map__node-body {
    font-size: 13px;
  }

  .industry-map__icon {
    width: 42px;
    height: 42px;
  }

  .industry-map__hub {
    width: 166px;
    height: 166px;
  }
}

@media (max-width: 767px) {
  .industries {
    padding: 48px 0 32px;
  }

  .industries__intro {
    max-width: 26em;
    margin: 12px auto 0;
    font-size: 13px;
  }

  .industry-map {
    display: flex;
    height: auto;
    margin-top: 28px;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .industry-map__orbits {
    display: none;
  }

  .industry-map__hub {
    position: relative;
    top: auto;
    left: auto;
    width: 144px;
    height: 144px;
    flex-shrink: 0;
    gap: 8px;
    transform: none;
  }

  .industry-map__hub img {
    width: 100px;
    height: 48px;
  }

  .industry-map__hub strong {
    font-size: 13px;
  }

  .industry-map__nodes {
    position: static;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .industry-map__node {
    position: static;
    width: auto;
    height: auto;
    transform: none;
  }

  .industry-map__float {
    animation-name: industry-mobile-float;
  }

  .industry-map__node-body {
    min-height: 76px;
    padding: 12px 8px;
    flex-direction: row;
    gap: 8px;
    border-radius: var(--radius-container);
    box-shadow: none;
    font-size: 14px;
  }

  .industries.is-revealed .industry-map__node {
    animation-name: industry-mobile-enter;
  }

  .industry-map__node:hover .industry-map__node-body {
    transform: scale(1.025);
  }

  .industry-map__icon {
    width: 38px;
    height: 38px;
  }

}

@keyframes industry-mobile-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes industry-mobile-float {
  0%, 100% { transform: translateY(-1px); }
  50% { transform: translateY(1px); }
}

@media (prefers-reduced-motion: reduce) {
  .industries *,
  .industries *::after {
    animation: none !important;
    transition: none !important;
  }

  .industry-map__node:hover .industry-map__node-body {
    transform: none;
  }
}
