/* 生产接入层：不改设计稿样式，只补登录门与少量运行时修正 */
body.live-ready .side-role{display:none !important;}
body.live-ready #callFab,body.live-ready .call-fab{display:none !important;}
body.live-ready #btnLoginPreview{display:none !important;}

#lgGate{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;
  background:radial-gradient(1200px 600px at 15% 0%,#2f74ff 0%,#1b4fd6 45%,#0f2f86 100%);font-family:"Microsoft YaHei",-apple-system,"PingFang SC",sans-serif;}
#lgGate.hide{display:none;}
#lgGate .lg-bg{position:absolute;inset:0;overflow:hidden;}
#lgGate .lg-bg i{position:absolute;border-radius:50%;background:rgba(255,255,255,.08);}
#lgGate .lg-bg i:nth-child(1){width:520px;height:520px;left:-120px;top:-160px;}
#lgGate .lg-bg i:nth-child(2){width:320px;height:320px;right:6%;bottom:-90px;background:rgba(255,255,255,.06);}
#lgGate .lg-bg i:nth-child(3){width:140px;height:140px;right:22%;top:12%;background:rgba(255,255,255,.05);}
#lgGate .lg-left{position:relative;color:#fff;max-width:520px;padding:0 56px;line-height:1.9;}
#lgGate .lg-left h1{font-size:30px;letter-spacing:2px;margin:0 0 10px;font-weight:700;}
#lgGate .lg-left p{font-size:14px;color:rgba(255,255,255,.82);margin:0;}
#lgGate .lg-left ul{margin:28px 0 0;padding:0;list-style:none;font-size:12.5px;color:rgba(255,255,255,.62);}
#lgGate .lg-left ul li{margin-bottom:6px;}
#lgGate .lg-card{position:relative;width:392px;background:#fff;border-radius:14px;padding:30px 30px 24px;
  box-shadow:0 24px 60px rgba(4,16,48,.35);}
#lgGate .lg-card h2{font-size:18px;color:#16233d;margin:0 0 4px;font-weight:700;}
#lgGate .lg-card .sub{font-size:12px;color:#8a99b0;margin-bottom:22px;}
#lgGate .lg-field{margin-bottom:14px;}
#lgGate .lg-field label{display:block;font-size:12px;color:#57657f;margin-bottom:6px;}
#lgGate .lg-field input{width:100%;height:42px;box-sizing:border-box;border:1px solid #dbe3f0;border-radius:8px;
  padding:0 12px;font-size:13px;color:#16233d;outline:none;transition:border-color .15s,box-shadow .15s;background:#fff;}
#lgGate .lg-field input:focus{border-color:#1e6fff;box-shadow:0 0 0 3px rgba(30,111,255,.12);}
#lgGate .lg-btn{width:100%;height:44px;border:none;border-radius:8px;background:linear-gradient(90deg,#2b74ff,#1e56e6);
  color:#fff;font-size:14px;letter-spacing:1px;cursor:pointer;margin-top:6px;box-shadow:0 8px 20px rgba(30,86,230,.35);}
#lgGate .lg-btn:disabled{opacity:.6;cursor:default;}
#lgGate .lg-msg{min-height:18px;font-size:12px;color:#d93636;margin-top:10px;line-height:1.5;}
#lgGate .lg-sso-wrap{margin-top:4px;}
#lgGate .lg-or{display:flex;align-items:center;gap:10px;margin:14px 0 12px;color:#a3adc2;font-size:11.5px;}
#lgGate .lg-or::before,#lgGate .lg-or::after{content:"";height:1px;background:#e8ecf5;flex:1;}
#lgGate .lg-sso-list{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;}
#lgGate .lg-sso{display:flex;flex-direction:column;align-items:center;justify-content:center;height:54px;border:1px solid #dfe6f2;
  border-radius:8px;background:#fff;text-decoration:none;line-height:1.3;transition:border-color .15s,background .15s;}
#lgGate .lg-sso b{font-size:12px;color:#26344d;font-weight:600;}
#lgGate .lg-sso span{font-size:10.5px;color:#93a0b5;margin-top:3px;}
#lgGate .lg-sso:hover{border-color:#1e6fff;background:#f6f9ff;}
#lgGate .lg-sso.wecom:hover{border-color:#07c160;background:#f2fcf7;}
#lgGate .lg-sso.dingtalk:hover{border-color:#1677ff;background:#f3f8ff;}
#lgGate .lg-sso.feishu:hover{border-color:#3370ff;background:#f4f7ff;}
#lgGate .lg-sso-note{font-size:10.5px;color:#9aa5ba;line-height:1.6;margin-top:8px;}
/* 手机 App 扫码登录 */
#lgGate .lg-qr-wrap{margin-top:2px;}
#lgGate .lg-qr-open{width:100%;height:42px;border:1px solid #dbe3f0;border-radius:8px;background:#f7faff;
  color:#1e56e6;font-size:13px;font-weight:600;cursor:pointer;transition:border-color .15s,background .15s;}
#lgGate .lg-qr-open:hover{border-color:#1e6fff;background:#eff5ff;}
#lgGate .lg-qr-box{display:none;align-items:center;gap:14px;margin-top:12px;padding:12px;border:1px dashed #dbe3f0;border-radius:10px;background:#fbfdff;}
#lgGate .lg-qr-code{flex:0 0 auto;width:148px;height:148px;background:#fff;border-radius:8px;display:flex;align-items:center;justify-content:center;overflow:hidden;
  box-shadow:0 1px 6px rgba(20,55,110,.08);}
