/*
 * AIS-TIP V5.6.7 / Final Comprehensive Lock
 * Final production-oriented polish on top of V5.6.6:
 * - slightly lighter shell tonality
 * - clearer foreground / background depth rhythm
 * - more balanced label distribution left/right/up/down
 * - refined label typography and calmer point presence
 */

.ais-orbit3d-layer {
  /*
   * The latest mainline moved the overview cards upward. Their real top is:
   *   overview-top + content-offset - topbar = 318 + 28 - 50 = 296px
   * inside this 324px shell layer (~91.4%).
   *
   * Keep the lower shell fully readable until 24px before that occlusion edge,
   * then fade only in the short approach to the card. This replaces the old
   * 78%→100% long fade that weakened ~43px of still-visible shell too early.
   */
  --ais-shell-card-top-local: calc(
    var(--home-overview-top)
    + var(--home-content-offset-y)
    - var(--topbar-height)
  );
  position: absolute;
  z-index: 1;
  top: 50px;
  left: 0;
  width: 100%;
  height: 324px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  contain: layout paint size;
  isolation: isolate;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,.96) 0%,
    #000 9%,
    #000 calc(var(--ais-shell-card-top-local) - 24px),
    rgba(0,0,0,.96) calc(var(--ais-shell-card-top-local) - 14px),
    rgba(0,0,0,.58) calc(var(--ais-shell-card-top-local) - 5px),
    transparent calc(var(--ais-shell-card-top-local) + 2px)
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,.96) 0%,
    #000 9%,
    #000 calc(var(--ais-shell-card-top-local) - 24px),
    rgba(0,0,0,.96) calc(var(--ais-shell-card-top-local) - 14px),
    rgba(0,0,0,.58) calc(var(--ais-shell-card-top-local) - 5px),
    transparent calc(var(--ais-shell-card-top-local) + 2px)
  );
}

.ais-orbit3d-stage {
  position: absolute;
  top: -12px;
  left: calc(50% - 610px);
  width: 1220px;
  height: 1220px;
  pointer-events: none;
}

.ais-orbit3d-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 1220px;
  height: 1220px;
  background: transparent;
  opacity: 1;
  pointer-events: none;
}

.ais-orbit3d-node-host {
  position: absolute;
  z-index: 3;
  top: 50px;
  left: 0;
  width: 100%;
  height: 324px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  contain: layout paint size;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,.96) 0%,
    #000 8%,
    #000 83%,
    rgba(0,0,0,.92) 91%,
    rgba(0,0,0,.50) 96%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,.96) 0%,
    #000 8%,
    #000 83%,
    rgba(0,0,0,.92) 91%,
    rgba(0,0,0,.50) 96%,
    transparent 100%
  );
}

.ais-orbit3d-node-stage {
  position: absolute;
  top: -12px;
  left: calc(50% - 610px);
  width: 1220px;
  height: 1220px;
  pointer-events: none;
}

.ais-orbit3d-node-layer {
  position: absolute;
  inset: 0;
  width: 1220px;
  height: 1220px;
  overflow: visible;
  pointer-events: none;
}

.ais-orbit3d-semantic-node {
  --node-depth: .5;
  --node-dot-alpha: 0;
  --node-line-alpha: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  opacity: 0;
  transform: translate3d(0,0,0);
  backface-visibility: hidden;
  will-change: transform, opacity;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.ais-orbit3d-semantic-dot {
  display: none;
  position: absolute;
  top: -2.5px;
  left: -2.5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(252, 254, 255, .985);
  box-shadow: 0 0 0 1px rgba(90, 138, 194, .38), 0 0 5px rgba(98, 156, 226, .08);
  opacity: var(--node-dot-alpha);
}

.ais-orbit3d-semantic-label {
  position: absolute;
  top: -9.5px;
  color: rgba(72, 110, 153, .76);
  text-shadow: none;
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 18px;
  letter-spacing: .042em;
  white-space: nowrap;
  backface-visibility: hidden;
}

.ais-orbit3d-semantic-label::before {
  display: none;
  position: absolute;
  top: 8.5px;
  width: 7px;
  height: 1px;
  content: "";
  background: rgba(90, 132, 184, var(--node-line-alpha));
}

.ais-orbit3d-semantic-node.is-left .ais-orbit3d-semantic-label {
  right: 6px;
  text-align: right;
}
.ais-orbit3d-semantic-node.is-left .ais-orbit3d-semantic-label::before {
  display: none; right: -10px; }

.ais-orbit3d-semantic-node.is-right .ais-orbit3d-semantic-label {
  left: 6px;
  text-align: left;
}
.ais-orbit3d-semantic-node.is-right .ais-orbit3d-semantic-label::before {
  display: none; left: -10px; }

html[data-ais-orbit="off"] .ais-orbit3d-layer,
html[data-ais-orbit="off"] .ais-orbit3d-node-host { display: none !important; }

@media (max-width: 1180px) {
  .ais-orbit3d-canvas { opacity: .92; }
  .ais-orbit3d-semantic-label { font-size: 12.8px; }
}

@media (prefers-reduced-motion: reduce) {
  .ais-orbit3d-semantic-node { will-change: auto; }
}
