/* ==========================================================================
 * cn9-security.css — 安全中心 › 安全设置（PC，/account/security?tab=safe）
 *
 * 为什么存在：PC 前端是混淆后的构建产物（SecurityCenter-*.js），改不了源，
 * 站内一贯做法是覆盖层。本文件只重做这一页的视觉与栅格，DOM 结构、表单节点、
 * 事件绑定全部保持原样（标注类由 cn9-security.js 幂等挂上，见那边的文件头）。
 *
 * 选择器来源（artifacts/cn9-security-20261112/before-dom-1440.json）：
 *   ._account_8f1ch_5          → .cn9sec-account   左右两栏的 flex 容器
 *   ._nav_8f1ch_179            → .cn9sec-nav       左账号概览 + ul.ant-menu 五项
 *   ._account-view_8f1ch_20    → .cn9sec-scope     右侧主卡片
 *   ._title_8f1ch_144          → .cn9sec-title     面包屑标题区
 *   ._security_8f1ch_837       → .cn9sec-root
 *   ._info_8f1ch_423           → .cn9sec-card      三张 form 的容器
 *   form.van-form._info-form_  → .cn9sec-form      每行是一张独立的 form（!）
 *   .van-form-item             → .cn9sec-row / .cn9sec-actions（后者无 label）
 *   ._inputWrap_1dzhi_298      → .cn9sec-inputwrap
 *   ._inputWrap-tip_1dzhi_302  → .cn9sec-tip
 *   ._popup-input_1dzhi_625    → .cn9sec-value（手机/邮箱展示态）
 *   ._popup-input-modify_      → .cn9sec-modify（"修改"）
 *   ._btn_8f1ch_621/_btn-submit_/_btn-cancel_ → .cn9sec-btnbox/.cn9sec-ok/.cn9sec-cancel
 *
 * 为什么这么改（对应改造前的四个毛病）：
 *   1. 真实姓名被塞进 240px 的内容盒（build 的 max-width:240px）、helper 文字
 *      绝对定位压在输入框上 → 这里把内容列放开到 1fr，输入框定宽 360×40，
 *      helper 归位到输入框下方的正常文档流；
 *   2. "完成/取消" 是独立的无 label 行，旧覆盖层给它加了 margin-left:112px
 *      导致居中悬空 → 改成贴行尾的右对齐按钮组；
 *   3. 三行 label 起点不一致、分隔线贯通到卡片外 → 统一 96px 定宽右对齐 +
 *      form 左右各 24px 外边距，分隔线落在 form 之间，正好从 label 左缘起；
 *   4. 卡片底部约 380px 死白 → cn9-security.js 量出左栏高度写进 --cn9sec-nav-h，
 *      卡片 min-height 跟左栏齐平，剩余空间交给 .cn9sec-card::after 的极细
 *      网格（金色 3.5% 不透明度 + 渐隐遮罩）收住，而不是留一块死面。
 *
 * 关于 !important 与选择器权重：
 *   blackgold.css 由 video-entry.js 在运行时插入（排在本文件之后），且大量使用
 *   `html.cn9-blackgold.cn9-global-skin body#cn9-blackgold-body [class*="_account-view_"] *`
 *   这类 (1,3,2) 的 !important 规则（强制 color/background/box-shadow）。所以本文件
 *   统一用 `html.cn9sec body:is(#cn9-blackgold-body, body) .cn9sec-*` 作前缀：
 *   :is() 取参数里最高的权重，于是无论 body 上有没有那个 id，都稳定拿到 1 个 id 权重，
 *   再配上自家的标注类即可 >= (1,4,2) 压过皮肤层。!important 只用在"对方也用了
 *   !important"的属性上（色/底/边框/部分被 cn9x 旧覆盖层锁死的布局属性），不做无差别堆叠。
 *   .cn9sec-scope 自身的规则写三遍类名，是为了压过 blackgold 的
 *   `…body#cn9-blackgold-body [class*="_account-view_"] { max-width/margin:auto }`。
 *
 * 为什么叶子选择器写成 :is(标注类, 构建类)：
 *   React 重渲染时会整句重写 className —— 往"真实姓名"里敲第一个字，按钮上的
 *   _btn-disable_ 被去掉的同时 cn9sec-ok 也被抹掉了（实测）。所以凡是会随状态
 *   重渲染的叶子节点（按钮/修改/输入框壳/行），都同时匹配构建类做兜底；
 *   :is() 取参数里的最大权重，两者都是一个类，权重不变。JS 那边的 MutationObserver
 *   也补盯了 class 属性，但那只是让标注保持一致，样式不依赖它。
 *
 * 作用域：仅 html.cn9sec（JS 只在 /account/security 路由挂）。其它账号页、H5 视图
 * （本文件只在 pc 视图注入）均不受影响。
 * ========================================================================== */

/* ==========================================================================
 * 首帧即终态（2026-11-13）：React 先渲染表单、cn9-security.js 的标注最多晚 ~120ms（实测约 5 帧），
 * 之前整张卡片的栅格都挂在 html.cn9sec / .cn9sec-scope / .cn9sec-row 上 → 先按旧皮肤排一遍、
 * 再跳成本文件的布局（输入框 240→360、label 96→112）。现在前缀写成
 *   html body:is(#id, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"]))
 * （左栏/外层同理，行用 :where(.van-form-item):has(> .van-form-item__label) 兜底），
 * 两个分支权重与旧写法逐一相等，所以层叠结果不变（12 个 tab×宽度 的计算样式快照逐行一致），
 * 只是不再等 JS。仍依赖 JS 的只有纯装饰：面包屑拆分、左栏高亮、--cn9sec-nav-h。
 * ========================================================================== */

/* ---------- 令牌（与 blackgold.css 同一套皮肤值） ------------------------ */
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) {
  --sec-gold: #c8a45c;
  --sec-champagne: #e3cf9f;
  --sec-text: #f2eadb;
  --sec-sub: #cbbfa9;
  --sec-dim: #9d907c;
  --sec-edge: rgba(200, 164, 92, .16);
  --sec-line: rgba(200, 164, 92, .12);
  --sec-field: #14110d;
  --sec-pad: 24px;
  --sec-label: 112px;
  --sec-gap: 16px;
  --sec-row: 72px;
  --sec-rail: 104px;   /* 右侧浮动栏（fixed，视口右 20..100px）让出的走廊 */
}