#lgGate .lg-qr-code svg{display:block;width:140px;height:140px;}
#lgGate .lg-qr-load{font-size:11.5px;color:#9aa5ba;}
#lgGate .lg-qr-side{flex:1;min-width:0;}
#lgGate .lg-qr-tip{font-size:11.5px;color:#5b6b85;line-height:1.75;}
#lgGate .lg-qr-tip b{color:#16233d;}
#lgGate .lg-qr-tip .ok{color:#0a9d5c;font-weight:600;}
#lgGate .lg-qr-tip.warn{color:#d93636;}
#lgGate .lg-qr-refresh{display:inline-block;margin-top:8px;font-size:11px;color:#1e56e6;text-decoration:none;}
#lgGate .lg-foot{font-size:11.5px;color:#9aa5ba;margin-top:14px;line-height:1.7;border-top:1px dashed #e8ecf5;padding-top:12px;}
#lgGate .lg-tip{position:fixed;bottom:18px;left:0;right:0;text-align:center;color:rgba(255,255,255,.55);font-size:11.5px;line-height:1.7;}
#lgGate .lg-tip .lg-icp{margin-top:2px;}
#lgGate .lg-tip a{color:rgba(255,255,255,.72);text-decoration:none;}
#lgGate .lg-tip a:hover{color:#fff;text-decoration:underline;}

.layui-header .layui-layout-right{display:flex;align-items:center;height:60px;}
.layui-header .layui-layout-right .layui-nav-item{float:none;height:60px;}
.layui-header .layui-layout-right .logout-item{position:static;}
.layui-header .layui-layout-right .logout-item>a#btnLogout{position:static;display:inline-flex;align-items:center;height:60px;
  line-height:normal;padding:0 10px;margin:0;border:0;background:transparent;border-radius:0;font-size:12.5px;
  color:#57657f;cursor:pointer;white-space:nowrap;}
#btnLogout:hover{color:#1e6fff;}
.live-toast-hint{font-size:12px;}

/* 登录页：手机 App 下载二维码 */
#lgGate .lg-app{display:flex;gap:12px;align-items:center;margin-top:14px;padding-top:14px;border-top:1px dashed #e8ecf5;}
#lgGate .lg-app-qr{flex:0 0 108px;width:108px;height:108px;border-radius:10px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden;box-shadow:0 1px 8px rgba(20,55,110,.10);}
#lgGate .lg-app-qr svg{display:block;width:100px;height:100px;}
#lgGate .lg-app-side{flex:1;min-width:0;}
#lgGate .lg-app-t{font-size:12.5px;color:#16233d;display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;}
#lgGate .lg-app-t span{font-size:10.5px;color:#93a0b5;}
#lgGate .lg-app-d{font-size:11px;color:#7b8aa3;line-height:1.65;margin-top:5px;}
#lgGate .lg-app-a{display:inline-block;margin-top:7px;font-size:11.5px;color:#1e56e6;text-decoration:none;font-weight:600;}
#lgGate .lg-app-a:hover{text-decoration:underline;}

/* 登录页窄屏适配：隐藏左侧介绍，登录卡占满宽度 */
@media (max-width:900px){
  #lgGate{flex-direction:column;padding:22px 16px;overflow-y:auto;}
  #lgGate .lg-left{display:none;}
  #lgGate .lg-card{width:100%;max-width:392px;padding:22px 18px 18px;}
  #lgGate .lg-app-qr{flex:0 0 96px;width:96px;height:96px;}
  #lgGate .lg-app-qr svg{width:88px;height:88px;}
}
/* 登录页左侧：手机 App 下载卡（二维码在左栏） */
#lgGate .lg-dl{display:flex;gap:14px;align-items:center;margin-top:26px;padding:14px 16px;max-width:430px;
  background:rgba(255,255,255,.97);border-radius:16px;box-shadow:0 18px 40px rgba(4,16,48,.28);}
#lgGate .lg-dl-qr{flex:0 0 108px;width:108px;height:108px;border-radius:10px;background:#fff;display:flex;
  align-items:center;justify-content:center;overflow:hidden;border:1px solid #e8eefb;}
#lgGate .lg-dl-qr svg{display:block;width:100px;height:100px;}
#lgGate .lg-dl-load{font-size:11px;color:#9aa5ba;text-align:center;line-height:1.5;}
#lgGate .lg-dl-side{flex:1;min-width:0;}
#lgGate .lg-dl-t{font-size:13.5px;font-weight:700;color:#16233d;display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;}
#lgGate .lg-dl-t span{font-size:10.5px;color:#7f8da6;font-weight:400;}
#lgGate .lg-dl-d{font-size:11.5px;color:#6c7a94;line-height:1.7;margin-top:6px;}
#lgGate .lg-dl-a{display:inline-block;margin-top:8px;font-size:11.5px;color:#1e56e6;text-decoration:none;font-weight:600;}
#lgGate .lg-dl-a:hover{text-decoration:underline;}

/* 登录页窄屏适配：隐藏左侧文案，保留下载卡并排到登录卡下方 */
@media (max-width:900px){
  #lgGate{flex-direction:column;padding:22px 16px;overflow-y:auto;}
  #lgGate .lg-left{display:block;order:2;max-width:392px;width:100%;padding:0;color:#fff;}
  #lgGate .lg-left h1,#lgGate .lg-left p,#lgGate .lg-left ul{display:none;}
  #lgGate .lg-card{order:1;width:100%;max-width:392px;padding:22px 18px 18px;}
  #lgGate .lg-dl{order:3;max-width:392px;margin-top:12px;}
  #lgGate .lg-dl-qr{flex:0 0 92px;width:92px;height:92px;}
  #lgGate .lg-dl-qr svg{width:84px;height:84px;}
}

