.wechat-qr-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2000;
  width: 188px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  transition: transform 0.25s ease;
}

.wechat-qr-float:hover {
  transform: translateY(-4px);
}

.wechat-qr-card {
  position: relative;
  padding: 12px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(230, 0, 18, 0.14);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(230, 0, 18, 0.16);
  text-align: center;
}

.wechat-qr-toggle {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #E60012, #FF4D4F);
  color: #FFFFFF;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(230, 0, 18, 0.22);
}

.wechat-qr-card img {
  width: 148px;
  height: 148px;
  margin: 0 auto 10px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(230, 0, 18, 0.1);
  background: #FFFFFF;
  display: block;
}

.wechat-qr-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1F2937;
}

.wechat-qr-desc {
  margin-top: 2px;
  font-size: 0.78rem;
  color: #4B5563;
}

.wechat-qr-mini {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #07C160, #1AAD19);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(7, 193, 96, 0.26);
}

.wechat-qr-mini svg {
  flex-shrink: 0;
}

.wechat-qr-float.collapsed {
  width: auto;
}

.wechat-qr-float.collapsed .wechat-qr-card {
  display: none;
}

.wechat-qr-float.collapsed .wechat-qr-mini {
  display: inline-flex;
}
