.quick-contact {
  --dock-navy: #0b2545;
  --dock-line: #08263a29;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  color: var(--dock-navy);
  font-family: "Noto Sans SC", system-ui, sans-serif;
}
.quick-contact [hidden] {
  display: none !important;
}
.quick-contact-rail {
  display: grid;
  gap: 8px;
}
.quick-contact-rail-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  box-shadow: 0 10px 24px #071a2b38;
  transition:
    transform 0.16s ease-out,
    filter 0.16s ease-out;
}
.quick-contact svg {
  display: block;
  width: 22px;
  height: 22px;
  flex: none;
}
.quick-contact-rail-button.is-top svg {
  width: 20px;
  height: 20px;
}
.quick-contact-rail-button.is-phone {
  background: #0d3b66;
  box-shadow: 0 12px 28px #0d3b6652;
}
.quick-contact-rail-button.is-whatsapp {
  background: #18be6b;
  box-shadow: 0 12px 28px #18be6b52;
}
.quick-contact-rail-button.is-wechat {
  background: #1aad19;
  box-shadow: 0 12px 28px #1aad1952;
}
.quick-contact-rail-button.is-top {
  background: #e0b34a;
}
.quick-contact-rail-button:hover,
.quick-contact-rail-button:focus-visible,
.quick-contact-trigger.is-open {
  filter: brightness(1.06);
  transform: translateY(-2px) scale(1.04);
}
.quick-contact-rail-button.is-phone:hover {
  background: #164f82;
}
.quick-contact-rail-button.is-whatsapp:hover {
  background: #10a95d;
}
.quick-contact-rail-button.is-wechat:hover {
  background: #159314;
}
.quick-contact button:focus-visible,
.quick-contact a:focus-visible {
  outline: 2px solid #e0b34a;
  outline-offset: 3px;
}
.quick-contact-label {
  position: absolute;
  right: calc(100% + 10px);
  width: max-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: #03111ceb;
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(8px);
  transition:
    opacity 0.16s,
    transform 0.16s;
  box-shadow: 0 8px 24px #03111c2e;
}
.quick-contact-rail-button:hover .quick-contact-label,
.quick-contact-rail-button:focus-visible .quick-contact-label {
  opacity: 1;
  transform: translateX(0);
}
.quick-contact.is-open .quick-contact-trigger.is-open .quick-contact-label {
  opacity: 0;
}
.quick-contact-rail-button.is-phone .quick-contact-label {
  background: #0d3b66;
}
.quick-contact-rail-button.is-whatsapp .quick-contact-label {
  background: #18be6b;
}
.quick-contact-rail-button.is-wechat .quick-contact-label {
  background: #1aad19;
}
.quick-contact-rail-button.is-top .quick-contact-label {
  background: #c9982d;
}
.quick-contact-panel {
  width: min(456px, calc(100vw - 110px));
  max-height: calc(100dvh - 44px);
  overflow-y: auto;
  background: white;
  border: 1px solid #b8893a47;
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 24px 70px #061a3347;
  animation: dock-pop 0.22s ease-out both;
  overscroll-behavior: contain;
}
@keyframes dock-pop {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.quick-contact .mono {
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.5;
}
.quick-contact-desk-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  background: #0b2545;
  color: white;
  padding: 14px 16px 12px;
}
.quick-contact-desk-identity {
  display: flex;
  gap: 10px;
  min-width: 0;
}
.quick-contact-desk-identity > div {
  min-width: 0;
}
.quick-contact-desk-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid #ffffff47;
  border-radius: 50%;
  background: #ffffff14;
}
.quick-contact-desk-head .mono {
  color: #ffffffad;
  font-size: 9px;
  letter-spacing: 0.16em;
}
.quick-contact-desk-head strong {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-size: 20px;
  line-height: 1.2;
  margin-top: 2px;
}
.quick-contact-desk-head p {
  color: #ffffffdb;
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.4;
}
.quick-contact-desk-head .quick-contact-desk-script {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.45;
}
.quick-contact-desk-head [data-contact-close] {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: white;
  border-radius: 50%;
  padding: 0;
  flex: none;
}
.quick-contact-desk-head [data-contact-close]:hover {
  background: #ffffff1f;
}
.quick-contact-desk-list {
  margin: 0;
  padding: 6px 20px 8px;
  display: grid;
}
.quick-contact-desk-list > div {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #0b254514;
}
.quick-contact-desk-list dt {
  font-size: 13px;
  font-weight: 600;
  color: #6b7a8a;
  line-height: 1.35;
}
.quick-contact-desk-list dd {
  display: grid;
  justify-items: end;
  text-align: right;
  min-width: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
.quick-contact-desk-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
}
.quick-contact-desk-value a {
  color: #0b2545;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.quick-contact-desk-value .is-whatsapp {
  color: #18be6b;
}
.quick-contact-desk-value a[href^="mailto:"] {
  color: #17688d;
}
.quick-contact-desk-value .quick-contact-desk-address {
  color: #b8893a;
}
.quick-contact-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border: 1px solid var(--dock-line);
  border-radius: 999px;
  background: white;
  color: #8a97a6;
  width: 36px;
  min-height: 36px;
  padding: 0;
  position: relative;
  cursor: pointer;
}
.quick-contact-copy svg {
  width: 14px;
  height: 14px;
}
.quick-contact-desk-list .quick-contact-copy {
  border: 0;
  background: transparent;
  width: 28px;
  min-height: 28px;
}
.quick-contact-copy:hover {
  color: #17688d;
  background: #17688d14;
}
.quick-contact-copy.is-copied {
  color: #17803d;
  background: #e7f8ee;
}
.quick-contact-copy.is-error {
  color: #9b1c1c;
  background: #fdecec;
}
.quick-contact-copy::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  z-index: 4;
  white-space: nowrap;
  background: #0b2545f0;
  color: white;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
}
.quick-contact-copy:hover::after,
.quick-contact-copy:focus-visible::after {
  opacity: 1;
}
.quick-contact-desk-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 20px;
}
.quick-contact-desk-actions a,
.quick-contact-desk-actions button,
.quick-contact-actions a,
.quick-contact-consult {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  border: 0;
  border-radius: 8px;
  color: white;
  background: #0b2545;
  cursor: pointer;
}
.quick-contact-desk-actions svg {
  width: 16px;
  height: 16px;
}
.quick-contact .quick-contact-consult {
  background: #c7392f;
  box-shadow: 0 10px 22px #c7392f47;
}
.quick-contact-desk-actions .quick-contact-namecard {
  grid-column: 1/-1;
  color: #0b2545;
  background: #f6f1e7;
  border: 1px solid #b8893a47;
}
.quick-contact-desk-foot {
  text-align: center;
  color: #6b7a8a;
  padding: 0 20px 14px;
  margin: 0;
  font-size: 11px;
}
.quick-contact-panel.is-whatsapp,
.quick-contact-panel.is-wechat {
  padding: 20px;
}
.quick-contact-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border-bottom: 1px solid var(--dock-line);
  padding-bottom: 14px;
}
.quick-contact-head > div {
  display: grid;
  gap: 4px;
}
.quick-contact-head .mono {
  color: #10a95d;
}
.quick-contact-head strong {
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
  line-height: 1.25;
}
.quick-contact-head [data-contact-close] {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--dock-line);
  background: transparent;
  color: #0b2545;
  flex: none;
  padding: 0;
}
.quick-contact-panel > p {
  margin: 15px 0;
  color: #5a6d78;
  font-size: 13px;
  line-height: 1.65;
}
.quick-contact-codes {
  display: grid;
}
.quick-contact-codes > div {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 18px 16px 16px;
  border: 1px solid var(--dock-line);
}
.quick-contact-codes img {
  object-fit: contain;
  width: 168px;
  height: 168px;
}
.quick-contact-codes strong {
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
  margin-top: 7px;
}
.quick-contact-codes span {
  font-size: 12px;
  font-weight: 600;
  color: #5a6d78;
}
.quick-contact-whatsapp-direct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 999px;
  background: #18be6b;
  color: white;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
}
.quick-contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.quick-contact-actions .quick-contact-consult {
  grid-column: auto;
}
.contact-card-body {
  color: #0b2545;
}
.contact-card-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-card-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.contact-card-brand strong {
  display: block;
  font-size: 22px;
  font-family: "Noto Serif SC", serif;
}
.contact-card-brand span {
  font-size: 9px;
  letter-spacing: 0.1em;
}
.contact-card-body h3 {
  font-size: 27px;
  margin-top: 20px;
}
.contact-card-body dl {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 10px;
  font-size: 13px;
}
.contact-card-body dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.contact-card-qrs {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.contact-card-qrs img {
  width: 130px;
  height: 160px;
  object-fit: contain;
}
.contact-card-qrs figure {
  margin: 0;
  text-align: center;
}
.contact-card-qrs figcaption {
  font-size: 12px;
}
.contact-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
@media (max-width: 680px) {
  .quick-contact {
    right: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    display: block;
  }
  .quick-contact-rail {
    display: flex;
    gap: 7px;
  }
  .quick-contact-rail-button {
    width: 48px;
    height: 48px;
  }
  .quick-contact-rail-button .quick-contact-label {
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
  }
  .quick-contact-panel {
    position: fixed;
    right: 12px;
    bottom: calc(142px + env(safe-area-inset-bottom));
    width: min(456px, calc(100vw - 24px));
    max-height: calc(100dvh - 166px);
    overflow-y: auto;
  }
  .quick-contact-desk-list {
    padding-inline: 14px;
  }
  .quick-contact-desk-list > div {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 8px;
  }
  .quick-contact-desk-list dt {
    font-size: 12px;
  }
  .quick-contact-desk-list dd {
    font-size: 13px;
  }
  .quick-contact-copy,
  .quick-contact-desk-list .quick-contact-copy {
    width: 36px;
    min-height: 36px;
  }
  .quick-contact-head [data-contact-close],
  .quick-contact-desk-head [data-contact-close] {
    width: 44px;
    height: 44px;
  }
  .quick-contact-desk-actions {
    padding-inline: 14px;
  }
  .quick-contact-desk-identity {
    gap: 8px;
  }
  .quick-contact-desk-head {
    padding: 14px;
  }
  .contact-card-qrs {
    gap: 12px;
  }
  .contact-card-qrs img {
    width: 110px;
    height: 136px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .quick-contact *,
  .quick-contact *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* 屏幕阅读器文本不参与面板布局，避免长标签撑高复制按钮。 */
.quick-contact .sr-only,
#contact-card-dialog .sr-only,
#wechat-dialog .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.quick-contact-panel {
  flex: none;
}
@media (max-width: 680px) {
  .quick-contact-panel {
    width: min(456px, calc(100% - 24px));
  }
}

.quick-contact-panel .quick-contact-desk-foot {
  margin: 0;
  padding: 0 20px 14px;
  font-size: 11px;
  line-height: 1.4;
}
.quick-contact-codes img {
  aspect-ratio: 150 / 185;
}

/* 手机验收修复：靠底安全区，键盘输入时让出正文，关闭按钮始终可见。 */
.quick-contact-desk-head,
.quick-contact-head {
  position: sticky;
  top: 0;
  z-index: 2;
}
.quick-contact-head {
  background: #fff;
}
.quick-contact.is-typing {
  visibility: hidden;
  pointer-events: none;
}
@media (max-width: 680px), (pointer: coarse) and (max-width: 1200px) {
  .quick-contact {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    display: block;
  }
  .quick-contact-rail {
    display: flex;
    gap: 7px;
  }
  .quick-contact-rail-button {
    width: 48px;
    height: 48px;
  }
  .quick-contact-rail-button .quick-contact-label {
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
  }
  .quick-contact-panel {
    position: fixed;
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    width: min(456px, calc(100% - 24px));
    max-height: calc(100dvh - 96px - env(safe-area-inset-bottom));
  }
  .quick-contact-desk-head [data-contact-close],
  .quick-contact-head [data-contact-close] {
    width: 44px;
    height: 44px;
  }
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 500px) {
  /* 保留大LOGO原样，但短横屏滚动时不固定两层导航，腾出阅读区域。 */
  .quick-contact.is-open {
    z-index: 200;
  }
  .quick-contact-panel {
    max-height: calc(100dvh - 86px - env(safe-area-inset-bottom));
    bottom: calc(72px + env(safe-area-inset-bottom));
  }
}

@media (pointer: coarse) {
  .quick-contact.is-obstructing:not(.is-open) {
    visibility: hidden;
    pointer-events: none;
  }
}
