/**
 * 论坛页 — 左侧扫码分享浮条（与右侧 ac-float-dock 同款卡片）
 */

.ac-float-dock--page-share {
  position: fixed;
  right: max(72px, calc((100vw - 1180px) / 2 + 300px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 1100;
}

.ac-float-dock--page-share .ac-float-dock-inner {
  padding: 6px 4px;
}

.ac-float-dock--page-share .ac-float-btn {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 52px;
  min-height: 52px;
  padding: 5px 3px;
  gap: 3px;
}

.ac-float-dock--page-share .ac-float-ico {
  width: 18px;
  height: 18px;
}

.ac-float-dock--page-share .ac-float-ico svg {
  width: 16px;
  height: 16px;
}

.ac-float-dock--page-share .ac-float-btn-text {
  display: block;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  max-width: 46px;
  word-break: break-all;
}

.ac-float-dock--page-share:hover .ac-float-dock-inner,
.ac-float-dock--page-share:focus-within .ac-float-dock-inner {
  padding: 8px;
}

.ac-float-dock--page-share:hover .ac-float-btn,
.ac-float-dock--page-share:focus-within .ac-float-btn {
  flex-direction: row;
  width: 100%;
  min-width: 132px;
  min-height: 40px;
  padding: 0 12px 0 10px;
}

.ac-float-dock--page-share:hover .ac-float-btn-text,
.ac-float-dock--page-share:focus-within .ac-float-btn-text {
  font-size: 13px;
  max-width: none;
  white-space: nowrap;
}

/* 弹层 */
.cdc-page-qr-overlay {
  z-index: 2100;
}

.cdc-page-qr-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.cdc-page-qr-sheet {
  position: relative;
  width: min(400px, calc(100vw - 32px));
}

.cdc-page-qr-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background:
    radial-gradient(circle at 88% 18%, rgba(37, 99, 235, 0.08), transparent 48%),
    radial-gradient(circle at 8% 82%, rgba(37, 99, 235, 0.05), transparent 42%),
    #f8fafc;
}

.cdc-page-qr-copy {
  flex: 1;
  min-width: 0;
}

.cdc-page-qr-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.45;
}

.cdc-page-qr-copy p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
}

.cdc-page-qr-code {
  position: relative;
  flex: 0 0 auto;
  width: 132px;
  height: 132px;
  padding: 4px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.cdc-page-qr-code > img:first-child {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.cdc-page-qr-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  padding: 2px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 0 0 2px #fff;
}

@media (max-width: 1100px) {
  .ac-float-dock--page-share {
    right: 68px;
  }
}

@media (max-width: 960px) {
  .ac-float-dock--page-share {
    right: auto;
    left: 10px;
    top: auto;
    bottom: calc(148px + env(safe-area-inset-bottom, 0px));
    transform: none;
  }

  .ac-float-dock--page-share .ac-float-btn {
    width: 48px;
    min-height: 48px;
  }

  .ac-float-dock--page-share:hover .ac-float-btn,
  .ac-float-dock--page-share:focus-within .ac-float-btn {
    flex-direction: column;
    min-width: 48px;
    width: 48px;
    padding: 5px 3px;
  }

  .ac-float-dock--page-share:hover .ac-float-btn-text,
  .ac-float-dock--page-share:focus-within .ac-float-btn-text {
    font-size: 10px;
    max-width: 46px;
    white-space: normal;
  }

  .cdc-page-qr-banner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .ac-float-dock--page-share {
    bottom: calc(132px + env(safe-area-inset-bottom, 0px));
  }
}
