/* Scoped customization module: reference layout with a transparent animal orbit. */
#custom-model {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 60px 0 64px;
  border: 0;
  background:
    radial-gradient(ellipse at 4% 96%, #dcefff 0%, transparent 44%),
    radial-gradient(ellipse at 92% 4%, #e2f2ff 0%, transparent 48%), #eff8ff;
}
#custom-model::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 115%;
  height: 62%;
  top: -19%;
  left: -10%;
  transform: rotate(12deg);
  border: 2px solid #ffffff70;
  border-radius: 50%;
  box-shadow: 0 36px 0 14px #ffffff14;
  pointer-events: none;
}
#custom-model::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 135px;
  height: 135px;
  right: -50px;
  top: 33px;
  border: 16px solid #bddffa4a;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

#custom-model .svc-custom-heading {
  display: block;
  margin: 0 0 24px;
}

#custom-model .svc-custom-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  align-items: center;
  gap: 0;
  padding: 34px 32px 34px 22px;
  overflow: hidden;
  border: 1px solid #ffffffb0;
  border-radius: 24px;
  background: #ffffffed;
  box-shadow: 0 14px 46px #1b76b20b;
}
#custom-model .svc-custom-visual {
  position: relative;
  margin: 0;
  min-height: 0;
  height: auto;
  padding: 0 26px 0 0;
  overflow: visible;
  background: transparent;
}
#custom-model .svc-custom-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}
#custom-model .svc-custom-content {
  min-width: 0;
  padding: 0 0 0 30px;
  border-left: 1px solid #dcecf7;
}
#custom-model .svc-custom-lead,
#custom-model .svc-custom-item h3 {
  color: #355d74;
  font-family: inherit;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: normal;
}
#custom-model .svc-custom-lead {
  margin: 0 0 27px;
  font-size: clamp(24px, 1.75vw, 26px);
}
#custom-model .svc-custom-offerings {
  display: block;
}
#custom-model .svc-custom-item {
  display: block;
  padding: 0 0 22px;
  margin: 0;
}
#custom-model .svc-custom-item + .svc-custom-item {
  padding-top: 22px;
  border-top: 1px solid #e1ebf2;
}
#custom-model .svc-custom-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
#custom-model .svc-custom-item p {
  max-width: none;
  margin: 0;
  color: #758b99;
  font-size: 13.5px;
  line-height: 1.95;
}

@media (min-width: 1600px) {
  #custom-model .svc-custom-layout {
    padding: 36px 34px 36px 24px;
  }
  #custom-model .svc-custom-item p {
    font-size: 14px;
  }
}
@media (max-width: 1180px) {
  #custom-model {
    padding: 55px 0;
  }

  #custom-model .svc-custom-layout {
    grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
    padding: 29px 26px 29px 16px;
  }
  #custom-model .svc-custom-visual {
    padding-right: 20px;
  }
  #custom-model .svc-custom-content {
    padding-left: 24px;
  }
  #custom-model .svc-custom-lead {
    font-size: 24px;
  }
  #custom-model .svc-custom-item h3 {
    font-size: 15px;
  }
}
@media (max-width: 920px) {
  #custom-model .svc-custom-layout {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 28px 30px;
  }
  #custom-model .svc-custom-visual {
    width: min(680px, 100%);
    margin: 0 auto;
    padding: 0;
  }
  #custom-model .svc-custom-content {
    width: min(600px, 100%);
    margin: 22px auto 0;
    padding: 27px 0 0;
    border-left: 0;
    border-top: 1px solid #dcecf7;
  }
  #custom-model .svc-custom-lead {
    font-size: 25px;
  }
  #custom-model .svc-custom-item h3 {
    font-size: 16px;
  }
}
@media (max-width: 640px) {
  #custom-model {
    padding: 42px 0 44px;
  }

  #custom-model .svc-custom-heading {
    margin-bottom: 21px;
  }

  #custom-model .svc-custom-layout {
    padding: 18px 16px 24px;
    border-radius: 20px;
  }
  #custom-model .svc-custom-content {
    margin-top: 14px;
    padding-top: 23px;
  }
  #custom-model .svc-custom-lead {
    font-size: 23px;
    margin-bottom: 24px;
  }
  #custom-model .svc-custom-item {
    padding-bottom: 21px;
  }
  #custom-model .svc-custom-item + .svc-custom-item {
    padding-top: 21px;
  }
  #custom-model .svc-custom-item h3 {
    font-size: 15px;
    margin-bottom: 8px;
  }
  #custom-model .svc-custom-item p {
    font-size: 12.5px;
    line-height: 1.95;
  }
}
@media (max-width: 360px) {
  #custom-model .svc-custom-layout {
    padding-inline: 13px;
  }
  #custom-model .svc-custom-lead {
    font-size: 22px;
  }
}

