/* ============ V1.0.0 修复补丁（build b2）样式 ============ */

/* ------------------------------------------------------------
   1. 测试环境横幅：由 fixed 改为参与布局的 sticky 条
      原实现 position:fixed;top:0;height:30px;z-index:200 会盖住平台顶栏
      （顶栏 sticky top:0），并把「单访视/多访视」标签压掉一行。
   ------------------------------------------------------------ */
.env-banner{
  position:sticky;left:auto;right:auto;top:0;
  height:30px;min-height:30px;z-index:300;
  box-shadow:0 1px 0 rgba(0,0,0,.08);
}
/* 顶栏与侧栏顺延 30px，避免吸顶时重新被横幅盖住 */
body.env-test .pnav.v52-pnav{top:30px}
body.env-test .sidebar{top:30px;height:calc(100vh - 30px)}
body.env-test .topbar{top:30px}
body.env-test .v52-rail{top:calc(58px + 30px);height:calc(100vh - 58px - 30px)}
body.env-test .v52-top{top:calc(58px + 30px)}
/* 横幅占 30px 后各外壳的最小高度同步扣减，避免多出一条无意义滚动 */
body.env-test .layout{min-height:calc(100vh - 30px)}
body.env-test .v52-app{min-height:calc(100vh - 88px)}

/* ------------------------------------------------------------
   2. 加载超时面板 / 无权限 / 空态
   ------------------------------------------------------------ */
