.cam-nav-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex-shrink: 0 !important;
  min-width: 108px;
  height: 40px !important;
  padding: 0 14px !important;
  border: none;
  border-radius: 8px;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  background: linear-gradient(135deg, #0ea5e9, #6366f1) !important;
  color: #0a0e1a !important;
  box-shadow: none;
}
.cam-nav-btn:hover {
  box-shadow: 0 0 25px rgba(14, 165, 233, 0.25);
  transform: translateY(-1px);
}
.cam-nav-btn[hidden] { display: none !important; }
.cam-nav-slot {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 108px;
  min-height: 40px;
  flex-shrink: 0;
  position: relative;
  z-index: 10060;
  overflow: visible;
}
@media (max-width: 1135px) {
  .cam-nav-slot { min-width: 56px; min-height: 32px; }
}
.cam-nav-user-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  overflow: visible;
}
.cam-nav-user-wrap[hidden] { display: none !important; }
.cam-nav-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 168px;
  padding: 4px 12px 4px 4px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.cam-nav-user-trigger img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.cam-nav-user-trigger span {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cam-nav-user-arrow {
  font-size: 10px;
  color: #94a3b8;
  flex-shrink: 0;
}
/* 菜单贴齐触发区：上 8px 为命中桥，再 6px 为面板内顶边距（与左右下一致） */
.cam-nav-user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 100%;
  width: max-content;
  margin: 0;
  padding: 14px 6px 6px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  z-index: 10061;
  display: none;
  box-sizing: border-box;
}
.cam-nav-user-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  bottom: 0;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 0;
}
.cam-nav-user-menu.is-open {
  display: block;
}
.cam-nav-user-menu[hidden] { display: none !important; }
.cam-nav-user-menu button {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}
.cam-nav-user-menu button:hover { background: rgba(255, 255, 255, 0.08); }
.cam-nav-user-group {
  position: relative;
  z-index: 1;
  padding: 4px 0 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
}
.cam-nav-user-group-title {
  display: block;
  padding: 6px 12px 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
}
.cam-nav-user-link {
  position: relative;
  z-index: 1;
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}
.cam-nav-user-link:hover { background: rgba(255, 255, 255, 0.08); }
.cam-nav-user-link[hidden] { display: none !important; }
@media (max-width: 1135px) {
  .cam-nav-user-trigger { max-width: 120px; padding-right: 8px; }
  .cam-nav-user-trigger img { width: 28px; height: 28px; }
}
@media (max-width: 1135px) {
  .cam-nav-btn { min-width: 56px; height: 32px !important; padding: 0 10px !important; font-size: 12px !important; }
}

