/* ═══════════════════════════════════════════════════════════════
   site-h5-modal.css — 「手机端体验」二维码 + 可复制链接弹层（data-h5-entry）

   配套：public/site/static/js/site.js 末尾那段 IIFE（桌面端拦截点击、弹二维码）
   自带 token（弹层挂在 body 下，不在 .site-header 内，所以单独带一份深色 token）
   ═══════════════════════════════════════════════════════════════ */
.h5q,
.h5q-toast {
  /* 与 site-nav.css 的顶栏同一套暖墨金 token：
     这个弹层挂在 body 下（不在 .site-header 内），所以各自带一份，改要一起改。 */
  --gold: #c9a23a;
  --gold-light: #dcbc6a;
  --text: #ece7dd;
  --text-muted: #9c9287;
  --border: rgba(255, 255, 255, 0.08);
  --bg-elevated: #1a1510;
}
/* === H5 手机端演示入口：二维码 + 可复制链接弹层（data-h5-entry） === */
.h5q {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.h5q[hidden] { display: none; }
.h5q-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
}
.h5q-panel {
  position: relative;
  width: min(100%, 360px);
  padding: 28px 24px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-elevated, #1a1510);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: h5qIn 0.18s ease-out;
}
@keyframes h5qIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.h5q-close {
  position: absolute;
  top: 6px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.h5q-close:hover { color: var(--text); }
.h5q-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.h5q-title {
  margin: 0 0 16px;
  font-size: 1.15rem;
  color: #fff;
}
.h5q-qr {
  display: block;
  width: 200px;
  height: 200px;
  margin: 0 auto 14px;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
}
.h5q-tip {
  margin: 0 0 14px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.h5q-link-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.h5q-link {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-family: inherit;
}
.h5q-link:focus { outline: none; border-color: rgba(201, 162, 39, 0.6); }
.h5q-actions { display: flex; justify-content: center; }
.h5q-toast {
  position: fixed;
  left: 50%;
  bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 1200;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(20, 22, 28, 0.94);
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: var(--gold-light);
  font-size: 0.85rem;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.h5q-toast[hidden] { display: none; }
