/**
 * 倍特人力 OA — 整站设计 Token（蓝色体系统一）
 * 对齐 AdminLTE skin-blue 顶栏 #3c8dbc
 *
 * 用法：
 * 1. 业务页样式优先用 var(--oa-*)，勿再写零散绿色主色
 * 2. 语义色（危险/警告）可保留，但主按钮/激活态/链接统一用 primary
 */
:root {
  /* —— 品牌蓝（与顶栏一致） —— */
  --oa-primary: #3c8dbc;
  --oa-primary-hover: #367fa9;
  --oa-primary-active: #2e6a92;
  --oa-primary-soft: #e8f4fa;
  --oa-primary-soft-2: #d4ebf6;
  --oa-primary-ink: #245f82;

  /* —— 文字 —— */
  --oa-ink: #1f2d3d;
  --oa-ink-soft: #3d4f5f;
  --oa-muted: #73808c;
  --oa-disabled: #a8b3bd;

  /* —— 背景 / 边线 —— */
  --oa-bg: #eef2f5;
  --oa-bg-soft: #f5f7f9;
  --oa-card: #ffffff;
  --oa-line: #e4e9ee;
  --oa-line-strong: #d5dde5;

  /* —— 功能色（非品牌主色，仅状态/警示） —— */
  --oa-danger: #c75b5b;
  --oa-danger-soft: #f8eaea;
  --oa-warning: #d4890a;
  --oa-warning-soft: #fff1dc;
  --oa-success: #3c8dbc; /* 业务「正常/成功」视觉并入品牌蓝，避免青绿混搭 */
  --oa-success-soft: #e8f4fa;

  /* —— 字号阶梯 —— */
  --oa-fs-xs: 12px;
  --oa-fs-sm: 13px;
  --oa-fs-md: 14px;
  --oa-fs-lg: 16px;
  --oa-fs-xl: 18px;
  --oa-fs-title: 20px;

  /* —— 间距 / 圆角 —— */
  --oa-space-1: 4px;
  --oa-space-2: 8px;
  --oa-space-3: 12px;
  --oa-space-4: 16px;
  --oa-space-5: 24px;
  --oa-radius-sm: 4px;
  --oa-radius: 8px;
  --oa-radius-lg: 12px;

  /* —— 阴影 —— */
  --oa-shadow: 0 2px 10px rgba(31, 45, 61, 0.06);
  --oa-shadow-md: 0 8px 24px rgba(31, 45, 61, 0.08);

  /* —— 字体 —— */
  --oa-font: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Helvetica Neue", sans-serif;
}

/* 通用工具类：后续业务页可直接用 */
.oa-text-primary { color: var(--oa-primary) !important; }
.oa-bg-primary { background: var(--oa-primary) !important; }
.oa-bg-primary-soft { background: var(--oa-primary-soft) !important; }
.oa-btn-primary {
  background: var(--oa-primary) !important;
  border-color: var(--oa-primary) !important;
  color: #fff !important;
}
.oa-btn-primary:hover,
.oa-btn-primary:focus {
  background: var(--oa-primary-hover) !important;
  border-color: var(--oa-primary-hover) !important;
  color: #fff !important;
}
.oa-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--oa-radius-sm);
  font-size: var(--oa-fs-xs);
  font-weight: 600;
  line-height: 1.4;
}
.oa-badge-primary {
  color: var(--oa-primary-ink);
  background: var(--oa-primary-soft);
}
.oa-badge-mute {
  color: var(--oa-ink-soft);
  background: #eef2f5;
}
.oa-badge-warn {
  color: #9a5a12;
  background: var(--oa-warning-soft);
}
.oa-badge-danger {
  color: var(--oa-danger);
  background: var(--oa-danger-soft);
}

/* ========== 科技感加载遮罩（addtabs iframe / 业务数据页） ========== */
.bj-tech-boot {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 15%, rgba(56, 189, 248, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 85%, rgba(61, 144, 204, 0.10), transparent 50%),
    linear-gradient(165deg, #f7fafc 0%, #eef5fb 45%, #f4f8fb 100%);
  color: #475569;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  pointer-events: all;
}
.bj-tech-boot--page {
  position: fixed;
  z-index: 99990;
}
.bj-tech-boot.is-leaving {
  opacity: 0;
  -webkit-transition: opacity 0.38s ease;
  transition: opacity 0.38s ease;
  pointer-events: none;
}
.bj-tech-boot-grid {
  position: absolute;
  left: -10%;
  top: -10%;
  right: -10%;
  bottom: -10%;
  background-image:
    linear-gradient(rgba(61, 144, 204, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 144, 204, 0.10) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.7;
  -webkit-animation: bjTechGridDrift 18s linear infinite;
  animation: bjTechGridDrift 18s linear infinite;
  pointer-events: none;
}
.bj-tech-boot-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, transparent 68%);
  -webkit-animation: bjTechPulse 2.4s ease-in-out infinite;
  animation: bjTechPulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
.bj-tech-boot-core {
  position: relative;
  width: 88px;
  height: 88px;
  margin-bottom: 22px;
}
.bj-tech-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border-style: solid;
  border-color: transparent;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  box-sizing: border-box;
}
.bj-tech-ring-a {
  width: 88px;
  height: 88px;
  border-width: 2px;
  border-top-color: #38bdf8;
  border-right-color: rgba(56, 189, 248, 0.25);
  -webkit-animation: bjTechSpin 1.1s linear infinite;
  animation: bjTechSpin 1.1s linear infinite;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}
