.jhzzz-public-tools {
  position: fixed;
  z-index: 1000;
  isolation: isolate;
  right: 22px;
  top: 50%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(-50%);
  pointer-events: none;
}

.jhzzz-public-tool {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 86px;
  height: 76.390625px;
  min-height: 76.390625px;
  padding: 13px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 15px;
  background: #fff;
  color: #4b5563;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .12);
  font-family: Geist, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 20.4px !important;
  white-space: nowrap !important;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
  transition: transform .2s, border-color .2s, background-color .2s, color .2s;
}

.jhzzz-public-tool > span {
  display: block !important;
  min-width: max-content;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

.jhzzz-public-tool.primary {
  background: #0f1115 !important;
  color: #fff !important;
  border-color: transparent !important;
}

.jhzzz-public-tool-icon {
  width: 22px;
  height: 22px;
  display: block;
  flex: none;
}

.jhzzz-public-tool:hover,
.jhzzz-public-tool:focus-visible {
  border-color: #2563eb;
  color: #2563eb;
  transform: translateY(-2px);
  outline: none;
}

.jhzzz-public-tool.primary:hover,
.jhzzz-public-tool.primary:focus-visible {
  background: #2a2a2a !important;
  color: #fff !important;
  border-color: transparent !important;
}

.jhzzz-public-pop {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  width: max-content;
  max-width: calc(100vw - 8rem);
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  color: #111318;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) translateX(8px);
  transition: opacity .2s, visibility .2s, transform .2s;
  box-shadow: 0 26px 64px -30px rgba(0, 0, 0, .18);
}

.jhzzz-public-tool:hover .jhzzz-public-pop,
.jhzzz-public-tool:focus-visible .jhzzz-public-pop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%);
}

.jhzzz-public-pop h4 {
  margin: 0 0 14px;
  text-align: center;
  font-size: 16px;
}

.jhzzz-public-qr-row {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.jhzzz-public-qr-item {
  width: 240px;
  text-align: center;
}

.jhzzz-public-qr-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.jhzzz-public-qr-item p {
  margin: 6px 0 0;
  color: #4b5563;
  font-size: 16px;
}

.jhzzz-public-info {
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  text-align: center;
  font-size: 14px;
}

.jhzzz-public-info p { margin: 3px 0; }

@media (max-width: 700px) {
  .jhzzz-public-tools {
    --jhzzz-tool-width: clamp(68px, 19vw, 76px);
    right: 12px;
    gap: 9px;
  }

  .jhzzz-public-tool {
    width: var(--jhzzz-tool-width);
    height: var(--jhzzz-tool-width);
    min-height: var(--jhzzz-tool-width);
    padding: 8px 5px;
    border-radius: 12px;
    font-size: clamp(10px, 3vw, 12px) !important;
    line-height: 1.35 !important;
    gap: 4px;
  }

  .jhzzz-public-tool-icon {
    width: clamp(18px, 5vw, 22px);
    height: clamp(18px, 5vw, 22px);
  }

  .jhzzz-public-pop {
    box-sizing: border-box;
    width: min(300px, calc(100vw - var(--jhzzz-tool-width) - 36px));
    max-width: min(300px, calc(100vw - var(--jhzzz-tool-width) - 36px));
    padding: 10px;
    border-radius: 14px;
    right: calc(100% + 10px);
  }

  .jhzzz-public-pop h4 {
    margin-bottom: 9px;
    font-size: clamp(13px, 3.5vw, 15px);
  }

  .jhzzz-public-qr-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 6px;
  }

  .jhzzz-public-qr-item {
    width: auto;
    min-width: 0;
  }

  .jhzzz-public-qr-item img {
    border-radius: 8px;
  }

  .jhzzz-public-qr-item p {
    overflow: hidden;
    margin-top: 4px;
    font-size: clamp(10px, 3vw, 12px);
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .jhzzz-public-info {
    margin-top: 10px;
    padding-top: 8px;
    font-size: clamp(11px, 3vw, 13px);
    line-height: 1.45;
  }
}