/* ==========================================================================
 * 1. 两栏骨架：左导航 20px 间距，右卡片给右侧浮动栏（联系客服/下载/回到顶部，
 *    fixed 在视口右侧 20..100px）让出一条 104px 的走廊，避免"修改"被压住。
 * ========================================================================== */
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-account, [class*="_account_"]:has(> :where([class*="_account-view_"]) > [class*="_security_"])) {
  align-items: flex-start !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-nav.cn9sec-nav.cn9sec-nav, :where([class*="_account_"]):has(> :where([class*="_account-view_"]) > [class*="_security_"]) > [class*="_nav_"][class*="_nav_"]) {
  align-self: flex-start !important;      /* 固定：避免与 --cn9sec-nav-h 互相撑高 */
  margin-right: 20px !important;
  background: linear-gradient(180deg, rgba(28, 24, 21, .94), rgba(20, 17, 14, .94)) !important;
  border: 1px solid rgba(200, 164, 92, .16) !important;
  border-radius: 4px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35) !important;
  padding-bottom: 12px !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-nav.cn9sec-nav, :where([class*="_account_"]):has(> :where([class*="_account-view_"]) > [class*="_security_"]) > [class*="_nav_"]) [class*="_top_"] {
  border-bottom: 1px solid rgba(200, 164, 92, .12) !important;
  padding-bottom: 8px !important;
  margin-bottom: 8px !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-nav.cn9sec-nav, :where([class*="_account_"]):has(> :where([class*="_account-view_"]) > [class*="_security_"]) > [class*="_nav_"]) .ant-menu,
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-nav.cn9sec-nav, :where([class*="_account_"]):has(> :where([class*="_account-view_"]) > [class*="_security_"]) > [class*="_nav_"]) .ant-menu-submenu-title {
  background: transparent !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-nav.cn9sec-nav, :where([class*="_account_"]):has(> :where([class*="_account-view_"]) > [class*="_security_"]) > [class*="_nav_"]) .ant-menu-submenu-title {
  border-radius: 3px !important;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-nav.cn9sec-nav, :where([class*="_account_"]):has(> :where([class*="_account-view_"]) > [class*="_security_"]) > [class*="_nav_"]) li:hover > .ant-menu-submenu-title,
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-nav.cn9sec-nav, :where([class*="_account_"]):has(> :where([class*="_account-view_"]) > [class*="_security_"]) > [class*="_nav_"]) li:hover > .ant-menu-submenu-title p {
  color: var(--sec-champagne, #e3cf9f) !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-nav.cn9sec-nav, :where([class*="_account_"]):has(> :where([class*="_account-view_"]) > [class*="_security_"]) > [class*="_nav_"]) li:hover > .ant-menu-submenu-title {
  background: rgba(200, 164, 92, .05) !important;
}
/* 选中态（安全中心）：2px 金色左边条 + 微亮底 */
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-nav.cn9sec-nav, :where([class*="_account_"]):has(> :where([class*="_account-view_"]) > [class*="_security_"]) > [class*="_nav_"]) li.cn9sec-nav-active > .ant-menu-submenu-title,
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-nav.cn9sec-nav, :where([class*="_account_"]):has(> :where([class*="_account-view_"]) > [class*="_security_"]) > [class*="_nav_"]) li.cn9sec-nav-active.ant-menu-item {
  background: rgba(200, 164, 92, .06) !important;
  box-shadow: inset 2px 0 0 0 var(--sec-gold, #c8a45c) !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-nav.cn9sec-nav, :where([class*="_account_"]):has(> :where([class*="_account-view_"]) > [class*="_security_"]) > [class*="_nav_"]) li.cn9sec-nav-active > .ant-menu-submenu-title p,
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-nav.cn9sec-nav, :where([class*="_account_"]):has(> :where([class*="_account-view_"]) > [class*="_security_"]) > [class*="_nav_"]) li.cn9sec-nav-active > .ant-menu-submenu-title span {
  color: var(--sec-champagne, #e3cf9f) !important;
}

/* ==========================================================================
 * 2. 卡片：渐变底 + 金色细描边 + 4px 圆角 + 深阴影；高度向左栏看齐。
 * ========================================================================== */
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope.cn9sec-scope.cn9sec-scope, [class*="_account-view_"][class*="_account-view_"][class*="_account-view_"]:has(> [class*="_security_"])) {
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  margin-right: var(--sec-rail, 104px) !important;
  background: linear-gradient(180deg, rgba(28, 24, 21, .94), rgba(20, 17, 14, .94)) !important;
  border: 1px solid rgba(200, 164, 92, .16) !important;
  border-radius: 4px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35) !important;
  min-height: var(--cn9sec-nav-h, 420px) !important;
  overflow: hidden !important;
}

/* 右上角那圈装饰（blackgold 的 ::before 同心圆）在新卡面上太抢眼，收一半亮度。
   选择器重复类名是为了压过 blackgold 的 (1,4,2) !important —— 它由 video-entry.js
   运行时插入，排在本文件之后，权重打平会输。 */
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope.cn9sec-scope.cn9sec-scope.cn9sec-scope, [class*="_account-view_"][class*="_account-view_"][class*="_account-view_"][class*="_account-view_"]:has(> [class*="_security_"]))::before {
  width: 220px !important;
  height: 220px !important;
  opacity: .5 !important;
}

