/* ===== 用户系统：登录弹层 / 用户区 / 参数历史（样张） ===== */
.zj-user-box { display:flex; align-items:center; gap:8px; position:relative; }
.zj-user-btn {
  display:inline-flex; align-items:center; gap:6px; height:34px; padding:0 12px;
  border-radius:10px; border:1px solid rgba(99,102,241,.22); background:#fff;
  color:#4f46e5; font-size:13px; font-weight:600; cursor:pointer; white-space:nowrap;
}
.zj-user-btn:hover { background:#eef2ff; }
.zj-avatar {
  width:24px; height:24px; border-radius:50%; background:linear-gradient(135deg,#4f46e5,#7c3aed);
  color:#fff; font-size:11px; display:flex; align-items:center; justify-content:center;
}
.zj-menu {
  position:fixed; min-width:190px; background:#fff; border-radius:12px;
  box-shadow:0 12px 32px rgba(15,23,42,.18); border:1px solid rgba(15,23,42,.06);
  padding:6px; z-index:10050; display:none;
}
.zj-menu.open { display:block; }
.zj-menu a, .zj-menu button {
  display:flex; width:100%; align-items:center; gap:8px; padding:9px 10px; border:none;
  background:transparent; border-radius:8px; font-size:13px; color:#334155;
  cursor:pointer; text-align:left; text-decoration:none;
}
.zj-menu a:hover, .zj-menu button:hover { background:#f1f5f9; }
.zj-menu .sep { height:1px; background:#e2e8f0; margin:5px 4px; }
.zj-menu .who { padding:8px 10px 6px; font-size:12px; color:#64748b; }

/* 弹层 */
.zj-mask {
  position:fixed; inset:0; background:rgba(15,23,42,.42); backdrop-filter:blur(2px);
  display:none; align-items:center; justify-content:center; z-index:10000;
}
.zj-mask.open { display:flex; }
.zj-modal {
  width:380px; max-width:92vw; max-height:calc(100vh - 24px); overflow:auto; background:#fff; border-radius:16px; padding:22px 22px 18px;
  box-shadow:0 24px 64px rgba(15,23,42,.28);
}
.zj-modal h3 { margin:0 0 4px; font-size:17px; color:#1e293b; }
.zj-modal .sub { font-size:12px; color:#64748b; margin-bottom:16px; line-height:1.6; }
.zj-field { display:flex; gap:8px; margin-bottom:10px; }
.zj-field input {
  flex:1; height:40px; border:1px solid #e2e8f0; border-radius:10px; padding:0 12px;
  font-size:14px; outline:none;
}
.zj-field input:focus { border-color:#818cf8; box-shadow:0 0 0 3px rgba(129,140,248,.15); }
.zj-field .code { flex:0 0 122px; }
.zj-btn {
  width:100%; height:42px; border:none; border-radius:11px; cursor:pointer;
  background:linear-gradient(135deg,#4f46e5,#7c3aed); color:#fff; font-size:14px; font-weight:700;
}
.zj-btn:disabled { opacity:.55; cursor:not-allowed; }
.zj-btn.ghost { background:#f1f5f9; color:#475569; font-weight:600; }
.zj-tip { font-size:11.5px; color:#475569; line-height:1.6; margin-top:10px; }
.zj-err { font-size:12px; color:#dc2626; min-height:16px; margin-bottom:4px; }
.zj-close { position:absolute; right:10px; top:8px; width:28px; height:28px; border:none; background:transparent;
  font-size:18px; line-height:1; color:#475569; cursor:pointer; border-radius:8px; }
.zj-close:hover { background:#eef2f7; }

/* 历史抽屉 */
.zj-drawer-mask { position:fixed; inset:0; background:rgba(15,23,42,.32); display:none; z-index:10000; }
.zj-drawer-mask.open { display:block; }
.zj-drawer {
  position:fixed; right:0; top:0; bottom:0; width:420px; max-width:94vw; background:#fff;
  box-shadow:-12px 0 36px rgba(15,23,42,.18); z-index:10001; display:flex; flex-direction:column;
  transform:translateX(100%); transition:transform .22s ease;
}
.zj-drawer.open { transform:translateX(0); }
.zj-drawer header { padding:16px 18px; border-bottom:1px solid #eef2f7; display:flex;
  align-items:center; justify-content:space-between; }
.zj-drawer header h3 { margin:0; font-size:15px; color:#1e293b; }
.zj-drawer .body { flex:1; overflow:auto; padding:12px 14px; }
.zj-hist { border:1px solid #eef2f7; border-radius:11px; padding:10px 12px; margin-bottom:9px; }
.zj-hist .when { font-size:11.5px; color:#475569; display:flex; justify-content:space-between; }
.zj-hist .what { font-size:13px; color:#334155; margin:5px 0 4px; line-height:1.5; }
.zj-hist .note { font-size:11.5px; color:#4338ca; }
.zj-hist .ops { margin-top:6px; }
.zj-hist button {
  border:1px solid #e2e8f0; background:#fff; border-radius:7px; padding:5px 10px; min-height:28px;
  font-size:11.5px; color:#475569; cursor:pointer;
}
.zj-hist button:hover { border-color:#818cf8; color:#4f46e5; }
.zj-empty { text-align:center; color:#475569; font-size:13px; padding:40px 0; }
.zj-switch { display:flex; align-items:center; justify-content:space-between;
  padding:10px 2px; border-bottom:1px solid #eef2f7; margin-bottom:10px; font-size:13px; color:#334155; }
.zj-switch input { width:40px; height:24px; appearance:none; background:#cbd5e1; border-radius:20px;
  position:relative; cursor:pointer; transition:.2s; }
.zj-switch input:checked { background:#6366f1; }
.zj-switch input::after { content:''; position:absolute; top:2px; left:2px; width:20px; height:20px;
  background:#fff; border-radius:50%; transition:.2s; }
.zj-switch input:checked::after { left:18px; }
.zj-toast {
  position:fixed; left:50%; bottom:44px; transform:translateX(-50%); background:rgba(15,23,42,.9);
  color:#fff; font-size:13px; padding:10px 16px; border-radius:10px; z-index:10002; display:none;
}
.zj-toast.open { display:block; }

/* 协议勾选 */
.zj-agree {
  display:flex; align-items:flex-start; gap:8px; margin:4px 0 12px;
  font-size:12px; color:#475569; line-height:1.6; cursor:pointer;
}
.zj-agree input[type=checkbox] {
  width:16px; height:16px; margin-top:2px; flex:0 0 16px; accent-color:#4f46e5; cursor:pointer;
}
.zj-agree a { color:#4f46e5; text-decoration:none; }
.zj-agree a:hover { text-decoration:underline; }
.zj-btn[aria-disabled=true] { opacity:.55; cursor:not-allowed; }

/* C3 登录设备列表 */
.zj-devs { max-height:300px; overflow:auto; margin-top:6px; font-size:13px; color:#334155; }
.zj-dev { padding:9px 0; border-bottom:1px solid #eef2f7; }
.zj-dev:last-child { border-bottom:none; }
.zj-dev-name { font-weight:600; }
.zj-dev-meta { font-size:11.5px; color:#6b7280; margin-top:3px; }
