/* A师混音交流群 QR — square corners, no layout shift */
.am-qr-btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:44px;min-width:44px;border-radius:0;cursor:pointer;
  font:inherit;line-height:1.3;text-align:center;
}
button.am-qr-btn{appearance:none;-webkit-appearance:none;font-family:inherit}
.am-qr-btn:focus-visible{outline:3px solid #fff;outline-offset:3px}
.am-qr-btn-desk{display:inline-flex}
.am-qr-btn-mob{display:none}
@media(max-width:700px){
  .am-qr-btn-desk{display:none!important}
  .am-qr-btn-mob{display:inline-flex}
}
@media(hover:none){
  .am-qr-btn-desk{display:none!important}
  .am-qr-btn-mob{display:inline-flex}
}

/* Popover is position:fixed + [hidden]; it never enters document flow.
   Size comes from the card (no inset:0 wrapper — that would swallow hover). */
.am-qr-pop{position:fixed;z-index:10000;inset:auto;border-radius:0}
.am-qr-pop[hidden]{display:none!important}
.am-qr-pop:before{
  content:"";position:absolute;left:0;right:0;top:-14px;height:14px;
}
.am-qr-card{
  background:#F6F4EF;color:#1C1C1C;
  border:2px solid #1C1C1C;padding:20px 20px 16px;width:238px;
  box-shadow:8px 8px 0 #1C1C1C;border-radius:0;
}
.am-qr-card p{margin:0 0 12px;font-size:15px;font-weight:700;line-height:1.4;color:#1C1C1C}
.am-qr-card img{
  display:block;width:198px;height:198px;background:#fff;
  border-radius:0;image-rendering:pixelated;
}
.am-qr-close{
  display:flex;align-items:center;justify-content:center;
  width:100%;min-height:44px;margin-top:12px;padding:0 12px;
  background:#1C1C1C;color:#fff;font:700 15px inherit;border:0;
  border-radius:0;cursor:pointer;
}
.am-qr-close:hover{background:#D2461E}
.am-qr-close:focus-visible{outline:3px solid #D2461E;outline-offset:3px}

/* Footer QR row — new row, does not alter the existing link row.
   Qualified as footer .am-qr-* so it wins over footer a / footer .w. */
footer .am-qr-foot{
  display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:16px;
  margin-top:24px;padding-top:24px;border-top:1px solid #333;
  border-radius:0;
}
footer a.am-qr-foot-link{
  display:block;flex:none;width:120px;height:120px;
  min-width:120px;min-height:120px;background:#fff;border-radius:0;
}
footer a.am-qr-foot-link:focus-visible{outline:3px solid #fff;outline-offset:3px}
footer a.am-qr-foot-link img{
  display:block;width:120px;height:120px;background:#fff;
  border-radius:0;image-rendering:pixelated;
}
footer .am-qr-foot-txt{
  margin:0;color:#cfcfcf;font-size:14px;line-height:1.6;max-width:28em;
  min-width:0;flex:1;
}
@media(max-width:700px){
  footer .am-qr-foot{align-items:flex-start}
  footer a.am-qr-foot-link, footer a.am-qr-foot-link img{width:96px;height:96px;min-width:96px;min-height:96px}
}
