/* ── 全站分享（每一頁右下角）──────────────────────────────────────
   為什麼是浮動按鈕而不是再加一排按鈕：使用者要的是「任何頁面都能分享」，
   加在每個版位會讓版面愈來愈亂；固定一顆，位置一致，肌肉記憶最快。
   手機要讓開底部主選單，所以 bottom 用 calc 疊 tab 高度。 */
.fab{position:fixed;right:14px;bottom:calc(120px + env(safe-area-inset-bottom));z-index:70;
  width:48px;height:48px;border-radius:50%;border:0;cursor:pointer;
  background:linear-gradient(145deg,#6D28D9,#8B5CF6);color:#fff;
  box-shadow:0 8px 22px rgba(76,32,168,.32);display:flex;align-items:center;justify-content:center;
  -webkit-tap-highlight-color:transparent;transition:transform .14s}
.fab:active{transform:scale(.94)}
.fab svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
@media(min-width:761px){.fab{bottom:60px;right:20px;width:52px;height:52px}}

.shx{position:fixed;inset:0;z-index:80;display:flex;align-items:flex-end;justify-content:center}
.shx[hidden]{display:none}
.shx-bd{position:absolute;inset:0;background:rgba(20,14,40,.42);backdrop-filter:blur(2px)}
.shx-p{position:relative;width:100%;max-width:460px;background:#fff;border-radius:18px 18px 0 0;
  padding:18px 18px calc(18px + env(safe-area-inset-bottom));box-shadow:0 -10px 30px rgba(30,20,60,.18)}
@media(min-width:761px){.shx{align-items:center}.shx-p{border-radius:18px;max-width:420px}}
.shx-h{font-size:15.5px;font-weight:800;margin:0 0 10px}
.shx-u{font-size:12px;color:#6B6488;background:#F6F4FB;border:1px solid #EDE8F8;border-radius:9px;
  padding:8px 10px;word-break:break-all;margin-bottom:12px;line-height:1.5}
.shx-r{display:flex;flex-wrap:wrap;gap:8px}
.shx-r button{flex:1;min-width:88px;font:800 13px/1 inherit;color:#4B3A78;background:#F6F2FE;
  border:1px solid #E8E0FA;border-radius:11px;padding:11px 8px;cursor:pointer}
.shx-r button:active{transform:scale(.98)}
.shx-r button.p{background:#6D28D9;color:#fff;border-color:#6D28D9}
.shx-n{font-size:11.5px;color:#8C89A0;margin-top:11px;line-height:1.6}
.shx-n b{color:#6D28D9}