/* ==================== 微信分享悬浮按钮 & 弹窗 ==================== */

.float-share-btn {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #07C160;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(7, 193, 96, 0.4);
  transition: all 0.3s;
  z-index: 99;
}

.float-share-btn:hover {
  background: #06AD56;
  transform: translateY(-50%) scale(1.1);
}

.float-share-btn img {
  width: 26px;
  height: 26px;
  display: block;
}

/* ========== 弹窗 ========== */
.share-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.share-modal-content {
  background: #ffffff;
  border-radius: 12px;
  padding: 32px;
  max-width: 380px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.share-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  color: #94a3b8;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.share-modal-close:hover {
  background: #f1f5f9;
}

.share-modal-header {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 24px;
}

.share-qrcode-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.share-qrcode-wrapper canvas {
  border-radius: 8px;
  border: 8px solid #f8fafc;
}

.share-modal-title {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  word-break: break-all;
}

.share-modal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  font-size: 13px;
  color: #94a3b8;
}

.share-wechat-icon {
  width: 20px;
  height: 20px;
  color: #07C160;
}

@media (max-width: 768px) {
  .float-share-btn {
    display: none;
  }

  .share-modal-content {
    padding: 20px;
  }

  .share-qrcode-wrapper canvas {
    width: 140px !important;
    height: 140px !important;
  }
}
