/* ─── 全局防选中与交互屏蔽 ─── */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #1b1d22;
  color: #e8e8ea;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  overflow-x: hidden;
}

* {
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
}

.top-bar,
.bottom-bar {
  position: sticky;
  z-index: 10;
  padding: 10px 18px;
  background: #14161a;
  border-bottom: 1px solid #2a2d33;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #c2c4c8;
}
.top-bar { top: 0; }
.bottom-bar {
  bottom: 0;
  border-top: 1px solid #2a2d33;
  border-bottom: none;
  justify-content: center;
  text-align: center;
}
.brand { font-weight: 600; color: #fff; }
.meta  { color: #888; font-variant-numeric: tabular-nums; }

.viewer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 24px 12px 60px;
}

.page {
  position: relative;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  max-width: min(100%, 900px);
}

.page canvas {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none; /* 关键：取消所有指针事件，避免右键目标 */
}

.page .watermark {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.loading { color: #9aa0a6; margin: 40px auto; }

/* ─── 打印屏蔽 ─── */
.print-block { display: none; }
@media print {
  body > *:not(.print-block) { display: none !important; }
  .print-block {
    display: flex !important;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #000;
    font-size: 24px;
  }
}
