/* ---------- 顶栏登录态账户区（紧凑版，参照 cloud.divcloud.cn） ---------- */
.hd-user{position:relative;display:flex;align-items:center;height:66px;}
.hd-user[hidden]{display:none !important;}
.hd-user-btn{display:inline-flex;align-items:center;gap:8px;height:66px;padding:0 18px;border:0;background:none;cursor:pointer;font-family:inherit;}
.hd-user-btn:hover{background:rgba(0,86,255,.04);}
.hd .hd-user-btn{color:#172c45 !important;}
.hd-user-name{font-size:14px;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.hd-user-btn .chev{width:9px;height:9px;stroke-width:2;color:#9aa3b2;transition:transform .18s;}
.hd-user-btn[aria-expanded="true"] .chev{transform:rotate(180deg);}
.hd-user-avatar{width:30px;height:30px;border-radius:50%;object-fit:cover;display:block;background:#eef1f7;flex:0 0 30px;}

.hd-user-panel{position:fixed;right:12px;top:68px;z-index:40;width:312px;background:#fff;border-radius:3px;
  box-shadow:0 18px 50px -12px rgba(15,23,42,.22),0 0 0 1px rgba(15,23,42,.06);display:none;}
.hd-user-panel.is-open{display:block;}


.hu-top{display:flex;align-items:center;gap:10px;padding:14px 14px 10px;}
.hu-ava{width:40px;height:40px;border-radius:3px;overflow:hidden;flex:0 0 40px;background:#eef1f7;display:block;}
.hu-ava img{width:100%;height:100%;object-fit:cover;display:block;}
.hu-id{min-width:0;flex:1;}
.hu-nm{display:flex;align-items:center;gap:6px;}
.hu-nm strong{font-size:14.5px;font-weight:600;color:#111827;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.hu-role{flex:none;font-size:10.5px;line-height:16px;padding:0 5px;border-radius:3px;background:#eaf1ff;color:#0056ff;}
.hu-uid{margin:3px 0 0;font-size:11.5px;color:#9aa3b2;}

.hu-card{margin:0 12px 4px;padding:12px 14px 11px;background:#f6f8fb;border-radius:3px;}
.hu-bal{display:flex;align-items:center;justify-content:space-between;}
.hu-lb{font-size:12px;color:#6b7280;}
.hd a.hu-rc,.hu-rc{height:26px;line-height:26px;padding:0 12px;border-radius:3px;background:#0056ff;color:#fff !important;font-size:12px;text-decoration:none;display:inline-block;}
.hu-rc:hover{background:#0048d6;}
.hu-amt{margin-top:5px;font-size:24px;font-weight:700;line-height:1.16;color:#111827;letter-spacing:-.6px;}
.hu-row{display:flex;align-items:center;justify-content:space-between;margin-top:9px;padding-top:9px;
  border-top:1px dashed #e3e7ee;font-size:12px;color:#6b7280;}
.hu-row b{font-weight:600;color:#111827;}
.hu-grid{display:flex;align-items:center;margin-top:9px;padding-top:8px;border-top:1px solid #ebeef4;}
.hd a.hu-cell,.hu-cell{flex:1;display:flex;flex-direction:column;align-items:center;gap:1px;text-decoration:none;}
.hu-cell b{font-size:17px;font-weight:700;line-height:1.1;color:#111827;}
.hu-cell span{font-size:11px;color:#8b93a1;}
.hu-cell:hover b{color:#0056ff;}
.hu-vline{width:1px;height:22px;background:#e3e7ee;}

.hu-menu,.hu-foot{padding:0 6px;}
.hu-menu{padding-top:2px;padding-bottom:0;}
.hu-foot{margin:0 12px;border-top:1px solid #f1f3f7;padding:2px 0 10px;}
.hd .hu-item,.hu-item{display:flex;align-items:center;gap:9px;width:100%;height:37px;padding:0 9px;border:0;border-radius:3px;
  background:none;font-family:inherit;font-size:13px;color:#374151 !important;text-decoration:none;cursor:pointer;text-align:left;}
.hu-item svg{width:15px;height:15px;color:#8b93a1;flex:0 0 15px;}
.hu-item:hover{background:#f4f6fa;}
.hd .hu-item:hover{color:#0056ff !important;}
.hu-item:hover svg{color:#0056ff;}
.hu-quit{color:#6b7280 !important;}
.hu-badge{margin-left:auto;min-width:17px;height:17px;line-height:17px;padding:0 4px;border-radius:3px;
  background:#f53f3f;color:#fff;font-size:10.5px;font-style:normal;text-align:center;}

@media (max-width: 520px){
  .hd-user-panel{right:0;top:60px;width:100vw;border-radius:0;}
  .hu-card{margin:0 10px 6px;}
  .hu-top{padding:14px 14px 10px;}
}