/* 公众号二维码 — 侧边栏卡片 */
.wqr-card {
  text-align: center;
}
.wqr-card h3 {
  margin-bottom: 10px;
}
.wqr-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 12px;
}
.wqr-img {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  image-rendering: -webkit-optimize-contrast;
}
.wqr-zoom {
  cursor: zoom-in;
  transition: transform .18s ease;
}
.wqr-zoom:hover {
  transform: scale(1.03);
}
.wqr-zoom:focus-visible {
  outline: 2px solid var(--primary, #0d9488);
  outline-offset: 3px;
}
.wqr-desc {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink3, #64748b);
}
.wqr-hint {
  margin-top: 8px;
  font-size: 11px;
  color: var(--ink4, #94a3b8);
}

/* 放大层 */
.wqr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, .78);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
  animation: wqr-fade .16s ease;
}
.wqr-lightbox img {
  max-width: min(88vw, 520px);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .4);
  cursor: default;
}
.wqr-lightbox-x {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.wqr-lightbox-x:hover {
  background: rgba(255, 255, 255, .28);
}
@keyframes wqr-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body.wqr-locked {
  overflow: hidden;
}
