.modal-mask,
.modal-mask * { 
	box-sizing: border-box;
}

  /* ---------- 遮罩层：毛玻璃作用在遮罩层后方（页面内容上） ---------- */
  .modal-mask {
    position: fixed;
    inset: 0;
    z-index: 114514;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;

    /* 半透明底色 + 模糊遮罩层背后的页面内容 */
    background: rgba(0, 0, 0, 0.3);
    /* background: rgba(241, 245, 249, .35);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%); */

    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
  }
  .modal-mask.show {
    opacity: 1;
    visibility: visible;
  }

  /* ---------- 弹窗主体 ---------- */
  .modal {
    position: relative;
    width: min(360px, 100%);
    padding: 30px 24px 26px;
    text-align: center;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .25);

    opacity: 0;
    transform: translateY(18px) scale(.94);
    transition: transform .32s cubic-bezier(.34, 1.4, .64, 1),
                opacity .26s ease;
  }
  .modal-mask.show .modal {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  /* ---------- 关闭按钮 ---------- */
  .modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    font-size: 22px;
    line-height: 1;
    color: #94a3b8;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s, color .2s, transform .25s;
  }
  .modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
    transform: rotate(90deg);
  }

  /* ---------- 标题 ---------- */
  .modal-title {
    margin: 0 0 22px;
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: .5px;
  }

  /* ---------- 二维码 ---------- */
  .qr-wrap {
    display: inline-block;
    padding: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
  }
  .qr-wrap canvas {
    display: block;
    border-radius: 6px;
  }

  .modal-tip {
    margin: 18px 0 0;
    font-size: 13px;
    color: #94a3b8;
  }

  @media (max-width: 420px) {
    .modal { padding: 26px 18px 22px; }
    .qr-wrap canvas { width: 180px; height: 180px; }
  }