/* ============ 公共变量与重置 ============ */
:root {
  /* 政企大屏配色 */
  --bg-primary:    #071426;
  --bg-secondary:  #0A1A2F;
  --bg-panel:      rgba(13, 31, 54, 0.85);
  --bg-panel-solid:#0D1F36;
  --border-color:  rgba(0, 212, 255, 0.25);
  --border-strong: rgba(0, 212, 255, 0.6);

  --accent:        #00D4FF;
  --accent-2:      #2D7FF9;
  --accent-glow:   0 0 20px rgba(0, 212, 255, 0.35);

  --text-primary:  #E6F4FF;
  --text-second:   #8FB6D6;
  --text-muted:    #5A7B95;

  --ok:            #22D67A;
  --warn:          #FFB020;
  --danger:        #FF4D4F;
  --offline:       #6B7A8F;

  --panel-radius:  6px;
  --gap:           12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  font-family: "Microsoft YaHei", "PingFang SC", "Source Han Sans", Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; outline: none; }
input  { font-family: inherit; outline: none; }

/* 滚动条美化 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0, 212, 255, 0.6); }
/* ============================================================
   2026-10-10 新增：品牌 LOGO 样式（多租户品牌支持）
   原因：不同客户的 LOGO 尺寸不一，需要自适应缩放、不拉伸变形
   说明：
     - object-fit: contain 保持比例
     - max-height / max-width 限制上限
     - LOGO 加载失败时显示 .brand-logo-placeholder 占位符
   ============================================================ */

/* 通用：LOGO 容器 */
.brand-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* LOGO 图片：自适应 */
.brand-logo-img {
  max-height: 56px;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* LOGO 占位符（默认隐藏，LOGO 加载失败时由 JS 显示） */
.brand-logo-placeholder {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 36px;
  color: var(--accent, #00D4FF);
  text-shadow: 0 0 16px rgba(0, 212, 255, 0.7);
  line-height: 1;
}

/* ---------- 登录页 LOGO 样式 ---------- */
.login-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  min-height: 64px;
}
.login-logo-wrap .brand-logo-img {
  max-height: 72px;
  max-width: 260px;
}
.login-logo-wrap .brand-logo-placeholder {
  width: 56px;
  height: 56px;
  font-size: 44px;
}

/* ---------- 登录页错误提示条 ---------- */
.login-error-tip {
  padding: 8px 12px;
  margin-bottom: 16px;
  font-size: 12px;
  color: #FFB0B0;
  background: rgba(255, 77, 79, 0.12);
  border: 1px solid rgba(255, 77, 79, 0.4);
  border-radius: 4px;
  text-align: center;
  line-height: 1.5;
}

/* ============================================================
   2026-10-10 新增结束
   ============================================================ */