/* Local additions: only what the original bundle did not ship. */

html, body { margin: 0; padding: 0; }
* { -webkit-tap-highlight-color: transparent; }

/* 结果长图预览遮罩 */
.yj-capture-mask {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1rem; background: color-mix(in oklab, var(--ink) 80%, transparent);
  backdrop-filter: blur(6px);
}
.yj-capture-mask img {
  max-height: 78svh; max-width: 100%; width: auto;
  border-radius: 0.5rem; border: 1px solid color-mix(in oklab, var(--gold) 40%, transparent);
  object-fit: contain; background: var(--paper);
}

@media print {
  .no-print, header, .yj-capture-mask, .yj-qr-mask, #seal-layer { display: none !important; }
  body { background: #fff; }
}

/* ---------- 结果页底部二维码弹窗 ---------- */
@keyframes yj-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes yj-pop { from { opacity: 0; transform: translateY(10px) scale(.97) } to { opacity: 1; transform: none } }

.yj-qr-mask {
  position: fixed; inset: 0; z-index: 95;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
  background: color-mix(in oklab, var(--ink) 82%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: yj-fade .22s ease-out;
}
.yj-qr-card {
  width: min(340px, 92vw);
  max-height: 92svh;
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  padding: 1.15rem 1.05rem 1rem;
  border-radius: 20px;
  background: var(--paper);
  border: 1px solid color-mix(in oklab, var(--gold) 40%, transparent);
  box-shadow: 0 30px 70px -30px rgba(42, 37, 64, .75);
  overflow: auto;
  animation: yj-pop .28s ease-out;
}
.yj-qr-title {
  margin: 0; text-align: center;
  font-family: "Noto Serif SC", serif; font-size: 15px; font-weight: 600;
  letter-spacing: .12em; color: var(--ink);
}
.yj-qr-frame {
  width: 100%; max-height: 56svh; overflow: hidden;
  border-radius: 14px; background: #fff;
  border: 1px solid color-mix(in oklab, var(--gold) 28%, transparent);
}
.yj-qr-img { display: block; width: 100%; height: auto; }
.yj-qr-hint {
  margin: 0; text-align: center;
  font-family: "Noto Sans SC", system-ui, sans-serif; font-size: 12px; line-height: 1.6;
  color: var(--ink-soft);
}
.yj-qr-actions { display: flex; gap: .6rem; width: 100%; }
.yj-qr-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  height: 42px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--ink-soft);
  font-family: "Noto Sans SC", system-ui, sans-serif; font-size: 13px; font-weight: 500;
  letter-spacing: .1em; text-decoration: none;
}
.yj-qr-btn:active { transform: scale(.98); }
.yj-qr-primary { background: var(--ink); color: var(--paper); border-color: transparent; }
