/* ===================================================
   SOCIAL FOOTER — WeChat QR + Facebook
   独立文件，唯一类名前缀 social-，不影响既有样式
   =================================================== */
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.social-item { position: relative; }
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 15px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .2px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.social-btn svg { width: 17px; height: 17px; flex: none; }
.social-btn .social-ext { width: 13px; height: 13px; opacity: .75; }
.social-btn:hover,
.social-btn:focus-visible {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.62);
  outline: none;
}
.social-btn:focus-visible { box-shadow: 0 0 0 2px #fff; }

/* 二维码弹层 */
.social-qr {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 40;
  width: 180px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  color: #0e1d33;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.social-qr::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 100%;
  border: 7px solid transparent;
  border-top-color: #fff;
}
.social-qr img { display: block; width: 100%; height: auto; border-radius: 4px; }
.social-qr span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.social-item.is-open .social-qr {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* 仅精确指针设备支持 hover，避免触屏 hover 状态粘滞。
   键盘用户通过 Enter/Space 触发按钮 click 切换 is-open，aria-expanded 同步。 */
@media (hover: hover) and (pointer: fine) {
  .social-item:hover .social-qr {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
@media (max-width: 560px) {
  .social-row { margin-top: 20px; }
  .social-qr { width: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .social-btn, .social-qr { transition: none; }
}