.v90-stuck{
  max-width:520px;margin:56px auto;padding:26px 28px;background:#fff;
  border:1px solid #eadfc8;border-left:4px solid #d97706;border-radius:12px;
  box-shadow:0 10px 30px rgba(15,23,42,.06);text-align:left;
}
.v90-stuck b{display:block;font-size:15px;color:#8a5a12;margin-bottom:6px}
.v90-stuck span{display:block;font-size:12.5px;color:#6b7f92;line-height:1.8}
.v90-stuck div{margin-top:14px;display:flex;gap:10px}
.v90-stuck .btn-o,.v90-stuck .btn-p{height:32px;line-height:32px;padding:0 16px;border-radius:7px;font-size:12.5px;text-align:center}

.v90-deny,.v90-empty{
  max-width:520px;margin:56px auto;padding:26px 28px;background:#fff;
  border:1px solid #e4eaf1;border-radius:12px;text-align:center;
}
.v90-deny b,.v90-empty b{display:block;font-size:15px;color:#2b3d4b;margin-bottom:8px}
.v90-deny span,.v90-empty span{display:block;font-size:12.5px;color:#7b8fa0;line-height:1.9}
.v90-deny div,.v90-empty a{margin-top:16px}
.v90-deny .btn-o,.v90-deny .btn-p,.v90-empty .btn-p{display:inline-block;height:32px;line-height:32px;padding:0 16px;border-radius:7px;font-size:12.5px}

/* ------------------------------------------------------------
   3. 角色演练：两步确认条
   ------------------------------------------------------------ */
.v90-cf{
  margin-top:14px;padding:14px 16px;border-radius:10px;
  background:linear-gradient(100deg,#fff8ec,#fffdf8);
  border:1px solid #f0dfc0;display:flex;align-items:center;gap:16px;flex-wrap:wrap;
}
.v90-cf[hidden]{display:none}
.v90-cf-t{flex:1;min-width:240px;font-size:13.5px;color:#4b3a1c;line-height:1.7}
.v90-cf-t b{color:#8a5a12}
.v90-cf-t span{display:block;font-size:12px;color:#8b6f45}
.v90-cf-a{display:flex;gap:10px;flex:none}
.v90-cf-a a{height:32px;line-height:32px;padding:0 18px;border-radius:7px;font-size:12.5px;text-align:center}

/* ------------------------------------------------------------
   4. CRF 录入工作台
   ------------------------------------------------------------ */
.v90-crf{display:flex;gap:14px;align-items:flex-start}
.v90-crf-side{
  width:248px;flex:0 0 248px;background:#fff;border:1px solid var(--v52-line,#e4eaf1);
  border-radius:10px;overflow:hidden;display:flex;flex-direction:column;max-height:calc(100vh - 160px);
}
.v90-crf-side .hd{
  display:flex;align-items:baseline;gap:8px;padding:11px 13px;
  border-bottom:1px solid var(--v52-line,#e4eaf1);background:#f8fbfc;
}
.v90-crf-side .hd b{font-size:13px;color:#2b3d4b}
.v90-crf-side .hd i{font-style:normal;font-size:11px;color:#9fb0c0}
.v90-crf-side .kw{
  margin:10px 12px;height:32px;border:1px solid var(--v52-line,#e4eaf1);
  border-radius:7px;padding:0 10px;font-size:12.5px;width:auto;
}
.v90-crf-side .list{overflow:auto;padding:0 8px 10px}
.v90-srow{
  display:grid;grid-template-columns:1fr auto;gap:1px 8px;align-items:center;
  padding:8px 10px;border-radius:8px;text-decoration:none;color:#2b3d4b;
}
.v90-srow:hover{background:#f4faf9}
.v90-srow.on{background:#e8f7f4;box-shadow:inset 3px 0 0 #0fa796}
.v90-srow b{font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v90-srow s{grid-column:1;text-decoration:none;font-size:11px;color:#93a3b3}
.v90-srow em{grid-row:1/3;grid-column:2;font-style:normal;font-size:10.5px;color:#6b7f92;
  background:#f1f5f8;border-radius:9px;padding:1px 7px;white-space:nowrap}
.v90-srow.on em{background:#fff;color:#0b8b7d}

.v90-crf-main{flex:1;min-width:0}
.v90-chead{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:14px}
.v90-chead .l{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.v90-chead .l>b{font-size:18px;font-weight:800;color:#17242f;letter-spacing:.3px;font-variant-numeric:tabular-nums}
.v90-chead .l em{font-style:normal;font-size:12.5px;color:#64748b}
.v90-chead .r{margin-left:auto;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.v90-chead .r .btn-o{height:30px;line-height:30px;padding:0 14px;font-size:12.5px}
.v90-tip{font-size:11.5px;color:#b45309;background:#fff8ec;border:1px solid #f0dfc0;border-radius:6px;padding:3px 9px}

.v90-vhd{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.v90-vhd .t{font-size:14px;font-weight:700;color:#2b3d4b}
.v90-vhd .p{font-size:12px;color:#7b8fa0}
.v90-vhd .p b{color:#0b8b7d}
.v90-bar{height:6px;border-radius:4px;background:#eef3f7;overflow:hidden;margin-top:4px}
.v90-bar i{display:block;height:100%;background:linear-gradient(90deg,#0fa796,#18c1ab);border-radius:4px}
.v90-ok{color:#0b8b7d;font-size:12px}

/* ------------------------------------------------------------
   5. 激活弹窗（邮件 / 微信二维码）
   ------------------------------------------------------------ */
.v90-mask{position:fixed;inset:0;z-index:4000;background:rgba(15,23,42,.5);display:flex;align-items:center;justify-content:center;padding:18px}
.v90-dlg{background:#fff;border-radius:12px;width:min(560px,96vw);max-height:90vh;display:flex;flex-direction:column;box-shadow:0 24px 60px rgba(10,30,28,.3)}
.v90-dlg .hd{display:flex;align-items:center;padding:13px 18px;border-bottom:1px solid #e4eaf1}
.v90-dlg .hd b{font-size:14.5px;color:#17242f}
.v90-dlg .hd .x{margin-left:auto;color:#8fa1b2;text-decoration:none;font-size:20px;line-height:1}
.v90-dlg .bd{padding:16px 18px;overflow:auto}
.v90-dlg .ft{display:flex;justify-content:flex-end;gap:10px;padding:12px 18px;border-top:1px solid #e4eaf1;flex-wrap:wrap}
.v90-dlg .ft a{height:32px;line-height:32px;padding:0 16px;border-radius:7px;font-size:12.5px}
.v90-tb{width:100%;border-collapse:collapse;font-size:12.5px}
.v90-tb th,.v90-tb td{border-bottom:1px solid #eef3f7;padding:8px 10px;text-align:left;vertical-align:middle}
.v90-tb th{width:96px;color:#6b7f92;font-weight:600;background:#f8fbfc}
.v90-tb input{width:100%;height:30px;border:1px solid #e4eaf1;border-radius:6px;padding:0 8px;font-size:11.5px}
.v90-code{font-size:17px;letter-spacing:4px;color:#0b6f64}
.v90-field{margin-bottom:12px}
.v90-field label{display:block;font-size:12px;color:#6b7f92;margin-bottom:5px}
.v90-field input{width:100%;height:34px;border:1px solid #e4eaf1;border-radius:7px;padding:0 10px;font-size:13px}

.v90-qr{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap;margin-bottom:14px}
.v90-qr img{width:176px;height:176px;border:1px solid #e4eaf1;border-radius:10px;padding:8px;background:#fff;flex:none}
.v90-qr-no{width:176px;height:176px;display:flex;align-items:center;justify-content:center;border:1px dashed #d5e2ea;border-radius:10px;font-size:12px;color:#94a3b8;text-align:center;padding:10px;flex:none}
.v90-qr-t{flex:1;min-width:200px;font-size:12.5px;color:#3c4d5b;line-height:1.9}
.v90-qr-t b{display:block;font-size:13px;color:#17242f;margin-bottom:6px}
.v90-qr-t b em{font-style:normal;font-size:18px;letter-spacing:3px;color:#0b6f64;margin-left:4px}
.v90-qr-t span{display:block}
.v90-qr-t s{display:block;margin-top:6px;text-decoration:none;font-size:11.5px;color:#93a3b3}

/* ------------------------------------------------------------
   6. 小屏适配
   ------------------------------------------------------------ */
@media(max-width:900px){
  body.env-test .v52-top{top:30px}
  body.env-test .v52-rail{top:0;height:auto}
  .v90-crf{flex-direction:column}
  .v90-crf-side{width:100%;flex:none;max-height:260px}
  .v90-qr img,.v90-qr-no{width:150px;height:150px}
}
