/* 内容防拷贝 — 阻止随意复制/拖拽，表单与显式放行区域除外（无法防止截图或开发者工具） */
body.copy-protected {
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

body.copy-protected input,
body.copy-protected textarea,
body.copy-protected select,
body.copy-protected [contenteditable="true"],
body.copy-protected .allow-copy,
body.copy-protected .allow-copy * {
  user-select: text;
  -webkit-user-select: text;
}

body.copy-protected img,
body.copy-protected picture,
body.copy-protected video {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

/* 正文图片不响应鼠标，点击穿透到父级链接；Logo 除外 */
body.copy-protected main img,
body.copy-protected .page-main img,
body.copy-protected .site-footer img,
body.copy-protected picture img {
  pointer-events: none;
}

body.copy-protected .brand img,
body.copy-protected .brand-logo-full,
body.copy-protected header .brand img {
  pointer-events: auto;
  -webkit-touch-callout: default;
}

/* 透明遮罩：拦截右键（由 JS 注入 .img-shield） */
body.copy-protected .img-shield {
  position: relative;
  display: block;
  line-height: 0;
}

body.copy-protected .img-shield > img,
body.copy-protected .img-shield > picture {
  display: block;
  width: 100%;
}

body.copy-protected .img-shield-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  cursor: inherit;
}
