.footer-social .social-trigger {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin: -4px;
  padding: 4px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted, #aaa9a6);
  cursor: pointer;
  transition: color .2s ease;
}
.footer-social .social-trigger:hover,
.footer-social .social-trigger:focus-visible {
  color: var(--accent, #ff6b00);
}
.footer-social .social-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: visible;
  border: 0;
  background: none;
  color: inherit;
}
.footer-social .social-icon::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  background-color: currentColor;
  -webkit-mask: var(--social-icon) center / contain no-repeat;
  mask: var(--social-icon) center / contain no-repeat;
}
.footer-social .social-icon--wechat { --social-icon: url("assets/social/wechat-mono.74b48b3d3153.svg"); }
.footer-social .social-icon--xiaohongshu::before { width: 42px; height: 42px; }
.footer-social .social-icon--xiaohongshu { --social-icon: url("assets/social/xiaohongshu-mono.847cacc807f5.svg"); }
.footer-social .social-icon--douyin { --social-icon: url("assets/social/douyin-mono.6f54ac8d325f.svg"); }
.footer-social .social-icon--douyin::after { content: none; }

.footer-social .social-trigger:focus-visible {
  outline: 2px solid var(--accent, #ff6b00);
  outline-offset: 4px;
}
dialog.wechat-qr-dialog {
  box-sizing: border-box;
  width: min(400px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 24px;
  overflow: auto;
  border: 1px solid #444;
  background: #141414;
  color: #f5f5f3;
}
.wechat-qr-dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(7px);
}
.wechat-qr-dialog .wechat-qr-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.wechat-qr-dialog h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}
.wechat-qr-dialog .wechat-qr-close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: -8px -8px -8px 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.wechat-qr-dialog .wechat-qr-close:focus-visible {
  outline: 2px solid var(--accent, #ff6b00);
  outline-offset: 1px;
}
.wechat-qr-dialog .wechat-qr-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  background: #fff;
}
.wechat-qr-dialog .wechat-qr-hint {
  margin: 18px 0 0;
  color: #b6b5b1;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}
@media (max-width: 420px) {
  dialog.wechat-qr-dialog { padding: 20px; }
}