/* 标题：面包屑化 —— "安全中心 │ 安全设置" + 下方 hairline。
   :is(.cn9sec-title, :where([class*="_account-view_"]) > [class*="_title_"]) 写两遍：blackgold 用 (1,4,2) 的 !important 把 _title_ 的
   background-image 锁成老的渐变线、border-bottom-color 锁成 transparent。 */
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope.cn9sec-scope, [class*="_account-view_"][class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-title.cn9sec-title, :where([class*="_account-view_"]) > [class*="_title_"][class*="_title_"]) {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  padding: 20px var(--sec-pad, 24px) 15px !important;
  background: none !important;
  background-image: none !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(200, 164, 92, .16) !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-title-info, [class*="_title-info_"]) {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  line-height: 1.4 !important;
  min-height: calc(18px * 1.4) !important;   /* = 拆分后 .cn9sec-bc-cur 的行高：JS 拆面包屑前后标题行同高，内容不跳 */
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) .cn9sec-bc-sup {
  font-size: 12px !important;
  font-weight: 400 !important;
  letter-spacing: .12em !important;
  color: var(--sec-dim, #9d907c) !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) .cn9sec-bc-sep {
  display: block !important;
  width: 1px !important;
  height: 12px !important;
  background: linear-gradient(180deg, rgba(200, 164, 92, .15), rgba(200, 164, 92, .65), rgba(200, 164, 92, .15)) !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) .cn9sec-bc-cur {
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: .02em !important;
  color: var(--sec-text, #f2eadb) !important;
}

html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-root, :where([class*="_account-view_"]) > [class*="_security_"]) {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  background: transparent !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-card, [class*="_info_"]) {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 4px 0 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}
/* 底部余量：不留死白，用极细金色网格 + 渐隐遮罩收住 */
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-card, [class*="_info_"])::after {
  content: "";
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 var(--sec-pad, 24px);
  background-image:
    linear-gradient(rgba(200, 164, 92, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 164, 92, .035) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 78%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 78%);
  pointer-events: none;
}

/* ==========================================================================
 * 3. 行栅格：label(96, 右对齐) → 16 → 值列(1fr) → 操作列贴行尾
 *    每行是一张独立的 form，所以分隔线画在 form 与 form 之间。
 * ========================================================================== */
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-form, form.van-form) {
  position: relative !important;
  display: block !important;
  margin: 0 var(--sec-pad, 24px) !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-form, form.van-form) + :is(.cn9sec-form, form.van-form) {
  border-top: 1px solid rgba(200, 164, 92, .12) !important;
}
/* 行 hover：微亮底，并向左右各溢出 24px 吃掉卡片内边距，视觉上是"整行" */
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-form, form.van-form)::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--sec-pad, 24px) * -1);
  background: transparent;
  transition: background-color .18s ease;
  pointer-events: none;
  z-index: 0;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-form, form.van-form):hover::before {
  background: rgba(255, 255, 255, .02);
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-form, form.van-form) > * {
  position: relative;
  z-index: 1;
}

