/**
 * 移植自「1.1拟态yinse-wiki-b」同款防盗与防偷帖系统
 * 包含：全局选择与拖拽拦截、图片防盗链与防长按、全屏微透明防盗水印、高优先级交互放行
 */

/* ==========================================
   1. 全局选择与拖拽控制 (1.1拟态yinse-wiki-b 同款)
   ========================================== */
* {
  -webkit-user-drag: none !important;
  user-drag: none !important;
  -webkit-touch-callout: none !important;
}

/* 默认全站图片彻底禁止拖拽、长按菜单与直接点选保存 */
img {
  -webkit-touch-callout: none !important;
  -webkit-user-drag: none !important;
  -moz-user-drag: none !important;
  -ms-user-drag: none !important;
  user-drag: none !important;
  pointer-events: none;
}

/* 输入框、按钮、下拉列表等交互控件保持可用 */
input,
textarea,
select,
button,
code,
pre {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  pointer-events: auto !important;
}

/* 详情页功能图大图弹窗 (Lightbox) 必须放行缩放与拖拽交互 */
#featureLightbox,
.feature-lightbox-stage,
#featureLightboxImage,
.feature-lightbox-toolbar,
.feature-lightbox-close,
.feature-lightbox-btn,
.interactive-preview-frame {
  pointer-events: auto !important;
}

/* ==========================================
   2. 全屏防盗水印 (已按需求完全移除，保持纯净视觉)
   ========================================== */

/* ==========================================
   3. 拟态风格防盗告警气泡 (Toast)
   ========================================== */
.protection-toast {
  position: fixed;
  z-index: 2147483640;
  left: 50%;
  bottom: 28px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 11px 18px;
  border: 1px solid rgba(126, 184, 185, 0.45);
  border-radius: 12px;
  background: rgba(18, 22, 31, 0.94);
  color: #f1f4f9;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42), 0 0 20px rgba(126, 184, 185, 0.18);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px) scale(0.96);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .protection-toast {
  background: rgba(246, 248, 252, 0.96);
  color: #10151f;
  border-color: rgba(108, 154, 155, 0.4);
  box-shadow: 0 16px 36px rgba(45, 60, 80, 0.18), 0 0 16px rgba(108, 154, 155, 0.12);
}

.protection-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
