/* dx-glow 控件玻璃化补齐 v26111903
   问题：nv_home（个人中心）系列页与发帖页部分控件仍是 Discuz 原生样式——
        白底无圆角、灰底按钮，与全站液态玻璃卡片不统一。
   扫描证据：我的帖子3处、个人设置17处、消息1处、发帖页1处未覆盖；
        首页/论坛/帖子/搜索/统计均为0（已玻璃化）。
   修复：用高特异性覆盖（nv_home 的原生规则优先级高于 touch/extend_common）。
        输入框/下拉 = 半透明白玻璃 + 白描边 + 内阴影；按钮 = 强调蓝渐变 + 蓝投影。
        复用现有 token：--dx-accent / --dx-glass-line / --dx-shadow-1。
   作用域：全站（PC+移动），只命中 #ct 内控件，不影响已玻璃化的页面（その值会被同规格覆盖，视觉一致）。
*/
html:root body #ct :is(input[type=text], input[type=password], input[type=email], input[type=search], textarea, select, .px, .ps, .pt) {
  box-sizing: border-box !important;
  min-height: 40px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(255, 255, 255, .82) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, .74) !important;
  box-shadow: 0 4px 14px rgba(31, 58, 110, .08), inset 0 1px 0 rgba(255, 255, 255, .92) !important;
  color: #24303f !important;
  font-size: 14px !important;
  outline: none !important;
  transition: border-color .18s ease, box-shadow .18s ease !important;
}
html:root body #ct :is(input[type=text], input[type=password], input[type=email], input[type=search], textarea, select, .px, .ps, .pt):focus {
  border-color: var(--dx-accent, #2f6fed) !important;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, .14), inset 0 1px 0 rgba(255, 255, 255, .92) !important;
}
html:root body #ct :is(button, input[type=submit], .pn) {
  box-sizing: border-box !important;
  min-height: 40px !important;
  padding: 0 18px !important;
  border: 1px solid rgba(255, 255, 255, .46) !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #4a86f7, #2f6fed) !important;
  box-shadow: 0 6px 16px rgba(47, 111, 237, .22), inset 0 1px 0 rgba(255, 255, 255, .42) !important;
  color: #fff !important;
  font-size: 14px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}
html:root body #ct :is(button, input[type=submit], .pn):hover { filter: brightness(1.06) !important }
/* 发帖页标题框：保持透明融入卡片，但补齐触达高度与圆角 */
html:root body.pg_post #ct input#subject {
  min-height: 54px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, .62) !important;
}

/* —— 全站扫描补充（v26111903 增量）：原生复选框 / 上传按钮 / 站短收件人 —— */
/* 1) 原生复选框 input.pc（帖子管理勾选）→ 玻璃勾选框 */
html:root body #ct input[type=checkbox].pc,
html:root body #ct input[type=checkbox].pcvm {
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  border: 1px solid rgba(88, 108, 138, .42) !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, .82) !important;
  box-shadow: inset 0 1px 2px rgba(42, 52, 68, .06) !important;
  cursor: pointer !important;
  position: relative !important;
}
html:root body #ct input[type=checkbox].pc:checked,
html:root body #ct input[type=checkbox].pcvm:checked {
  border-color: var(--dx-accent, #2f6fed) !important;
  background: var(--dx-accent, #2f6fed) !important;
}
html:root body #ct input[type=checkbox].pc:checked::after,
html:root body #ct input[type=checkbox].pcvm:checked::after {
  content: "" !important;
  position: absolute !important;
  left: 6px !important;
  top: 2px !important;
  width: 5px !important;
  height: 10px !important;
  border: solid #fff !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
}
/* 2) 头像上传按钮 */
html:root body #ct button#uploadavatar,
html:root body #ct input#uploadavatar {
  min-height: 44px !important;
  border: 1px solid rgba(255, 255, 255, .46) !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #4a86f7, #2f6fed) !important;
  box-shadow: 0 6px 16px rgba(47, 111, 237, .22), inset 0 1px 0 rgba(255, 255, 255, .42) !important;
  color: #fff !important;
}
/* 3) 站短收件人输入框（无 class，用 ID 精确命中） */
html:root body #ct input#username {
  box-sizing: border-box !important;
  min-height: 40px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(255, 255, 255, .82) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, .74) !important;
  box-shadow: 0 4px 14px rgba(31, 58, 110, .08), inset 0 1px 0 rgba(255, 255, 255, .92) !important;
  color: #24303f !important;
  font-size: 14px !important;
}

/* 4) 版块列表管理勾选框 input[name="moderate[]"]（td.o 内）→ 玻璃勾选框 */
html:root body #ct td.o input[type=checkbox][name="moderate[]"],
html:root body #ct input[type=checkbox][name="moderate[]"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  border: 1px solid rgba(88, 108, 138, .42) !important;
  border-radius: 5px !important;
  background: rgba(255, 255, 255, .82) !important;
  box-shadow: inset 0 1px 2px rgba(42, 52, 68, .06) !important;
  cursor: pointer !important;
  position: relative !important;
}
html:root body #ct input[type=checkbox][name="moderate[]"]:checked {
  border-color: var(--dx-accent, #2f6fed) !important;
  background: var(--dx-accent, #2f6fed) !important;
}
html:root body #ct input[type=checkbox][name="moderate[]"]:checked::after {
  content: "" !important;
  position: absolute !important;
  left: 5px !important;
  top: 2px !important;
  width: 5px !important;
  height: 9px !important;
  border: solid #fff !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
}