html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-row, .van-form-item--realName, .van-form-item--phone, .van-form-item--email, :where(.van-form-item:not([hidden], [style*='display: none'], [style*='display:none'], [class*='_hide_'], .van-hidden)):has(> .van-form-item__label)) {
  display: flex !important;
  align-items: flex-start !important;
  min-height: var(--sec-row, 72px) !important;
  margin: 0 !important;
  padding: 16px 0 !important;
  box-sizing: border-box !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-row, .van-form-item--realName, .van-form-item--phone, .van-form-item--email, :where(.van-form-item:not([hidden], [style*='display: none'], [style*='display:none'], [class*='_hide_'], .van-hidden)):has(> .van-form-item__label)) > :is(.cn9sec-label, .van-form-item__label) {
  flex: 0 0 var(--sec-label, 96px) !important;
  width: var(--sec-label, 96px) !important;
  min-width: 0 !important;
  margin: 0 var(--sec-gap, 16px) 0 0 !important;
  padding: 0 !important;
  text-align: right !important;
  white-space: nowrap !important;
  font-size: 14px !important;
  line-height: 40px !important;
  color: var(--sec-dim, #9d907c) !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-row, .van-form-item--realName, .van-form-item--phone, .van-form-item--email, :where(.van-form-item:not([hidden], [style*='display: none'], [style*='display:none'], [class*='_hide_'], .van-hidden)):has(> .van-form-item__label)) > :is(.cn9sec-label, .van-form-item__label) .van-form-item__label-text {
  font-size: inherit !important;
  color: inherit !important;
  width: auto !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-row, .van-form-item--realName, .van-form-item--phone, .van-form-item--email, :where(.van-form-item:not([hidden], [style*='display: none'], [style*='display:none'], [class*='_hide_'], .van-hidden)):has(> .van-form-item__label)) :is(.cn9sec-content, .van-form-item__content) {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: none !important;
  width: auto !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-row, .van-form-item--realName, .van-form-item--phone, .van-form-item--email, :where(.van-form-item:not([hidden], [style*='display: none'], [style*='display:none'], [class*='_hide_'], .van-hidden)):has(> .van-form-item__label)) :is(.cn9sec-field, .van-form-item__input) {
  width: 100% !important;
  max-width: none !important;
}

/* ---------- 展示态（手机 / 电子邮件） ----------------------------------- */
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-value, [class*="_popup-input_"]) {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  width: 100% !important;
  min-height: 40px !important;
  margin: 0 !important;
  font-size: 14px !important;
  color: var(--sec-text, #f2eadb) !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-value, [class*="_popup-input_"]) > span:not(:is(.cn9sec-modify, [class*="_popup-input-modify_"])) {
  font-size: 14px !important;
  letter-spacing: .01em !important;
  color: var(--sec-text, #f2eadb) !important;
}
/* "修改"：金色文字按钮，贴行尾 */
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-value, [class*="_popup-input_"]) > :is(.cn9sec-modify, [class*="_popup-input-modify_"]) {
  margin-left: auto !important;
  margin-right: 0 !important;   /* 邮箱那行的"修改"自带 margin-right:12px，会比手机行短 12px */
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  font-size: 12px !important;
  line-height: 20px !important;
  color: var(--sec-gold, #c8a45c) !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: color .18s ease;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-value, [class*="_popup-input_"]) > :is(.cn9sec-modify, [class*="_popup-input-modify_"]):hover {
  color: var(--sec-champagne, #e3cf9f) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

/* ---------- 编辑态（真实姓名） ------------------------------------------ */
/* 注意 helper 文案是 _inputWrap_ 的子节点，所以 360 的限宽只能加在输入框外壳上，
   加在 _inputWrap_ 上会把 helper 也压成 360 → 多折一行。 */
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-inputwrap, [class*="_inputWrap_"]) {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  background: transparent !important;
  border: 0 !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-inputwrap, [class*="_inputWrap_"]) .ant-input-affix-wrapper {
  box-sizing: border-box !important;
  background: var(--sec-field, #14110d) !important;
  color: var(--sec-text, #f2eadb) !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-inputwrap, [class*="_inputWrap_"]) .ant-input-affix-wrapper {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 360px !important;
  height: 40px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(200, 164, 92, .22) !important;
  border-radius: 3px !important;
  box-shadow: none !important;
  transition: border-color .18s ease, box-shadow .18s ease;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-inputwrap, [class*="_inputWrap_"]) .ant-input-affix-wrapper:hover {
  border-color: rgba(200, 164, 92, .4) !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-inputwrap, [class*="_inputWrap_"]) .ant-input-affix-wrapper:focus-within {
  border-color: rgba(200, 164, 92, .7) !important;
  box-shadow: 0 0 0 3px rgba(200, 164, 92, .12) !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-inputwrap, [class*="_inputWrap_"]) input.ant-input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  min-height: 0 !important;     /* 构建自带 min-height:42px，会顶出 40px 的外壳 */
  height: 38px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 14px !important;
  line-height: 38px !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-inputwrap, [class*="_inputWrap_"]) input.ant-input::placeholder {
  color: #8a7f6e !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-inputwrap, [class*="_inputWrap_"]) .ant-input-suffix {
  flex: 0 0 auto !important;
  margin-left: 8px !important;
}
/* helper 文案：归位到输入框下方的正常流（原 build 把它绝对定位压在输入框右边） */
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-tip, [class*="_inputWrap-tip_"]) {
  position: static !important;
  inset: auto !important;
  float: none !important;
  display: block !important;
  width: max-content !important;  /* span 默认吃满父级 360px，句子被挤成两行且"一致"孤行 */
  max-width: 520px !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  background: none !important;
  white-space: normal !important;
  overflow: visible !important;
  text-align: left !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: var(--sec-dim, #9d907c) !important;
}

/* ---------- 完成 / 取消：贴行尾的右对齐按钮组 --------------------------- */
/* 注意：这一行在"手机/邮箱"两张 form 里是构建自带的 _hide_8f1ch_1118（display:none），
   所以这里**不能**声明 display —— 一旦强制 display:flex 就会把两组隐藏的"完成/取消"
   放出来（实测过）。只调对齐与间距，显隐交回原组件。 */
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-actions, .van-form-item--undefined) {
  align-items: center !important;
  min-height: 0 !important;
  margin: 0 !important;           /* 压掉旧覆盖层的 margin-left:112px / margin-bottom:18px */
  padding: 0 0 18px !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-actions, .van-form-item--undefined)[class*="_hide_"] {
  display: none !important;       /* 兜底：别让任何覆盖层把隐藏的按钮行放出来 */
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-actions, .van-form-item--undefined) :is(.cn9sec-content, .van-form-item__content),
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-actions, .van-form-item--undefined) :is(.cn9sec-field, .van-form-item__input) {
  flex: 1 1 auto !important;
  display: flex !important;
  justify-content: flex-end !important;
  width: 100% !important;
  max-width: none !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-btnbox, [class*="_btn_"]) {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  width: auto !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-btnbox, [class*="_btn_"]) :is(.cn9sec-ok, [class*="_btn-submit_"]),
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-btnbox, [class*="_btn_"]) :is(.cn9sec-cancel, [class*="_btn-cancel_"]) {
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
  width: 96px !important;
  min-width: 96px !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 3px !important;
  font-size: 14px !important;
  line-height: 36px !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-btnbox, [class*="_btn_"]) :is(.cn9sec-ok, [class*="_btn-submit_"]) {
  background: var(--sec-gold, #c8a45c) !important;
  border: 1px solid var(--sec-gold, #c8a45c) !important;
  color: #1a140b !important;
  font-weight: 600 !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-btnbox, [class*="_btn_"]) :is(.cn9sec-ok, [class*="_btn-submit_"]) .van-button__content,
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-btnbox, [class*="_btn_"]) :is(.cn9sec-ok, [class*="_btn-submit_"]) .van-button__text {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 36px !important;
  color: inherit !important;
  font-weight: inherit !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-btnbox, [class*="_btn_"]) :is(.cn9sec-ok, [class*="_btn-submit_"]):hover {
  background: var(--sec-champagne, #e3cf9f) !important;
  border-color: var(--sec-champagne, #e3cf9f) !important;
}
/* 禁用态（姓名没填时）必须一眼能分辨。
   构建用的是 _btn-disable_8f1ch_645（opacity:.5 + pointer-events:none），不是
   disabled 属性；这里接管透明度，免得"半透明金"糊成一团看不出是禁用还是普通。 */
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-btnbox, [class*="_btn_"]) :is(.cn9sec-ok, [class*="_btn-submit_"])[class*="_btn-disable_"] {
  opacity: 1 !important;
  background: rgba(200, 164, 92, .3) !important;
  border-color: rgba(200, 164, 92, .34) !important;
  color: rgba(26, 20, 11, .72) !important;
  cursor: not-allowed !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-btnbox, [class*="_btn_"]) :is(.cn9sec-ok, [class*="_btn-submit_"])[class*="_btn-disable_"]:hover {
  background: rgba(200, 164, 92, .3) !important;
  border-color: rgba(200, 164, 92, .34) !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-btnbox, [class*="_btn_"]) :is(.cn9sec-ok, [class*="_btn-submit_"]):disabled,
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-btnbox, [class*="_btn_"]) :is(.cn9sec-ok, [class*="_btn-submit_"]).van-button--disabled,
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-btnbox, [class*="_btn_"]) :is(.cn9sec-ok, [class*="_btn-submit_"])[disabled] {
  background: rgba(200, 164, 92, .26) !important;
  border-color: rgba(200, 164, 92, .3) !important;
  color: rgba(26, 20, 11, .55) !important;
  cursor: not-allowed !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-btnbox, [class*="_btn_"]) :is(.cn9sec-cancel, [class*="_btn-cancel_"]) {
  background: transparent !important;
  border: 1px solid rgba(200, 164, 92, .35) !important;
  color: var(--sec-champagne, #e3cf9f) !important;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-btnbox, [class*="_btn_"]) :is(.cn9sec-cancel, [class*="_btn-cancel_"]):hover {
  border-color: rgba(200, 164, 92, .6) !important;
  background: rgba(200, 164, 92, .08) !important;
}

/* ==========================================================================
 * 4. 可达性
 * ========================================================================== */
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(input, button, a, [tabindex]):focus-visible,
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-nav.cn9sec-nav, :where([class*="_account_"]):has(> :where([class*="_account-view_"]) > [class*="_security_"]) > [class*="_nav_"]) :is(a, button, [tabindex], li):focus-visible {
  outline: 2px solid rgba(200, 164, 92, .75) !important;
  outline-offset: 2px !important;
  border-radius: 2px;
}
html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-inputwrap, [class*="_inputWrap_"]) .ant-input-affix-wrapper:focus-within input.ant-input:focus-visible {
  outline: none !important;        /* 聚焦环已经画在外壳上，别画两圈 */
}
@media (prefers-reduced-motion: reduce) {
  html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) *,
  html body:is(#cn9-blackgold-body, body) :is(.cn9sec-nav.cn9sec-nav, :where([class*="_account_"]):has(> :where([class*="_account-view_"]) > [class*="_security_"]) > [class*="_nav_"]) * {
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
 * 3b. 手机/邮箱「空值初次录入」的内联编辑态（账号未绑定时才出现）
 *
 * 真实 DOM（/tmp/dom-dump.json，未绑定账号 cyrus22）——和上一版注释里猜的结构不同：
 *   section.van-form-item--phone
 *     span.van-form-item__label (手机:)
 *     section.van-form-item__content > section.van-form-item__input
 *       span.ant-input-affix-wrapper._input_1dzhi_298       ← affix-wrapper 本身就是 _input_
 *         span.ant-input-prefix > div._loginPsd-prefix_     （旗帜 + 「+86」，绝对定位簇）
 *         input.ant-input  placeholder="请输入电话号码"
 *         span.ant-input-suffix > 清除按钮（空值时 ant-input-clear-icon-hidden）
 *   邮箱同构，只是没有 .ant-input-prefix。
 *
 * 两个关键点（解释为什么之前两版都没生效）：
 *   1. 这两行**没有** _inputWrap_ 外壳 → JS 不会挂 .cn9sec-inputwrap → 旧覆盖层
 *      `.cn9sec-inputwrap .ant-input-affix-wrapper{描金边}` 对手机/邮箱根本不命中，
 *      于是落到 build 默认 + blackgold 皮肤：前缀盒/输入盒/清除盒各自带边 = 三个盒子。
 *   2. 上一版用 `:has(> ._loginPsd-prefix_)`（直接子）——但 _loginPsd-prefix_ 是
 *      .ant-input-prefix 的子节点，不是 _input_ 的直接子，故选择器空转。
 *
 * 做法：直接按行类 .van-form-item--phone/--email 命中那一个 .ant-input-affix-wrapper，
 * 把它做成**唯一**的金边 40px 盒；内部 prefix / input / suffix 一律去边透明，收进盒里。
 * 真实姓名行走的是 _inputWrap_ 分支，这里按行类精确作用域，不回归它，也不动展示态。
 *
 * 作用域/权重：沿用 `html.cn9sec body:is(#id,body) .cn9sec-scope`，再多叠一个
 * .van-form-item__input 类，使 (1,4,x) 稳过 blackgold 的 (1,3,2) !important。
 * ========================================================================== */

/* —— 外盒：affix-wrapper 做成唯一的金边 40px 字段框 —— */
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input
  > .ant-input-affix-wrapper {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 360px !important;
  min-height: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  background: var(--sec-field, #14110d) !important;
  border: 1px solid rgba(200, 164, 92, .22) !important;
  border-radius: 3px !important;
  box-shadow: none !important;
  transition: border-color .18s ease, box-shadow .18s ease;
}
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input
  > .ant-input-affix-wrapper:hover {
  border-color: rgba(200, 164, 92, .4) !important;
}
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input
  > .ant-input-affix-wrapper:focus-within {
  border-color: rgba(200, 164, 92, .7) !important;
  box-shadow: 0 0 0 3px rgba(200, 164, 92, .12) !important;
}

/* —— 输入框：撑满、透明、无边 —— */
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input
  > .ant-input-affix-wrapper input.ant-input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  min-height: 0 !important;      /* build 自带 min-height:42 会顶出 40px 外盒并露出 radius:6 的内框 */
  height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;   /* 去掉 6px 内圆角，聚焦时才不会显出“盒中盒” */
  outline: none !important;
  box-shadow: none !important;
  font-size: 14px !important;
  line-height: 38px !important;
  color: var(--sec-text, #f2eadb) !important;
}
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input
  > .ant-input-affix-wrapper input.ant-input::placeholder {
  color: #8a7f6e !important;
}

/* —— 「+86」前缀：淡金圆角「胶囊」+ 下拉箭头 ——
 * build 把 旗帜+「+86」做成**绝对定位**的簇（_loginPsd-prefix-icon_ position:absolute;
 * left:10px），overflow:visible 下会溢出到输入框、压住 placeholder。先把它改回正常
 * 文档流（position:static），再把 _loginPsd-prefix_ 做成一个自适应宽度的胶囊：淡金底、
 * 细金边、圆角，旗帜切圆角，末尾用 ::after 画一个向下小三角当下拉箭头（build 自带的
 * vant 箭头 i._hide_ 保持隐藏，避免字体图标不可控）。_loginPsd-prefix_ 保留 relative
 * 既作下拉菜单锚点、又作胶囊容器。 */
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input
  > .ant-input-affix-wrapper > .ant-input-prefix {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  height: auto !important;
  margin: 0 12px 0 0 !important;     /* 胶囊到输入框的间距 */
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;              /* 去掉旧的竖分隔线，改用胶囊本身分隔 */
}
/* 胶囊本体 */
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input
  > .ant-input-affix-wrapper .ant-input-prefix [class*="_loginPsd-prefix_"] {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  width: auto !important;
  min-width: 0 !important;
  height: 26px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  background: rgba(200, 164, 92, .10) !important;
  border: 1px solid rgba(200, 164, 92, .24) !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: background-color .18s ease, border-color .18s ease;
}
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input
  > .ant-input-affix-wrapper .ant-input-prefix [class*="_loginPsd-prefix_"]:hover {
  background: rgba(200, 164, 92, .16) !important;
  border-color: rgba(200, 164, 92, .4) !important;
}
/* 把绝对定位的 旗帜+「+86」簇改回正常流 */
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input
  > .ant-input-affix-wrapper .ant-input-prefix [class*="_loginPsd-prefix-icon_"] {
  position: static !important;
  left: auto !important;
  top: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}
/* 旗帜：切 2px 圆角，和胶囊协调 */
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input
  > .ant-input-affix-wrapper .ant-input-prefix [class*="_loginPsd-prefix-icon_"] img {
  display: block !important;
  width: 18px !important;
  height: 13.5px !important;
  margin: 0 !important;
  border-radius: 2px !important;
  object-fit: cover !important;
}
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input
  > .ant-input-affix-wrapper .ant-input-prefix [class*="_loginPsd-prefix-code_"] {
  color: var(--sec-text, #f2eadb) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: .01em !important;
  margin: 0 !important;
}
/* 下拉箭头：CSS 向下小三角，放在胶囊末尾（::after 是 _loginPsd-prefix_ 的最后一个 flex 项） */
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input
  > .ant-input-affix-wrapper .ant-input-prefix [class*="_loginPsd-prefix_"]::after {
  content: "" !important;
  flex: 0 0 auto !important;
  width: 0 !important;
  height: 0 !important;
  margin-left: 1px !important;
  border-left: 3.5px solid transparent !important;
  border-right: 3.5px solid transparent !important;
  border-top: 4px solid rgba(227, 207, 159, .9) !important;
  pointer-events: none !important;
}

/* —— 后缀（清除 X / 未来的验证码按钮）：去边透明，收进盒内贴右 —— */
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input
  > .ant-input-affix-wrapper > .ant-input-suffix {
  flex: 0 0 auto !important;
  margin: 0 0 0 8px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input
  > .ant-input-affix-wrapper > .ant-input-suffix .ant-input-clear-icon {
  color: var(--sec-dim, #9d907c) !important;
}

/* —— 聚焦态：焦点指示只画在外盒上，内层 input 在任何状态都不得有自己的边/环/圆角，
      否则就是你看到的“亮框输入 + 右边一个小盒”。antd 聚焦时给 wrapper 加
      .ant-input-affix-wrapper-focused，且它的 box-shadow/border 权重盖过我的
      :focus-within，所以这里直接命中 -focused。 —— */
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input
  > .ant-input-affix-wrapper.ant-input-affix-wrapper-focused {
  border-color: rgba(200, 164, 92, .7) !important;
  box-shadow: 0 0 0 3px rgba(200, 164, 92, .12) !important;
}
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input
  > .ant-input-affix-wrapper:is(:hover, .ant-input-affix-wrapper-focused)
  input.ant-input,
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input
  > .ant-input-affix-wrapper input.ant-input:is(:hover, :focus, :focus-visible, :active) {
  border: 0 !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* ==========================================================================
 * 3c. 登录密码 / 提现密码 / 安全问题（tab=lgpass / txpass / secret）的输入框
 *
 * 改造前的“盒中盒”（2026-11-13 实测 1440/1280）：
 *   - 3b 的单框规则原先只按 .van-form-item--phone/--email 命中，密码/答案行
 *     落回 build + 皮肤层：外壳 span.ant-input-affix-wrapper 是 #25201b + #43382b 边，
 *     内层 input 却被本文件旧的 `.cn9sec-row input.ant-input{background:#14110d}`
 *     （JS 给**每一行**都挂 .cn9sec-row）刷成深色，再叠上 lively-overrides 的账号页
 *     基线 `input{min-height:42px;border-radius:6px}` → 40px 外壳里塞一个 42px、6px
 *     圆角的深色内盒，上下各溢出 1px、左右被 10px padding 让开 = 用户截图里那块
 *     不对齐的黑框；聚焦时 blackgold 的 `input:focus{box-shadow:0 0 0 1px gold}` 又画在
 *     内盒上，外框保持灰紫。
 *   - 3b 现在改用构建类作用域 `[class*="_account-view_"] [class*="_security_"] form.van-form
 *     .van-form-item__input > .ant-input-affix-wrapper`（权重与原来相同 (1,5,2)），覆盖本页
 *     所有行内输入框，并且**不依赖 cn9-security.js 的标注类**：首帧就是最终样式。
 * 这里只补 3b 没覆盖到的状态：小眼睛、禁用、校验失败、自动填充、安全问题下拉框。
 * ========================================================================== */

/* 小眼睛（显示/隐藏密码）：收在同一个框里，跟随框的状态变色 */
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input > .ant-input-affix-wrapper > .ant-input-suffix .ant-input-password-icon {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  font-size: 16px !important;
  color: var(--sec-dim, #9d907c) !important;
  cursor: pointer !important;
  transition: color .18s ease;
}
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input > .ant-input-affix-wrapper > .ant-input-suffix .ant-input-password-icon:hover,
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input > .ant-input-affix-wrapper-focused > .ant-input-suffix .ant-input-password-icon {
  color: var(--sec-champagne, #e3cf9f) !important;
}

/* 校验失败（van-form 在行上写 validatestatus="error"）：外框转红，聚焦时仍是红框 */
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item[validatestatus="error"] .van-form-item__input > .ant-input-affix-wrapper {
  border-color: rgba(214, 92, 74, .75) !important;
}
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item[validatestatus="error"] .van-form-item__input > .ant-input-affix-wrapper:is(:focus-within, .ant-input-affix-wrapper-focused) {
  box-shadow: 0 0 0 3px rgba(214, 92, 74, .14) !important;
}

/* 禁用 */
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input > .ant-input-affix-wrapper.ant-input-affix-wrapper-disabled {
  opacity: .55 !important;
  cursor: not-allowed !important;
  border-color: rgba(200, 164, 92, .14) !important;
  box-shadow: none !important;
}
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input > .ant-input-affix-wrapper.ant-input-affix-wrapper-disabled input.ant-input {
  cursor: not-allowed !important;
}

/* 浏览器自动填充：Chrome 的黄/蓝底只能用 inset 阴影盖掉，颜色与外框同底 */
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input > .ant-input-affix-wrapper input.ant-input:-webkit-autofill {
  -webkit-text-fill-color: var(--sec-text, #f2eadb) !important;
  caret-color: var(--sec-champagne, #e3cf9f) !important;
  box-shadow: inset 0 0 0 100px var(--sec-field, #14110d) !important;
  transition: background-color 9999s ease-out 0s;
}

/* 行本身不吃 hover 底：页面 inline 皮肤里的 `[class*="row"]:hover{#25201b}` 会命中
   JS 挂的 .cn9sec-row/.cn9x-row，在行上铺一条实色亮带（行级 hover 由 form::before 负责） */
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"] form.van-form .van-form-item:hover {
  background-color: transparent !important;
}

/* 安全问题下拉框：与输入框同一套 360×40 单框 */
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input > .ant-select {
  width: 100% !important;
  max-width: 360px !important;
  height: 40px !important;
}
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input > .ant-select .ant-select-selector {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  height: 40px !important;
  padding: 0 32px 0 12px !important;
  background: var(--sec-field, #14110d) !important;
  border: 1px solid rgba(200, 164, 92, .22) !important;
  border-radius: 3px !important;
  box-shadow: none !important;
  transition: border-color .18s ease, box-shadow .18s ease;
}
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input > .ant-select:hover .ant-select-selector {
  border-color: rgba(200, 164, 92, .4) !important;
}
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input > .ant-select:is(.ant-select-focused, .ant-select-open) .ant-select-selector {
  border-color: rgba(200, 164, 92, .7) !important;
  box-shadow: 0 0 0 3px rgba(200, 164, 92, .12) !important;
}
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input > .ant-select .ant-select-selection-item,
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input > .ant-select .ant-select-selection-placeholder {
  display: flex !important;        /* 选中项里是块级 <section>，再加 antd 的 ::after 占位会折成两行（76px） */
  align-items: center !important;
  height: 38px !important;
  padding: 0 !important;
  font-size: 14px !important;
  line-height: 38px !important;
  color: var(--sec-text, #f2eadb) !important;
}
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input > .ant-select .ant-select-selection-search {
  inset-inline-start: 12px !important;
  inset-inline-end: 32px !important;
}
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input > .ant-select .ant-select-selection-search-input {
  height: 38px !important;
  min-height: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
  form.van-form .van-form-item__input > .ant-select .ant-select-arrow {
  inset-inline-end: 12px !important;
  color: var(--sec-dim, #9d907c) !important;
}
@media (max-width: 1180px) {
  body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
    form.van-form .van-form-item__input > .ant-select {
    max-width: min(100%, 440px) !important;
  }
}
@media (max-width: 640px) {
  body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
    form.van-form .van-form-item__input > .ant-select {
    max-width: none !important;
  }
}

/* ==========================================================================
 * 5. 响应式
 * ========================================================================== */
@media (max-width: 1180px) {
  html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope.cn9sec-scope.cn9sec-scope, [class*="_account-view_"][class*="_account-view_"][class*="_account-view_"]:has(> [class*="_security_"])) {
    --sec-pad: 20px;
    --sec-rail: 96px;
  }
  /* 输入框自适应，但别让它横贯整张卡片 —— 一行输入拉到 600px 既难读也不好看 */
  html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-inputwrap, [class*="_inputWrap_"]) .ant-input-affix-wrapper {
    max-width: min(100%, 440px) !important;
  }
  /* 手机/邮箱内联编辑盒跟随同一上限 */
  body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
    form.van-form .van-form-item__input
    > .ant-input-affix-wrapper {
    max-width: min(100%, 440px) !important;
  }
}

/* ≤1024：左导航变顶部横条，内容全宽 */
@media (max-width: 1024px) {
  html body:is(#cn9-blackgold-body, body) :is(.cn9sec-account, [class*="_account_"]:has(> :where([class*="_account-view_"]) > [class*="_security_"])) {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  html body:is(#cn9-blackgold-body, body) :is(.cn9sec-nav.cn9sec-nav.cn9sec-nav, :where([class*="_account_"]):has(> :where([class*="_account-view_"]) > [class*="_security_"]) > [class*="_nav_"][class*="_nav_"]) {
    width: auto !important;
    align-self: stretch !important;
    margin: 0 0 16px !important;
    padding: 10px 12px !important;
  }
  html body:is(#cn9-blackgold-body, body) :is(.cn9sec-nav.cn9sec-nav, :where([class*="_account_"]):has(> :where([class*="_account-view_"]) > [class*="_security_"]) > [class*="_nav_"]) [class*="_top_"] {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 6px !important;
  }
  html body:is(#cn9-blackgold-body, body) :is(.cn9sec-nav.cn9sec-nav, :where([class*="_account_"]):has(> :where([class*="_account-view_"]) > [class*="_security_"]) > [class*="_nav_"]) .cn9sec-nav-balance {
    display: none !important;      /* 横条里余额行没有位置，账号/ID 已经够定位身份 */
  }
  /* 只接管**根**菜单（.ant-menu-root）。二级菜单 ul.ant-menu-sub 也带 .ant-menu 类，
     早先漏了这个限定，结果把本该折叠的二级项全放出来了（实测 1024/390 都炸）。 */
  html body:is(#cn9-blackgold-body, body) :is(.cn9sec-nav.cn9sec-nav, :where([class*="_account_"]):has(> :where([class*="_account-view_"]) > [class*="_security_"]) > [class*="_nav_"]) .ant-menu.ant-menu-root {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    width: 100% !important;
    scrollbar-width: none;
  }
  html body:is(#cn9-blackgold-body, body) :is(.cn9sec-nav.cn9sec-nav, :where([class*="_account_"]):has(> :where([class*="_account-view_"]) > [class*="_security_"]) > [class*="_nav_"]) .ant-menu.ant-menu-root::-webkit-scrollbar { display: none; }
  html body:is(#cn9-blackgold-body, body) :is(.cn9sec-nav.cn9sec-nav, :where([class*="_account_"]):has(> :where([class*="_account-view_"]) > [class*="_security_"]) > [class*="_nav_"]) .ant-menu.ant-menu-root > li {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
  }
  /* 横条里每项要有自己的呼吸区，否则下一项的图标会贴到上一项的文字上 */
  html body:is(#cn9-blackgold-body, body) :is(.cn9sec-nav.cn9sec-nav, :where([class*="_account_"]):has(> :where([class*="_account-view_"]) > [class*="_security_"]) > [class*="_nav_"]) .ant-menu.ant-menu-root > li > .ant-menu-submenu-title {
    padding: 0 14px 0 6px !important;
  }
  html body:is(#cn9-blackgold-body, body) :is(.cn9sec-nav.cn9sec-nav, :where([class*="_account_"]):has(> :where([class*="_account-view_"]) > [class*="_security_"]) > [class*="_nav_"]) .ant-menu.ant-menu-root > li .ant-menu-submenu-arrow { display: none !important; }
  html body:is(#cn9-blackgold-body, body) :is(.cn9sec-nav.cn9sec-nav, :where([class*="_account_"]):has(> :where([class*="_account-view_"]) > [class*="_security_"]) > [class*="_nav_"]) li.cn9sec-nav-active > .ant-menu-submenu-title {
    box-shadow: inset 0 -2px 0 0 var(--sec-gold, #c8a45c) !important;  /* 横条里改成下边条 */
  }
  html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope.cn9sec-scope.cn9sec-scope, [class*="_account-view_"][class*="_account-view_"][class*="_account-view_"]:has(> [class*="_security_"])) {
    --sec-rail: 88px;   /* 浮动栏是 fixed 在视口右侧的全局组件，窄屏也得给它让路 */
    max-width: none !important;
    min-height: 0 !important;
    margin-left: 0 !important;   /* 竖排后不再需要给左栏留的 20px 缩进 */
  }
  html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-card, [class*="_info_"])::after { min-height: 56px; }
  /* 窄屏让 helper 回到父级宽度内换行（宽屏下 max-content 是为了这句话单行） */
  html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-tip, [class*="_inputWrap-tip_"]) {
    width: auto !important;
    max-width: 100% !important;
  }
}

/* ≤640：行改竖排 */
@media (max-width: 640px) {
  html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope.cn9sec-scope.cn9sec-scope, [class*="_account-view_"][class*="_account-view_"][class*="_account-view_"]:has(> [class*="_security_"])) {
    --sec-pad: 16px;
    --sec-rail: 0px;    /* 这个宽度再让 88px 走廊就没内容区了 */
  }
  /* 行尾右对齐会被浮动栏盖住，窄屏改成紧跟在值后面 */
  html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-value, [class*="_popup-input_"]) {
    flex-wrap: wrap !important;
  }
  html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-value, [class*="_popup-input_"]) > :is(.cn9sec-modify, [class*="_popup-input-modify_"]) {
    margin-left: 10px !important;
  }
  html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-row, .van-form-item--realName, .van-form-item--phone, .van-form-item--email, :where(.van-form-item:not([hidden], [style*='display: none'], [style*='display:none'], [class*='_hide_'], .van-hidden)):has(> .van-form-item__label)) {
    flex-direction: column !important;
    align-items: stretch !important;
    min-height: 0 !important;
    padding: 14px 0 !important;
  }
  html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-row, .van-form-item--realName, .van-form-item--phone, .van-form-item--email, :where(.van-form-item:not([hidden], [style*='display: none'], [style*='display:none'], [class*='_hide_'], .van-hidden)):has(> .van-form-item__label)) > :is(.cn9sec-label, .van-form-item__label) {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 0 6px !important;
    text-align: left !important;
    font-size: 12px !important;
    line-height: 18px !important;
  }
  html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-inputwrap, [class*="_inputWrap_"]),
  html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-inputwrap, [class*="_inputWrap_"]) .ant-input-affix-wrapper {
    max-width: none !important;
    width: 100% !important;
  }
  /* 竖排后手机/邮箱内联编辑盒也铺满行宽 */
  body:is(#cn9-blackgold-body, body) [class*="_account-view_"] [class*="_security_"]
    form.van-form .van-form-item__input
    > .ant-input-affix-wrapper {
    max-width: none !important;
    width: 100% !important;
  }
  html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-btnbox, [class*="_btn_"]) {
    width: 100% !important;
    margin: 0 !important;
  }
  html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-btnbox, [class*="_btn_"]) :is(.cn9sec-ok, [class*="_btn-submit_"]),
  html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-btnbox, [class*="_btn_"]) :is(.cn9sec-cancel, [class*="_btn-cancel_"]) {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
  }
  html body:is(#cn9-blackgold-body, body) :is(.cn9sec-scope, [class*="_account-view_"]:has(> [class*="_security_"])) :is(.cn9sec-title, :where([class*="_account-view_"]) > [class*="_title_"]) {
    padding: 16px var(--sec-pad, 16px) 12px !important;
  }
}
