/* NF Mask v6 —— m.ashdaiam.club "Read More" 遮罩 1:1 复刻
 * 逆向参考站 handleMaskShow（chunk-common 134d 模块）：
 *   遮罩背景 = linear-gradient(0deg, rgba(29,29,29,0.99) 56.74%, rgba(29,29,29,0.24) 100%)，z-index:9999999
 *   按钮 = 170×76 / 圆角 24px / 白底黑字 22px "Read More"（无卡片、无标题、无遮罩内广告）
 *   穿透 = 整层 pointer-events:none，用户点击直接落到按钮正下方的章末广告（isTrusted 保留） */

/* 遮罩层：与参考站完全一致（z-index 9999999 + 底部 99% 不透明 → 顶部 24% 的暗色渐变）。
   整层 pointer-events:none → 点击穿透到底层章节末广告（GPT 原生点击）。
   页内广告均为文档流/低 z-index（.dailyread-anchor z=100），不可能盖过本层 → 遮罩上无广告 */
#nf-mask {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 9999999;
  display: none;
  justify-content: center;
  align-items: center;
  background: linear-gradient(0deg, rgba(29, 29, 29, 0.99) 56.74%, rgba(29, 29, 29, 0.24) 100%);
  pointer-events: none;
}

/* Read More 按钮：参考站精确值（width 170 / height 76 / radius 24 / #fff 底 #000 字 / 22px）。
   原站内联样式 "font-weigth: 500" 为笔误（无效属性）→ 实际字重 400，此处按实际渲染值。
   继承 pointer-events:none —— 纯视觉元素，点击穿透到下方广告 */
#nf-mask .nf-rm-btn {
  box-sizing: border-box;
  width: 170px;
  height: 76px;
  border-radius: 24px;
  background: #fff;
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  font-weight: 400;
  user-select: none;
  -webkit-user-select: none;
}

/* 倒计时数字：隐藏（用户要求），背后 remain 倒计时/自动关闭逻辑保留 */
#nf-count { display: none; }

/* ---------------- 调试面板（?nf-debug=1） ---------------- */
/* 遮罩显示时面板收起后的角标（点它重新展开面板） */
#nf-dp-badge {
  position: fixed;
  left: 10px;
  top: 64px;
  z-index: 10000001;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.95);
  color: #fbbf24;
  border: 1px solid #374151;
  font: 700 11px/30px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: center;
  padding: 0;
  display: none;
  cursor: pointer;
  box-sizing: border-box;
}
#nf-dp {
  position: fixed;
  left: 10px;
  top: 64px; /* 左上：避开居中的 Read More 按钮 */
  z-index: 10000001;
  width: 300px;
  max-height: 70vh;
  overflow-y: auto;
  background: rgba(17, 24, 39, 0.95);
  color: #d1d5db;
  border: 1px solid #374151;
  border-radius: 10px;
  font: 11px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 10px 12px;
  box-sizing: border-box;
}

#nf-dp .nf-dp-head {
  color: #fbbf24;
  font-weight: 700;
  margin-bottom: 6px;
}

#nf-dp .nf-dp-sec {
  color: #9ca3af;
  margin: 8px 0 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 10px;
}

#nf-dp .nf-dp-body { white-space: nowrap; }

#nf-dp .nf-dp-log {
  max-height: 160px;
  overflow-y: auto;
}

#nf-dp .nf-dp-log div { padding: 1px 0; }
#nf-dp .nf-dp-ad { color: #f87171; }
#nf-dp .nf-dp-content { color: #e5e7eb; }
#nf-dp .nf-dp-blocked { color: #fbbf24; }
#nf-dp .nf-dp-suppress, #nf-dp .nf-dp-show, #nf-dp .nf-dp-close { color: #60a5fa; }
#nf-dp .nf-dp-empty { color: #6b7280; }

#nf-dp .nf-dp-btns { margin-top: 8px; display: flex; gap: 6px; }
#nf-dp button {
  flex: 1;
  background: #1f2937;
  color: #e5e7eb;
  border: 1px solid #374151;
  border-radius: 6px;
  padding: 4px 0;
  font-size: 11px;
  cursor: pointer;
}
#nf-dp button:hover { background: #374151; }