.cam-root {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
}
.cam-root.is-open { display: block; }
.cam-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
/* 强制登录（token 过期 / 后台页）：无灰底、无关闭；透明遮罩拦截点击，禁止切换页面 */
.cam-root.cam-force-login .cam-mask {
  background: transparent;
  pointer-events: auto;
  cursor: default;
}
.cam-root.cam-force-login .cam-close {
  display: none !important;
}
.cam-root.cam-force-login .cam-dialog {
  pointer-events: auto;
}
.cam-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 86%;
  max-width: 360px;
  background: #0B2A55;
  border-radius: 20px;
  padding: 10px 0 30px;
  box-sizing: border-box;
  color: #fff;
}
.cam-close {
  width: 27px;
  height: 27px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  position: absolute;
  left: -20px;
  top: -30px;
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAYAAACN1PRVAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAJBSURBVEiJrZbNkeIwEIVfywfMjc3AmwFzVPkyimBCGIhghggwEcBGABMCEYgLpeOSwTgE37APVu/B8pTXyD9QvCouaqFPLXdLjzAgrfVsMpm8EtEbgKjxS5k5I6ILMx+LojgppbK+tagrYIyJALwDSIY2BAAOvMvz/E8X1As7n88LIcTaZXCXHHQlpTy0Y6I9YIxZCyH2j4AAgIhmAPbGmPVNrA3CyGMbqURKubmBGWMWAPZPBAEArLXLOI4PPzBXcd/uCJ6tFICSUqYCAMIw/PCBiGhnrX0hokvfakR0cfN2nnCEqqpBfVlZa1/iOL5orWfT6VQz89wHul6vSimVnc/nuRDir29DeZ7/Eq5hvccXBMFeaz1TSmXX61W1M2yCtNazIAg6v/lkMnkV7mbwipnn0+lU+4BtUFfmjY29ib4JXUAAh3tAThEZY74xooGbmdRjd4AAIBVjQECVYRiG2+ZYGIbbkSAAiASqPhgUEV3yPF81x/I8Xw21RUPpKFi7GIwxvVXqEzNngzBf1QFYdFVp3zqCmY/3gOpv1NcWHZkdRVEUp64JZVku+8q7DSzLctkByoqiOBHQ/bQQ0a4sy68gCPYDDXspy3IZBME7M396piRSyk0NiwBoPPhg9sll9VsplQkAkFKm1trN0B8fERGt6ovgxxa4By55MitpepEbw/NEa/CfJfDCHHDBzNsHX+7UWruprcAgDKgu2TAMP5j58w5oAuBLSpn6gp2wJrR2xMw8d+AI1c2TonLGoxzxPxZzko8WEVwQAAAAAElFTkSuQmCC") no-repeat center;
  background-size: 27px auto;
}
.cam-close:hover { background-color: rgba(255,0,0,0.5); }
.cam-tabs {
  display: flex;
  justify-content: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 20px;
  color: rgba(255,255,255,0.6);
}
.cam-tabs li { padding: 8px 0; cursor: pointer; }
.cam-tabs li.is-active { color: #D6B489; font-weight: 700; border-bottom: 2px solid #D6B489; }
.cam-body { padding: 20px 28px; }
.cam-field { margin-bottom: 24px; }
.cam-input-row {
  display: flex;
  align-items: stretch;
  background: #1C3E6D;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.cam-input-row.phone::before,
.cam-input-row.pwd::before,
.cam-input-row.code::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px auto;
  pointer-events: none;
  z-index: 2;
}
.cam-input-row.phone::before {
  background-image: url("https://nc6.ciip.com/ciipsite/icons/icon-phone.png");
}
.cam-input-row.pwd::before {
  background-image: url("https://nc6.ciip.com/ciipsite/icons/icon-pwd.png");
}
.cam-input-row.code::before {
  background-image: url("https://nc6.ciip.com/ciipsite/icons/icon-code.png");
}
.cam-input {
  flex: 1;
  height: 50px;
  border: none;
  background: transparent !important;
  color: #fff;
  font-size: 15px;
  padding: 0 12px 0 48px;
  outline: none;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  min-width: 0;
}
.cam-input::placeholder { color: rgba(255,255,255,0.45); -webkit-text-fill-color: rgba(255,255,255,0.45); }
.cam-input:-webkit-autofill,
.cam-input:-webkit-autofill:hover,
.cam-input:-webkit-autofill:focus,
.cam-input:-webkit-autofill:active {
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  transition: background-color 99999s ease-in-out 0s;
  box-shadow: 0 0 0 1000px #1C3E6D inset !important;
  border-radius: 0;
  background-image: none !important;
}
.cam-clear-btn,
.cam-eye-btn {
  flex: 0 0 auto;
  width: 28px;
  height: 50px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 3;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
}
.cam-clear-btn:hover,
.cam-eye-btn:hover {
  color: rgba(255, 255, 255, 0.9);
}
.cam-clear-btn[hidden] {
  display: none !important;
}
.cam-clear-btn::before {
  content: '';
  width: 12px;
  height: 12px;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  /* × as SVG — avoids charset/mojibake from literal Unicode in CSS */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff8c' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='M6 6l12 12'/%3E%3C/svg%3E");
}
.cam-clear-btn:hover::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffffd9' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='M6 6l12 12'/%3E%3C/svg%3E");
}
.cam-eye-btn::before {
  content: '';
  width: 14px;
  height: 14px;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  /* eye open */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff8c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
.cam-eye-btn.is-open::before {
  /* eye off */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffffd9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
}
.cam-input-row.code .cam-input {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 8px;
}
.cam-code-btn {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: #D6B489;
  font-size: 13px;
  padding: 0 10px;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}
.cam-code-btn:disabled { color: rgba(255,255,255,0.35); cursor: not-allowed; }
.cam-submit {
  display: block;
  margin: 10px auto;
  width: 151px;
  height: 52px;
  border: none;
  border-radius: 4px;
  background: #D6B489;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 3px 15px rgba(45, 88, 152, 0.4);
}
.cam-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.cam-link-row { margin-top: 16px; text-align: center; font-size: 14px; color: rgba(255,255,255,0.38); }
.cam-link-row a { color: #D6B489; cursor: pointer; text-decoration: none; }

/* 注册弹窗：收紧高度，减少空白 */
#camDlgReg {
  padding: 6px 0 16px;
}
#camDlgReg .cam-tabs {
  font-size: 18px;
}
#camDlgReg .cam-tabs li {
  padding: 6px 0;
}
#camDlgReg .cam-body {
  padding: 12px 24px 4px;
}
#camDlgReg .cam-field {
  margin-bottom: 14px;
}
#camDlgReg .cam-input {
  height: 42px;
  font-size: 14px;
}
#camDlgReg .cam-submit {
  margin: 6px auto 0;
  height: 44px;
  width: 140px;
  font-size: 15px;
}
#camDlgReg .cam-link-row {
  margin-top: 10px;
}
.cam-panel { display: none; }
.cam-panel.is-show { display: block; }
.cam-wx-switch {
  position: absolute;
  right: 0;
  top: 0;
  width: 60px;
  height: 60px;
  cursor: pointer;
}
.cam-wx-switch img { width: 100%; }
.cam-wx-box { padding-top: 20px; text-align: center; }
.cam-wx-qr {
  margin: 0 auto 12px;
  padding: 15px;
  width: 240px;
  height: 240px;
  box-sizing: border-box;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  position: relative;
}
.cam-wx-qr-inner {
  width: 100%;
  height: 100%;
  position: relative;
}
.cam-wx-qr img.code {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cam-wx-qr img.scan {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  animation: cam-scan 2s linear infinite;
}
@keyframes cam-scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}
/* 二维码失效：对齐 ciipSite Login.vue .wx-minicode-fail */
.cam-wx-qr-fail {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  color: #e11d48;
  cursor: pointer;
  user-select: none;
}
.cam-wx-qr-fail img {
  width: 48px;
  height: 48px;
  display: block;
}
.cam-wx-qr-fail span {
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  padding: 0 12px;
}
.cam-wx-tip { color: #aaa; font-size: 14px; }
.cam-success { text-align: center; }
.cam-success img { width: 48px; height: 48px; }
.cam-success p { margin-top: 20px; }
.cam-count { display: block; margin-top: 6px; font-size: 12px; color: #999; }

/* Ant Design Message 风格错误提示（替代 alert） */
.cam-toast-host {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 100100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.cam-toast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(90vw, 480px);
  padding: 9px 12px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  background: #fff;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.cam-toast.is-show {
  opacity: 1;
  transform: translateY(0);
}
.cam-toast-error {
  background: #fff2f0;
  border: 1px solid #ffccc7;
}
.cam-toast-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #ff4d4f;
  font-size: 16px;
  line-height: 1;
}
.cam-toast-text {
  color: rgba(0, 0, 0, 0.88);
  font-size: 14px;
  line-height: 1.5715;
  word-break: break-word;
}

/* 强制登录打开时：禁止操作顶栏/侧栏切换页面（登录按钮仍可点） */
body.cam-force-login-open #header,
body.cam-force-login-open .ciip-admin-shell {
  pointer-events: none !important;
}
body.cam-force-login-open #header .cam-nav-slot {
  pointer-events: auto !important;
}
