/* 地图左上角入口：选择高德或百度，跳转平台官方地图链接。 */
.contact-page-map {
  position: relative;
}

.contact-map-navigation {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  max-width: calc(100% - 32px);
}

.contact-map-navigation summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}

.contact-map-navigation summary::-webkit-details-marker {
  display: none;
}

.contact-map-navigation summary:hover,
.contact-map-navigation summary:focus-visible,
.contact-map-navigation[open] summary {
  color: var(--blue-deep);
}

.contact-map-navigation summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.contact-map-navigation summary svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-map-choices {
  display: grid;
  gap: 2px;
  margin-top: 6px;
  padding: 6px;
  border-radius: var(--radius-control);
  background: #fff;
  box-shadow: 0 6px 24px rgb(12 44 70 / 16%);
}

.contact-map-choices a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: var(--radius-control);
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.contact-map-choices a:hover,
.contact-map-choices a:focus-visible {
  background: var(--ice);
}

@media (max-width: 760px) {
  .contact-map-navigation {
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
  }
}

.map-chooser-open {
  overflow: hidden;
}

.map-chooser-open body {
  position: fixed;
  top: var(--map-scroll-top);
  width: 100%;
}

.contact-map-dialog {
  position: fixed;
  inset: auto 0 0;
  width: min(100%, 520px);
  max-width: 100%;
  max-height: 85vh;
  max-height: 85dvh;
  margin: 0 auto;
  padding: 22px 22px max(22px, env(safe-area-inset-bottom));
  border: 0;
  border-radius: 14px 14px 0 0;
  background: #fff;
  color: var(--ink);
  overflow-y: auto;
}

.contact-map-dialog::backdrop {
  background: rgb(12 44 70 / 42%);
}

.contact-map-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.contact-map-dialog-heading h3 {
  font-size: 20px;
  line-height: 1.4;
}

.contact-map-close {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.contact-map-dialog > p {
  margin: 4px 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.contact-map-app {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-card);
  background: var(--paper);
  color: var(--blue);
  font-size: 16px;
  font-weight: 600;
}

.contact-map-app:hover,
.contact-map-app:focus-visible {
  background: var(--ice);
}

.contact-map-app[hidden] {
  display: none;
}

.contact-map-dialog > .contact-map-status {
  margin: 14px 0 0;
  font-size: 12px;
}
