/* ===================================
   微信二维码悬停弹窗样式
   =================================== */

/* 微信链接容器 */
.wechat-qr-wrapper {
  position: relative;
  display: inline-block;
}

/* 二维码弹窗容器 */
.wechat-qr-popup {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 15px;
  padding: 15px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
  pointer-events: none;
  min-width: 200px;
}

/* 悬停时显示二维码 */
.wechat-qr-wrapper:hover .wechat-qr-popup {
  opacity: 1;
  visibility: visible;
  margin-top: 10px;
}

/* 二维码图片 */
.wechat-qr-popup img {
  width: 180px;
  height: 180px;
  display: block;
  border-radius: 8px;
}

/* 二维码提示文字 */
.wechat-qr-popup .qr-text {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

/* 箭头指示器 */
.wechat-qr-popup::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: #fff;
  filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.05));
}

/* 响应式调整 */
@media (max-width: 768px) {
  .wechat-qr-popup {
    left: auto;
    right: 0;
    transform: none;
  }
  
  .wechat-qr-popup::before {
    left: auto;
    right: 20px;
    transform: none;
  }
  
  .wechat-qr-popup img {
    width: 160px;
    height: 160px;
  }
}

/* 针对 home-2 样式的特殊处理 */
.header-2-social .wechat-qr-wrapper .wechat-qr-popup {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
}

/* 针对 home-3 样式的特殊处理 */
.header-3-social .wechat-qr-wrapper .wechat-qr-popup {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
}

/* 悬停效果增强 */
.wechat-qr-wrapper a {
  transition: all 0.3s ease;
}

.wechat-qr-wrapper:hover a {
  color: #07c160;
  transform: translateY(-2px);
}