/* 独立透明图层：设备固定，动物沿外圈运动且始终正立。 */
#custom-model .svc-custom-orbit {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 4 / 3;
  container-type: inline-size;
}
#custom-model .svc-orbit-ring {
  position: absolute;
  z-index: 0;
  left: 11%;
  top: 17%;
  width: 78%;
  height: 66%;
  border: 3px solid #83d1fb;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, transparent 62%, #b8eaff24 72%, transparent 82%);
  box-shadow:
    0 0 0 2px #d9f4ff,
    0 0 22px #45b8f875,
    inset 0 0 15px #62c9ff55;
  pointer-events: none;
}
#custom-model .svc-orbit-ring::before {
  content: '';
  position: absolute;
  inset: 3%;
  border: 1px dashed #42b3ee80;
  border-radius: 50%;
}
#custom-model .svc-custom-visual .svc-orbit-device {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 51%;
  display: block;
  width: 49%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 10px 18px #327caa24);
  pointer-events: none;
}
#custom-model .svc-orbit-animal {
  position: absolute;
  z-index: 2;
  display: block;
  width: 23%;
  aspect-ratio: 1;
  background-image: none;
  background-size: 400% 200%;
  background-repeat: no-repeat;
  transform: translate(-50%, -50%);
  pointer-events: none;
  will-change: left, top;
}
#custom-model .svc-orbit-animal > span {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  color: #175397;
  font-size: clamp(8px, 1.15cqw, 15px);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  text-shadow: 0 1px 2px #ffffffee;
}
#custom-model .orbit-mouse {
  left: 50%;
  top: 16.5%;
  background-position: 0 0;
}
#custom-model .orbit-rat {
  left: 78.3%;
  top: 28.5%;
  background-position: 33.333% 0;
}
#custom-model .orbit-rabbit {
  left: 86.2%;
  top: 56.9%;
  background-position: 66.667% 0;
}
#custom-model .orbit-beagle {
  left: 68.5%;
  top: 79%;
  background-position: 100% 0;
  z-index: 4;
}
#custom-model .orbit-pig {
  left: 31.5%;
  top: 79%;
  background-position: 0 100%;
  z-index: 4;
}
#custom-model .orbit-goat {
  left: 13.6%;
  top: 55.8%;
  background-position: 33.333% 100%;
  z-index: 4;
}
#custom-model .orbit-sheep {
  left: 21.7%;
  top: 28.5%;
  background-position: 66.667% 100%;
}
@media (max-width: 640px) {
  #custom-model .svc-orbit-ring {
    border-width: 2px;
    box-shadow:
      0 0 0 1px #d9f4ff,
      0 0 13px #45b8f866;
  }
  #custom-model .svc-orbit-animal > span {
    font-size: clamp(7px, 1.15cqw, 10px);
  }
}
@media (prefers-reduced-motion: reduce) {
  #custom-model .svc-orbit-animal {
    will-change: auto;
  }
}
/* Transform-only orbit movement; only the animal beneath the pointer is highlighted. */
#custom-model .svc-orbit-animal {
  left: 0;
  top: 0;
  pointer-events: none;
  will-change: transform;
  scale: 1;
  transition:
    scale 0.28s cubic-bezier(0.2, 0.75, 0.2, 1),
    filter 0.28s ease;
}
#custom-model .svc-orbit-animal.is-focused {
  scale: 1.12;
  filter: drop-shadow(0 12px 14px rgba(22, 105, 157, 0.22));
}
#custom-model .svc-orbit-device-label {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 70%;
  transform: translate(-50%, -50%);
  padding: 7px 20px;
  border: 1px solid #89d5fa;
  border-radius: 999px;
  background: linear-gradient(180deg, #289ce0, #0864b5);
  box-shadow:
    inset 0 1px 0 #ffffff88,
    0 5px 15px #1177bf3b;
  color: #fff;
  font-size: clamp(11px, 1.6cqw, 18px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  #custom-model .svc-orbit-animal {
    transition: none;
    will-change: auto;
  }
}
/* Keep every orbit animal above the center label and device. */
#custom-model .svc-orbit-animal {
  z-index: 6;
}

/* Load this offscreen illustration when its section approaches the viewport. */
#custom-model .svc-orbit-animal.wl-background-ready {
  background-image: url('../images/service/generated/ZM-CJ-001-custom-orbit-animal-atlas-v1.webp');
}