.bj-tech-ring-b {
  width: 64px;
  height: 64px;
  border-width: 2px;
  border-bottom-color: #3d90cc;
  border-left-color: rgba(61, 144, 204, 0.3);
  -webkit-animation: bjTechSpinRev 1.6s linear infinite;
  animation: bjTechSpinRev 1.6s linear infinite;
}
.bj-tech-ring-c {
  width: 40px;
  height: 40px;
  border-width: 1px;
  border-color: rgba(148, 163, 184, 0.25);
  border-top-color: #7dd3fc;
  -webkit-animation: bjTechSpin 0.85s linear infinite;
  animation: bjTechSpin 0.85s linear infinite;
}
.bj-tech-core-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8, 0 0 22px rgba(56, 189, 248, 0.55);
  -webkit-animation: bjTechDot 1.4s ease-in-out infinite;
  animation: bjTechDot 1.4s ease-in-out infinite;
}
.bj-tech-boot-title {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1e3a5f;
  text-shadow: none;
}
.bj-tech-boot-sub {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  font-size: 13px;
  color: #64748b;
}
.bj-tech-boot-tip {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: 12px;
  color: #94a3b8;
  letter-spacing: 0.04em;
}
.bj-tech-boot-bar {
  position: relative;
  z-index: 1;
  width: 168px;
  height: 3px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(148, 163, 184, 0.18);
}
.bj-tech-boot-bar i {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, #3d90cc, transparent);
  -webkit-animation: bjTechBar 1.35s ease-in-out infinite;
  animation: bjTechBar 1.35s ease-in-out infinite;
}
@-webkit-keyframes bjTechSpin {
  to { -webkit-transform: translate(-50%, -50%) rotate(360deg); transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes bjTechSpin {
  to { -webkit-transform: translate(-50%, -50%) rotate(360deg); transform: translate(-50%, -50%) rotate(360deg); }
}
@-webkit-keyframes bjTechSpinRev {
  to { -webkit-transform: translate(-50%, -50%) rotate(-360deg); transform: translate(-50%, -50%) rotate(-360deg); }
}
@keyframes bjTechSpinRev {
  to { -webkit-transform: translate(-50%, -50%) rotate(-360deg); transform: translate(-50%, -50%) rotate(-360deg); }
}
@-webkit-keyframes bjTechPulse {
  0%, 100% { opacity: 0.55; -webkit-transform: scale(0.92); transform: scale(0.92); }
  50% { opacity: 1; -webkit-transform: scale(1.08); transform: scale(1.08); }
}
@keyframes bjTechPulse {
  0%, 100% { opacity: 0.55; -webkit-transform: scale(0.92); transform: scale(0.92); }
  50% { opacity: 1; -webkit-transform: scale(1.08); transform: scale(1.08); }
}
@-webkit-keyframes bjTechDot {
  0%, 100% { opacity: 0.75; -webkit-transform: scale(0.9); transform: scale(0.9); }
  50% { opacity: 1; -webkit-transform: scale(1.25); transform: scale(1.25); }
}
@keyframes bjTechDot {
  0%, 100% { opacity: 0.75; -webkit-transform: scale(0.9); transform: scale(0.9); }
  50% { opacity: 1; -webkit-transform: scale(1.25); transform: scale(1.25); }
}
@-webkit-keyframes bjTechBar {
  0% { -webkit-transform: translateX(-120%); transform: translateX(-120%); }
  100% { -webkit-transform: translateX(320%); transform: translateX(320%); }
}
@keyframes bjTechBar {
  0% { -webkit-transform: translateX(-120%); transform: translateX(-120%); }
  100% { -webkit-transform: translateX(320%); transform: translateX(320%); }
}
@-webkit-keyframes bjTechGridDrift {
  0% { -webkit-transform: translate(0, 0); transform: translate(0, 0); }
  100% { -webkit-transform: translate(32px, 32px); transform: translate(32px, 32px); }
}
@keyframes bjTechGridDrift {
  0% { -webkit-transform: translate(0, 0); transform: translate(0, 0); }
  100% { -webkit-transform: translate(32px, 32px); transform: translate(32px, 32px); }
}
