.lhm {
  position: relative;
  min-width: 0;
  color: #101744;
  --lhm-primary: #0569dc;
  --lhm-blue: #0652c6;
  --lhm-purple: #8603ae;
}

.lhm [hidden] { display: none !important; }
.lhm-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .25rem .25rem .45rem;
}

.lhm-heading h2 {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  line-height: 1.15;
}

.lhm-heading h2 svg {
  width: 1.2em;
  height: 1.2em;
  color: var(--lhm-primary);
  flex: none;
}

.lhm-views, .lhm-areas {
  display: flex;
  align-items: center;
  gap: .22rem;
}

.lhm-views {
  flex: none;
  border: 1px solid #c7dbf0;
  border-radius: .55rem;
  box-shadow: 0 1px 4px #25364f17;
  padding: .13rem;
  background: #eef7ff;
}

.lhm-areas {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .3rem;
  background: #eaf5fc;
  border: 1px solid #d3e4f1;
  border-bottom: 0;
  border-radius: .65rem .65rem 0 0;
  padding: .35rem .45rem;
}

.lhm button {
  width: auto;
  min-height: 27px;
  border: 1px solid #cfe0ef;
  border-radius: .4rem;
  padding: .23rem .65rem;
  color: #132555;
  background: #fff;
  font: inherit;
  font-size: .77rem;
  font-weight: 750;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
}

.lhm-views button { min-width: 3.25rem; }
.lhm button:hover { border-color: #75a9df; }
.lhm button[aria-pressed="true"] {
  border-color: #005bc4;
  color: #fff;
  background: linear-gradient(#138aef, #045bd5);
  box-shadow: inset 0 0 0 1px #fff2;
}

.lhm button:focus-visible, .lhm a:focus-visible, .lhm-scroll:focus-visible {
  outline: 2px solid #035ab3;
  outline-offset: 2px;
}

.lhm-figure { margin: 0; }
.lhm-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  background: #91d7ef;
  border: 1px solid #b5d8ed;
  border-radius: 0 0 .55rem .55rem;
  scrollbar-color: #5485b6 #dceefa;
}

.lhm-canvas {
  position: relative;
  container-type: inline-size;
  min-width: 740px;
  width: 100%;
  line-height: 1;
}

.lhm-canvas > img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  aspect-ratio: 1120 / 345;
  user-select: none;
}

.lhm-group { --lhm-mark: var(--lhm-purple); }
.lhm-group-futian { --lhm-mark: var(--lhm-blue); }
.lhm-group-luohu { --lhm-mark: #7727a9; }
.lhm-pin, .lhm-label, .lhm-leader { position: absolute; }
.lhm-leader {
  border-top: 1px dashed var(--lhm-mark);
  transform-origin: left center;
  opacity: .65;
}
.lhm-pin {
  z-index: 1;
  transform: translate(-50%, -105%);
  width: clamp(15px, 2.25cqw, 25px);
  height: clamp(15px, 2.25cqw, 25px);
}

.lhm-pin-shape {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-45deg);
  border-radius: 50% 50% 50% 0;
  border: clamp(1px, .23cqw, 2.5px) solid #fff;
  background: var(--lhm-mark);
  box-shadow: 0 2px 5px #143d7f4d;
}

.lhm-pin-shape::after {
  content: "";
  display: block;
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: #fff;
}

.lhm-label {
  z-index: 2;
  top: var(--label-y);
  left: var(--label-x);
  width: var(--label-w);
  max-width: 17rem;
}

.lhm-label h3 {
  display: table;
  font-size: clamp(.75rem, 1.56cqw, 1.14rem);
  font-weight: 800;
  line-height: 1;
  margin: 0 0 -.07rem;
  padding: .24rem .55rem .2rem;
  background: var(--lhm-mark);
  color: #fff;
  border-radius: .56rem .56rem .48rem .2rem;
}

.lhm-label ul {
  width: fit-content;
  min-width: 4rem;
  max-width: 100%;
  margin: 0;
  padding: .17rem .47rem;
  border: 1px solid #fff;
  border-radius: .25rem .48rem .48rem .48rem;
  background: #ffffffef;
  box-shadow: 0 2px 8px #21456f35;
  list-style: none;
}

.lhm-label li { margin: 0; padding: 0; }
.lhm-label a {
  display: flex;
  gap: .3rem;
  align-items: baseline;
  padding: .07rem 0;
  color: #151c3b;
  font-size: clamp(.68rem, 1.23cqw, .94rem);
  font-weight: 680;
  line-height: 1.13;
  text-decoration: none;
}

.lhm-label a::before {
  flex: 0 0 auto;
  content: "";
  width: .51em;
  height: .51em;
  border-radius: 50%;
  background: var(--lhm-mark);
}

.lhm-label a:hover, .lhm-list a:hover { text-decoration: underline; }
.lhm-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: .3rem 1rem;
  flex-wrap: wrap;
  margin: 0;
  padding: .28rem .2rem .05rem;
  color: #42587b;
  font-size: .68rem;
}

.lhm-figure figcaption a { color: #325477; text-decoration: underline; }
.lhm-swipe { display: none; }
.lhm-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.lhm-list {
  border: 1px solid #d2e3f5;
  border-radius: 0 0 .55rem .55rem;
  padding: .4rem;
  background: #eef7ff;
}

.lhm-list ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: .4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lhm-list li {
  margin: 0;
  border: 1px solid #d7e4f4;
  border-radius: .4rem;
  background: #fff;
}

.lhm-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .3rem;
  padding: .4rem .55rem 0;
  color: var(--lhm-blue);
  font-size: .84rem;
  font-weight: 750;
  text-decoration: none;
}

.lhm-list small {
  display: block;
  padding: 0 .55rem .42rem;
  color: #42587b;
  font-size: .75rem;
}

@media (max-width: 1020px) {
  .lhm-swipe { display: inline; }
}

@media (max-width: 600px) {
  .lhm-heading { align-items: start; }
  .lhm-areas { justify-content: start; }
  .lhm button { min-height: 31px; }
}
