.hrm-embed{position:relative;height:calc(100vh - 220px);min-height:520px;border:1px solid var(--border);border-radius:12px;overflow:hidden}
.hrm-embed iframe{width:100%;height:100%;display:block;background:#fff}
.hrm-embed #hrm-fallback{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#fff}
.progress{position:relative;height:10px;background:#eef2ff;border-radius:999px;margin-top:10px}
.progress .bar{height:100%;background:linear-gradient(90deg,#1b75ff,#31c7ff);border-radius:999px}
.progress .val{position:absolute;right:8px;top:-22px;color:#6b7280;font-size:12px}
:root{
  --bg:#f5f7fb;
  --card:#fff;
  --text:#1f2937;
  --muted:#6b7280;
  --primary:#2f88ff;
  --primary-600:#1f78f5;
  --border:#e5e7eb;
}
*{box-sizing:border-box}
/* 全局重置：占满视口，清除默认边距 */
html,body{margin:0;padding:0;min-height:100vh;width:100vw;overflow-x:hidden}
body{
  font:14px/1.6 -apple-system,BlinkMacSystemFont,'Segoe UI',PingFang SC,Microsoft YaHei,Arial;
  color:var(--text); background:linear-gradient(120deg,#eff3fb,#f6f8ff);
}
/* 外层容器占满视口高度 */
.container{width:100%;min-height:100vh}
/* 根容器与布局全宽，确保真正铺满 */
#app,#page-shell,.layout,.main{width:100%;min-height:100vh}
.badge{display:inline-block;min-width:18px;padding:0 6px;height:18px;line-height:18px;border-radius:9px;background:#ff5d5d;color:#fff;font-size:12px;margin-left:6px}
.page{display:none;min-height:100vh;padding:24px}
.page.active{display:block}

/* 登录页专属布局 - 现代科技风不对称布局 */
#page-login {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #334155 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#page-login::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 60%);
  opacity: 0.8;
  animation: bgPulse 20s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% { opacity: 0.6; }
  100% { opacity: 0.9; }
}

#login-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 粒子效果容器 */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* 三级菜单样式 */
.nav-submenu-content {
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 180px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-radius: 4px;
  padding: 5px 0;
  display: none;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.nav-submenu-content .menu-item {
  padding: 10px 15px;
  color: var(--text);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-submenu-content .menu-item:hover {
  background: #f5f7fa;
  color: var(--primary);
  padding-left: 20px;
}

.nav-submenu-content .menu-item i {
  font-size: 14px;
  width: 16px;
  text-align: center;
}

.nav-submenu-content .menu-item span {
  font-size: 14px;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
}

.particle-1 {
  width: 4px;
  height: 4px;
  top: 10%;
  left: 20%;
  animation: float-up 15s linear infinite;
}

.particle-2 {
  width: 6px;
  height: 6px;
  top: 30%;
  left: 80%;
  animation: float-up 20s linear infinite 2s;
}

.particle-3 {
  width: 3px;
  height: 3px;
  top: 50%;
  left: 10%;
  animation: float-up 18s linear infinite 4s;
}

.particle-4 {
  width: 5px;
  height: 5px;
  top: 70%;
  left: 60%;
  animation: float-up 22s linear infinite 1s;
}

.particle-5 {
  width: 4px;
  height: 4px;
  top: 20%;
  left: 40%;
  animation: float-up 25s linear infinite 3s;
}

.particle-6 {
  width: 3px;
  height: 3px;
  top: 80%;
  left: 30%;
  animation: float-up 19s linear infinite 5s;
}

.particle-7 {
  width: 5px;
  height: 5px;
  top: 40%;
  left: 70%;
  animation: float-up 17s linear infinite 2.5s;
}

.particle-8 {
  width: 4px;
  height: 4px;
  top: 60%;
  left: 50%;
  animation: float-up 21s linear infinite 1.5s;
}

@keyframes float-up {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(100px);
    opacity: 0;
  }
}

.login-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
}

/* 左侧品牌区域 */
.brand-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.brand-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><circle cx="20" cy="20" r="15" fill="none" stroke="rgba(59, 130, 246, 0.1)" stroke-width="0.5"/><circle cx="80" cy="20" r="10" fill="none" stroke="rgba(139, 92, 246, 0.1)" stroke-width="0.5"/><circle cx="50" cy="50" r="20" fill="none" stroke="rgba(16, 185, 129, 0.1)" stroke-width="0.5"/><circle cx="20" cy="80" r="12" fill="none" stroke="rgba(59, 130, 246, 0.1)" stroke-width="0.5"/><circle cx="80" cy="80" r="18" fill="none" stroke="rgba(139, 92, 246, 0.1)" stroke-width="0.5"/></svg>') repeat;
  opacity: 0.4;
  animation: bgMove 120s linear infinite;
}

@keyframes bgMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(100px, 100px); }
}

.brand-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
  text-align: center;
}

.brand-logo {
  margin-bottom: 30px;
}

.brand-logo img {
  height: 60px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.brand-logo img:hover {
  transform: scale(1.05);
}

.brand-title {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.brand-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 40px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.brand-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 24px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
  border-radius: 12px;
}

.feature-text {
  text-align: left;
}

.feature-text h3 {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 4px;
}

.feature-text p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.brand-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  margin-bottom: 20px;
}

.stat-item {
  text-align: center;
  flex: 1;
  padding: 0 10px;
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* 科技感几何图形 */
.tech-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.tech-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-circle-1 {
  width: 120px;
  height: 120px;
  top: 10%;
  left: 15%;
  animation: float 8s ease-in-out infinite;
}

.tech-circle-2 {
  width: 80px;
  height: 80px;
  top: 60%;
  left: 80%;
  animation: float 6s ease-in-out infinite 1s;
}

.tech-circle-3 {
  width: 60px;
  height: 60px;
  top: 30%;
  left: 70%;
  animation: float 7s ease-in-out infinite 0.5s;
}

.tech-triangle {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

.tech-triangle-1 {
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 52px solid rgba(16, 185, 129, 0.1);
  top: 20%;
  left: 25%;
  transform: rotate(15deg);
  animation: rotate 20s linear infinite;
}

.tech-triangle-2 {
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 35px solid rgba(239, 68, 68, 0.1);
  top: 70%;
  left: 60%;
  transform: rotate(-10deg);
  animation: rotate 15s linear infinite reverse;
}

.tech-square {
  position: absolute;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.tech-square-1 {
  width: 40px;
  height: 40px;
  top: 40%;
  left: 10%;
  transform: rotate(45deg);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1) rotate(45deg); }
  50% { opacity: 0.7; transform: scale(1.1) rotate(45deg); }
}

/* 右侧登录表单区域 */
.login-section {
  flex: 0 0 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.login-section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.login-shape {
  position: absolute;
  opacity: 0.1;
}

.login-shape-1 {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  top: -100px;
  right: -100px;
  animation: float 15s ease-in-out infinite;
}

.login-shape-2 {
  width: 150px;
  height: 150px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: linear-gradient(135deg, #10b981, #3b82f6);
  bottom: -75px;
  left: -75px;
  animation: float 12s ease-in-out infinite 2s;
}

.login-shape-3 {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  top: 50%;
  right: 10%;
  animation: pulse 8s ease-in-out infinite;
}

.login-shape-4 {
  width: 80px;
  height: 80px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  bottom: 20%;
  left: 15%;
  animation: rotate 20s linear infinite;
}

.login-center {
  width: 100%;
  max-width: 520px;
  position: relative;
  z-index: 2;
}

.login-card {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 50px 45px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 580px;
  display: flex;
  flex-direction: column;
}

.login-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 30px 60px -15px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(59, 130, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
    linear-gradient(225deg, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
  z-index: -1;
}

.login-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
  background-size: 200% 100%;
  animation: gradientMove 4s ease infinite;
}

/* 登录卡片内部装饰元素 */
.login-card .card-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.login-card .card-decoration::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  animation: pulse 6s ease-in-out infinite;
}

.login-card .card-decoration::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite 2s;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.login-logo {
  margin-bottom: 30px;
  text-align: center;
}

.login-logo .brand {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.login-logo img {
  height: 48px;
  filter: brightness(1.2);
}

.welcome-text {
  text-align: center;
  margin-bottom: 40px;
}

.welcome-text h2 {
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.welcome-text p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-weight: 400;
}

.input-group {
  margin-bottom: 24px;
}

.login-card .field {
  display: block;
  margin-bottom: 24px;
  position: relative;
}

.login-card .field span {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}

.login-card input,
.login-card select {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border: 1px solid #3b82f6;
  border-radius: 12px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.16);
  transition: all 0.3s ease;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.login-card input::placeholder,
.login-card select::placeholder {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.login-card input:focus,
.login-card select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  background: rgba(255, 255, 255, 0.16);
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.icon-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.icon-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.05);
}

.icon-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* 确保登录页面的密码切换按钮样式正确 */
.login-card .input-wrapper .icon-btn,
#pwd-toggle {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  font-size: 18px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  cursor: pointer !important;
  padding: 8px !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
  pointer-events: auto !important;
}

.login-card .input-wrapper .icon-btn:hover,
#pwd-toggle:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-50%) scale(1.05) !important;
}

.login-card .input-wrapper .icon-btn:active,
#pwd-toggle:active {
  transform: translateY(-50%) scale(0.95) !important;
}

.options-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

.checkbox-group input[type="checkbox"] {
  display: none;
}

.checkbox-checkmark {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.checkbox-group input[type="checkbox"]:checked + .checkbox-checkmark {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

.checkbox-group input[type="checkbox"]:checked + .checkbox-checkmark::after {
  content: "✓";
  color: white;
  font-size: 14px;
}

.login-card .btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  height: 54px;
  letter-spacing: 0.5px;
}

.login-card .btn.primary {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.login-card .btn.primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.login-card .btn.primary:hover::before {
  left: 100%;
}

.login-card .btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.login-card .btn.primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.btn-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.login-card .btn:hover .btn-icon {
  transform: translateX(4px);
}

.other-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  font-size: 15px;
}

.other-actions a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 10px 14px;
  border-radius: 8px;
  position: relative;
}

.other-actions a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.other-actions a:hover {
  color: #ffffff;
  text-decoration: none;
}

.other-actions a:hover::after {
  width: 80%;
}

/* 模态框样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(5px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 24px 24px 20px;
  border-bottom: 1px solid #e9ecef;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.modal-header h3 {
  margin: 0;
  color: #1a2a6c;
  font-size: 20px;
  font-weight: 600;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: #6c757d;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #333;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.contact-item {
  display: flex;
  margin-bottom: 16px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-label {
  font-weight: 600;
  color: #1a2a6c;
  width: 60px;
  flex-shrink: 0;
}

.contact-value {
  color: #495057;
  flex: 1;
  font-size: 15px;
  line-height: 1.5;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
  background: #f8f9fa;
}

/* 用户信息提示样式 - 现代化设计 */
.user-info {
  display: none;
  margin-top: 16px;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 24px rgba(61, 90, 168, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.1);
}

.user-info-content {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(255, 255, 255, 0.85) 100%);
  transition: all 0.4s ease;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.user-info-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.4) 50%, 
    transparent 100%);
  transition: left 0.6s ease;
  z-index: 0;
}

.user-info:hover .user-info-content::before {
  left: 100%;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3d5aa8 0%, #5c7cfa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
  box-shadow: 
    0 4px 12px rgba(61, 90, 168, 0.3),
    0 0 0 3px rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.user-avatar i {
  font-size: 24px;
  color: white;
  transition: transform 0.4s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.user-details {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.user-name {
  font-weight: 700;
  font-size: 17px;
  color: #0d47a1;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.4s ease;
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.user-name::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3d5aa8, #5c7cfa);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.user-dept {
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
  transition: color 0.4s ease;
}

.user-position {
  font-size: 13px;
  color: #6c757d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.4s ease;
}

.user-status {
  display: flex;
  align-items: center;
  margin-left: 8px;
  flex-shrink: 0;
}

/* 悬停效果 - 增强版 */
.user-info:hover {
  box-shadow: 
    0 12px 32px rgba(61, 90, 168, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transform: translateY(-4px);
  border-color: rgba(61, 90, 168, 0.5);
}

.user-info:hover .user-info-content {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 1) 0%, 
    rgba(248, 250, 252, 1) 100%);
}

.user-info:hover .user-avatar {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 
    0 6px 20px rgba(61, 90, 168, 0.4),
    0 0 0 4px rgba(255, 255, 255, 0.2);
}

.user-info:hover .user-avatar i {
  transform: scale(1.15);
}

.user-info:hover .user-name {
  color: #1976d2;
}

.user-info:hover .user-name::after {
  width: 100%;
}

.user-info:hover .user-dept {
  color: #343a40;
}

.user-info:hover .user-position {
  color: #495057;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #28a745;
  margin-right: 8px;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.status-text {
  font-size: 13px;
  font-weight: 600;
  color: #212529;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.user-info:hover .status-indicator {
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3);
}

.user-info:hover .status-text {
  color: #0f172a;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.status-text {
  font-size: 12px;
  color: #28a745;
  font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .login-container {
    flex-direction: column;
  }
  
  .brand-section {
    flex: none;
    min-height: 40vh;
    padding: 30px 20px;
  }
  
  .brand-content {
    max-width: 100%;
  }
  
  .brand-title {
    font-size: 28px;
  }
  
  .brand-subtitle {
    font-size: 16px;
  }
  
  .brand-features {
    display: none;
  }
  
  .login-section {
    flex: none;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
  }
  
  .brand-section {
    flex: none;
    min-height: 30vh;
    padding: 20px 15px;
  }
  
  .brand-content {
    max-width: 100%;
  }
  
  .brand-title {
    font-size: 24px;
  }
  
  .brand-subtitle {
    font-size: 14px;
  }
  
  .brand-features {
    display: none;
  }
  
  .login-section {
    flex: none;
    padding: 15px;
  }
  
  .login-center {
    max-width: 100%;
  }
  
  .login-card {
    padding: 30px 20px;
  }
  
  .welcome-text h2 {
    font-size: 24px;
  }
  
  .welcome-text p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .login-container {
    flex-direction: column;
  }
  
  .brand-section {
    flex: none;
    min-height: 25vh;
    padding: 15px 10px;
  }
  
  .brand-content {
    max-width: 100%;
  }
  
  .brand-title {
    font-size: 20px;
  }
  
  .brand-subtitle {
    font-size: 12px;
  }
  
  .brand-features {
    display: none;
  }
  
  .login-section {
    flex: none;
    padding: 10px;
  }
  
  .login-center {
    max-width: 100%;
  }
  
  .login-card {
    padding: 20px 15px;
    border-radius: 16px;
  }
  
  .welcome-text h2 {
    font-size: 20px;
  }
  
  .welcome-text p {
    font-size: 13px;
  }
  
  .login-card input,
  .login-card select {
    height: 48px;
    padding: 0 15px;
    font-size: 14px;
  }
  
  .login-card .btn {
    height: 44px;
    font-size: 15px;
  }
}
.brand-banner{background:linear-gradient(90deg,#1b75ff,#31c7ff);border-radius:12px;padding:14px 18px;margin:-6px -6px 14px -6px;box-shadow:0 6px 16px rgba(27,117,255,.25)}
.brand{margin:0;font-size:26px;text-align:center;color:#fff}
.btn.primary{font-weight:700}
#page-login .btn.primary{display:block;width:100%;margin-top:8px;background:linear-gradient(90deg,#1b75ff,#31c7ff);border:none}
.subtitle{margin:0 0 20px;color:var(--muted)}
.field{display:flex;flex-direction:column;margin:12px 0}
.field>span{margin:0 0 6px;color:var(--muted)}
.field input,.field select{height:44px;border:1px solid var(--border);border-radius:12px;padding:0 14px;outline:none;background:#fff}
.btn{height:44px;padding:0 16px;border:1px solid var(--border);border-radius:12px;background:#fff;cursor:pointer;transition:background .15s ease, transform .12s ease}
.btn:hover{background:#f7f8fa}
.btn:active{transform:scale(.98)}
.btn.primary{background:var(--primary);border-color:var(--primary);color:#fff}
.btn.primary:hover{background:var(--primary-600)}
.btn.text{border:none;background:transparent;color:var(--muted)}
.hint{margin-top:10px;color:var(--muted);font-size:12px}

.topbar{display:flex;align-items:center;gap:20px;background:#0b2e59;border-bottom:1px solid rgba(255,255,255,.06);padding:0 28px;height:68px;position:sticky;top:0;z-index:1100;color:#e5efff}
.logo{font-weight:800;letter-spacing:.2px;font-size:18px}
.menu{display:flex;gap:10px;margin-left:20px}
.menu a{padding:12px 16px;border-radius:12px;color:#e5efff;text-decoration:none;transition:all .15s ease;font-size:16px;position:relative}
.menu a:hover{background:rgba(255,255,255,.08)}
.menu a::after{content:"";position:absolute;left:14px;right:14px;bottom:6px;height:2px;background:#4ea0ff;transform:scaleX(0);transform-origin:left center;transition:transform .2s ease}
.menu a:hover::after{transform:scaleX(1)}
.menu a.active{background:#1a4173;color:#fff;box-shadow:0 2px 6px rgba(0,0,0,.15) inset}
.menu a.active::after{transform:scaleX(1);background:#9ec5ff}
.actions{margin-left:auto}
/* 版心改为全宽铺满 */
.content{padding:16px;max-width:none;margin:0;width:100%;min-height:calc(100vh - 68px);}
/* 人事部门需要贴左侧并放大内容区 */
.content.fullwide{max-width:none;margin:0;padding-left:16px;padding-right:16px}
.breadcrumb{display:none}
.footer{text-align:center;color:var(--muted);padding:24px}

/* 顶部导航下的二级导航条 */
.subbar{background:#fff;border-bottom:1px solid var(--border);padding:10px 18px}
.subbar .menu{display:flex;gap:8px;flex-wrap:wrap}
.subbar .menu a{padding:8px 12px;border-radius:8px;color:var(--text);text-decoration:none;font-size:14px}
.subbar .menu a.active{background:#eef4ff;color:#1e66ff}
.subbar .filters{display:flex;gap:12px;align-items:center;flex-wrap:wrap}

/* 人事部门二级菜单：卡片分组式 */
.subbar .hr-menu{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:12px;width:100%}
.subbar .hr-group{background:#f7f8fa;border:1px solid var(--border);border-radius:12px;padding:10px}
.subbar .hr-group .title{font-weight:700;color:#0f172a;margin-bottom:6px}
.subbar .hr-group a{display:block;background:#fff;border:1px solid var(--border);color:var(--text);text-decoration:none;border-radius:10px;padding:8px 10px;margin-top:6px;transition:.15s}
.subbar .hr-group a:hover{background:#eef4ff;border-color:#cfe0ff;color:#1e66ff}
.subbar .filters label{color:#6b7280;font-size:13px}
.subbar .filters select{height:30px;border:1px solid var(--border);border-radius:8px;padding:0 8px;background:#fff}

/* 人事部门二级菜单：深蓝分组条样式 */
.subbar .hr-dark{background:#0b2e59;border-radius:10px;padding:10px 14px;color:#e5efff;display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:12px}
.subbar .hr-dark .g{display:flex;flex-direction:column;gap:6px}
.subbar .hr-dark .g-title{font-weight:700;color:#9ec5ff;margin-bottom:2px}
.subbar .hr-dark a{color:#e5efff;text-decoration:none;display:inline-block;margin-right:14px;position:relative;padding-left:12px}
.subbar .hr-dark a:before{content:"•";position:absolute;left:0;top:0;color:#7fb1ff}
.subbar .hr-dark a:hover{color:#bfe0ff}

/* 人事部门左侧导航布局 */
.hr-layout{display:grid;grid-template-columns:220px 1fr 320px;gap:16px;align-items:start}
/* 侧栏靠最左，放大并改为奶白色背景（与72CRM对齐：220px 固定宽） */
.hr-aside{background:#f8fafc;color:#1f2937;border-radius:12px;padding:14px;position:sticky;top:78px;height:fit-content;width:220px;border:1px solid #e5e7eb}
.hr-title{font-weight:800;margin-bottom:8px;letter-spacing:.2px}
.hr-group{margin-top:10px}
.hr-group .g-title{font-size:13px;color:#6b7280;margin-bottom:6px}
/* 菜单项：奶白背景，选中图标变蓝 */
.hr-link{display:flex;align-items:center;gap:10px;color:#1f2937;text-decoration:none;padding:10px 12px;border-radius:10px;margin:6px 0;background:#ffffff;border:1px solid #e5e7eb;transition:.15s}
.hr-link:hover{background:#f3f6fb}
.hr-link .ico{width:26px;height:26px;border-radius:6px;background:#cfd8e3;display:inline-block}
.hr-link.active{background:#eef4ff;border-color:#cfe0ff;color:#1e66ff}
.hr-link.active .ico{background:#1e66ff}
.stats{display:grid;grid-template-columns:repeat(7,1fr);gap:12px}
.stats .item{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:10px 12px;display:flex;align-items:center;gap:10px}
.stats .ico{width:28px;height:28px;border-radius:6px;background:#eef2ff}
.stats .text{display:flex;flex-direction:column;line-height:1.2}
.stats .val{font-weight:700}
.stats .unit{font-size:13px;color:#6b7280}
.pay-grid{display:grid;grid-template-columns:1fr 1fr 2fr;gap:12px}
.tile{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:16px}

/* 组织管理样式 */
.org-layout{display:grid;grid-template-columns:320px 1fr;gap:12px}
.org-layout .card{height:100%}
.org-layout .org-tree{height:70vh}
.hr-empty{color:#6b7280;text-align:center;padding:40px}

/* 右侧卡片表头吸顶与搜索布局 */
.card .card-header{position:sticky;top:0;background:#fff;z-index:2}
.card .card-header .search{height:32px;border:1px solid #e5e7eb;border-radius:6px;padding:0 10px}
.card .card-header .btn{height:32px;padding:0 12px;border-radius:4px;white-space:nowrap;min-width:72px;display:inline-flex;align-items:center;justify-content:center}
.org-tree{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:8px;height:520px;overflow:auto}
.org-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.org-head .search{height:32px;border:1px solid #e5e7eb;border-radius:6px;padding:0 10px}
.org-head .btn{height:32px;padding:0 12px;border-radius:6px}
.org-stats{display:flex;gap:10px;align-items:center;margin-top:8px}
.org-stat-chip{background:#f8fafc;border:1px solid #e5e7eb;border-radius:999px;padding:4px 10px;font-size:12px;color:#334155}
.org-stat-chip .num{font-weight:700;margin-right:4px}
.org-tree h4{margin:0 0 6px 0;font-size:13px}
.org-tree ul{list-style:none;margin:0;padding-left:12px}
.org-tree li{padding:2px 4px;border-radius:6px;cursor:pointer;line-height:1.6;font-size:14px;position:relative}
.org-tree .dept-item{display:flex;align-items:center;gap:8px;justify-content:space-between;padding:6px 8px;border-radius:6px}
.org-tree .dept-item:hover{background:#f5f7fb}
.org-tree .dept-item .name{flex:1;}
.org-tree .dept-item .gear{opacity:.6}
.org-tree .dept-item:hover .gear{opacity:1}
.org-tree .dept-item{display:inline-flex;align-items:center;gap:6px;padding:2px 6px;border-radius:6px;transition:background .18s,color .18s}
.org-tree .dept-item:hover{background:#eef2ff;color:#1e3a8a}
.org-tree .dept-item.active{background:#e6f0ff;color:#1e66ff}
.org-tree .caret{display:inline-block;width:10px;height:10px;border-right:2px solid #6b7280;border-bottom:2px solid #6b7280;transform:rotate(-45deg);margin-right:6px;transition:transform .18s}
.org-tree li.collapsed > .dept-item .caret{transform:rotate(45deg)}
.org-tree li > ul{max-height:600px;overflow:hidden;transition:max-height .22s ease}
.org-tree li.collapsed > ul{max-height:0}
.org-tree li.active{background:#eef4ff;color:#1e66ff}
.org-panel{display:flex;flex-direction:column;gap:12px}
.org-stats{display:flex;gap:16px;align-items:center;font-size:13px;margin-top:2px}
.org-stat{padding:0}
.org-toolbar{display:flex;gap:8px;align-items:center;margin-top:6px}
.org-toolbar .search{flex:1}
.org-toolbar .search{height:28px;border:1px solid #e5e7eb;border-radius:6px;padding:0 10px;font-size:13px}
.org-toolbar .btn{height:28px;padding:0 10px;border-radius:6px;font-size:13px}
.org-table{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:0}
.org-table table{width:100%;border-collapse:collapse}
.org-table th,.org-table td{border-bottom:1px solid #e5e7eb;padding:8px 10px;text-align:left;font-size:13px}
.org-table th{background:#f5f7fb}
.org-table .actions{display:flex;justify-content:flex-end;gap:8px}
.link{color:#2563eb;cursor:pointer;text-decoration:none;font-size:12px;padding:2px 6px;border-radius:4px}
.link:hover{background:#eef2ff}
.link.danger{color:#ef4444}

/* 进入动效和数字轻微弹跳 */
.fade-in-up{animation:fadeInUp .25s ease-out both}
@keyframes fadeInUp{from{opacity:0;transform:translate3d(0,10px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
.countup{transition:transform .18s}
.countup.bump{transform:scale(1.08)}
.org-toolbar{display:flex;gap:8px;align-items:center;justify-content:space-between}
.org-toolbar .left{display:flex;gap:8px;align-items:center}
.org-toolbar .right{display:flex;gap:8px;align-items:center}
.btn.sm{height:28px;padding:0 10px;border-radius:4px;white-space:nowrap;min-width:64px;display:inline-flex;align-items:center;justify-content:center}
.btn.danger{border-color:#fecaca;color:#dc2626;background:#fff}
.btn.danger:hover{background:#fff5f5}
.org-tree-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.org-tree-head h4{margin:0}
.org-tree-head .actions{display:flex;gap:8px;align-items:center}
.org-tree-head .split{width:1px;height:18px;background:#e5e7eb;margin:0 4px}
.org-tree-head .add-link{color:#2563eb;cursor:pointer;user-select:none}
.org-tree-head .add-link:before{content:"+";display:inline-block;margin-right:4px;font-weight:700}

/* org tree rows */
.tree-row{display:flex;align-items:center;gap:6px;padding:6px 8px;border-radius:8px;cursor:pointer}
.tree-row:hover{background:#f5f7fb}
.caret{width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:6px solid #6b7280;transition:transform .15s}
.caret.open{transform:rotate(90deg)}
.icon-btn{width:24px;height:24px;border-radius:6px;border:1px solid #e5e7eb;background:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.icon-btn:hover{background:#f9fafb}
.gear:before{content:"\2699";font-size:14px;color:#6b7280}
.tree-row .icon-btn{opacity:0;margin-left:6px}
.tree-row:hover .icon-btn{opacity:1}
.org-children{margin-left:18px}
.emp-leaf{padding:4px 8px;margin:2px 0;border-radius:6px;color:#2563eb;background:#eef2ff;display:inline-block}

/* right drawer */
.drawer{position:fixed;top:0;right:-520px;width:520px;height:100%;background:#fff;box-shadow:0 0 0 9999px rgba(0,0,0,.35), -6px 0 18px rgba(0,0,0,.08);transition:right .25s ease;z-index:1000;display:flex;flex-direction:column}
.drawer.open{right:0}
.drawer-header{padding:14px 16px;border-bottom:1px solid #eee;display:flex;align-items:center;justify-content:space-between}
.drawer-header h3{margin:0;font-size:16px}
.drawer-body{flex:1;display:flex;min-height:0}
.drawer-tabs{width:110px;border-right:1px solid #eee;padding:10px}
.drawer-tab{padding:8px 10px;border-radius:8px;margin-bottom:6px;cursor:pointer}
.drawer-tab.active{background:#eff6ff;color:#2563eb}
.drawer-content{flex:1;padding:14px;overflow:auto}
.kv{display:grid;grid-template-columns:120px 1fr;gap:8px 12px}
.kv label{color:#6b7280}
.org-pager{display:flex;gap:8px;align-items:center;justify-content:flex-end;padding:8px}
.org-pager .btn, .org-pager select{height:28px;border-radius:6px;font-size:12px}

/* 弹窗样式（创建部门/添加员工） */
.dialog{width:980px;max-height:80vh;padding:18px 20px 12px;overflow:auto}
.dialog.job,.dialog.candidate{width:920px;max-height:86vh}
.dialog.emp{width:920px;max-height:86vh}
.dialog.job .form-item input,.dialog.job .form-item select,.dialog.candidate .form-item input,.dialog.candidate .form-item select{height:32px}
.dialog.job .form-item textarea{min-height:96px}
.dialog h3{margin:0 0 12px 0;font-size:16px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-item{display:flex;flex-direction:column;gap:6px}
.form-item label{font-size:13px}
.form-item input,.form-item select{height:34px;border:1px solid #e5e7eb;border-radius:6px;padding:0 10px;font-size:13px}
.radio{display:flex;gap:14px;align-items:center}
.dialog-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
.btn.primary{background:#1e66ff;color:#fff;border:1px solid #1e66ff}
.btn{height:34px;padding:0 14px;border-radius:6px;border:1px solid #e5e7eb;background:#fff;white-space:nowrap;word-break:keep-all}
.btn.dashed{border-style:dashed}
.btn.ghost{background:transparent}
.tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tools .spacer{flex:1}
.tools input[type="text"], .tools select{height:32px;border:1px solid #e5e7eb;border-radius:6px;padding:0 10px;background:#fff}
.req::before{content:"*";color:#ff4d4f;margin-right:4px}
.tabs-head{display:flex;gap:18px;border-bottom:1px solid #e5e7eb;margin:-10px -20px 12px -20px;padding:0 20px}
.tabs-head .tab{padding:10px 6px;font-size:14px;color:#6b7280;cursor:pointer;border-bottom:2px solid transparent}
.tabs-head .tab.active{color:#1e66ff;border-color:#1e66ff}
/* 分组标题样式 */
.section-title{font-size:14px;font-weight:600;display:flex;align-items:center;margin:6px 0}
.section-title::before{content:"";display:inline-block;width:3px;height:14px;background:#1e66ff;border-radius:2px;margin-right:8px}
.dialog-body{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.hidden{display:none}
.btn.plain{background:#fff;border:1px solid #e5e7eb;color:#333}

/* 招聘管理 */
.recruit-wrap{display:flex;flex-direction:column;gap:10px}
.recruit-tabs{display:flex;gap:8px}
.recruit-tabs .r-tab{padding:6px 10px;border:1px solid #e5e7eb;border-radius:6px;color:#1f2937;text-decoration:none}
.recruit-tabs .r-tab.active{background:#eef4ff;border-color:#cfe0ff;color:#1e66ff}
.r-toolbar{display:flex;gap:8px;align-items:center}
.r-toolbar .search{width:320px;height:30px;border:1px solid #e5e7eb;border-radius:6px;padding:0 10px}
.r-toolbar .btn{height:30px;padding:0 12px;border-radius:6px}
.r-table{background:#fff;border:1px solid #e5e7eb;border-radius:12px}
.r-table table{width:100%;border-collapse:collapse}
.r-table th,.r-table td{border-bottom:1px solid #e5e7eb;padding:8px 10px;text-align:left;font-size:13px}
.r-table th{background:#f5f7fb}
.r-pager{display:flex;justify-content:flex-end;gap:8px;align-items:center;padding:8px}

/* 员工管理 */
.staff-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.staff-toolbar .search{width:260px;height:30px;border:1px solid #e5e7eb;border-radius:6px;padding:0 10px}
.chips{display:flex;gap:6px;flex-wrap:wrap}
.chip{height:28px;display:inline-flex;align-items:center;border:1px solid #e5e7eb;border-radius:14px;padding:0 10px;font-size:12px;color:#374151;background:#fff;cursor:pointer}
.chip.active{background:#deebff;border-color:#4c9aff;color:#1e66ff}
.staff-table{background:#fff;border:1px solid #e5e7eb;border-radius:12px}
.staff-table table{width:100%;border-collapse:collapse}
.staff-table th,.staff-table td{border-bottom:1px solid #e5e7eb;padding:8px 10px;text-align:left;font-size:13px;white-space:nowrap}
.staff-table th{background:#f5f7fb}
.staff-pager{display:flex;justify-content:flex-end;gap:8px;align-items:center;padding:8px}
.field-toggle-btn{margin-left:auto}
.field-panel{position:fixed;right:24px;top:72px;width:320px;max-height:70vh;overflow:auto;background:#fff;border:1px solid #e5e7eb;border-radius:10px;box-shadow:0 8px 30px rgba(0,0,0,.15);padding:12px;z-index:var(--z-popover)}
.field-panel h4{margin:0 0 8px 0;font-size:14px}
.field-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.field-list label{display:flex;align-items:center;gap:6px;font-size:12px}
.hr-content{min-height:240px}
.hr-right{position:sticky;top:78px;height:fit-content}
.hr-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:12px;margin-bottom:12px}
.hr-card h4{margin:0 0 8px 0;font-size:14px}
.hr-badge-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.hr-badge{background:#f8fafc;border:1px solid #e5e7eb;border-radius:10px;padding:10px;text-align:center}
.hr-badge .num{font-weight:700;font-size:18px}
.hr-cal{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:10px}
.hr-cal .head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;color:#6b7280}
.calendar{width:100%;border-collapse:collapse}
.calendar th,.calendar td{border:1px solid #eef2f7;padding:6px;text-align:center;font-size:12px}
.calendar .today{background:#1e66ff;color:#fff;border-color:#1e66ff}
.hr-empty{color:#6b7280;text-align:center;padding:10px;font-size:12px}

.hr-section{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:12px;margin-bottom:12px}
.hr-section .title{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;color:#6b7280}
.hr-section .title .range{font-size:12px}
.hr-stat-7{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}
.hr-stat-7 .item{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:10px}
.hr-stat-7 .ico{width:28px;height:28px;border-radius:6px;background:#eef4ff}
.hr-stat-7 .val{font-weight:700}
.hr-stat-4{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.hr-pay-grid{display:grid;grid-template-columns:1fr 2fr;gap:12px}
.ring{display:flex;align-items:center;justify-content:center;height:160px;border-radius:50%;border:12px solid #e9eef7;color:#6b7280}
/* 字体与可读性 */
body, .content { font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",PingFang SC,Microsoft YaHei,Arial; }
.kpi-muted{color:#6b7280}

.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.grid .span-2{grid-column:span 2}
.card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:16px}
.card-header{display:flex;align-items:center;justify-content:space-between;margin:-6px -6px 12px -6px;padding:6px;border-bottom:1px solid #eef2f7;background:#f5f7fa}
.card-header h3{margin:0;font-size:16px}
.card-actions{display:flex;gap:8px;align-items:center;flex-wrap:nowrap}
.kpis{display:flex;gap:24px;flex-wrap:wrap;list-style:none;padding:0;margin:12px 0 0}
.kpis li{display:flex;flex-direction:column;align-items:flex-start;min-width:120px}
.kpis strong{font-size:22px;line-height:1.2;display:block}
.card h3{margin:0 0 8px 0}
.card #chart-rate + div, .card .gauge-extra{margin-top:8px}
.quick{display:flex;gap:8px;flex-wrap:wrap}
.chip{display:inline-block;padding:6px 10px;border-radius:999px;background:#eef4ff;color:#1e66ff;text-decoration:none}

.inline{display:flex;gap:8px;flex-wrap:wrap}
.inline select{height:36px;border:1px solid var(--border);border-radius:8px;background:#fff;padding:0 8px}

.att-panel{display:flex;gap:8px;margin-bottom:12px}
.list{list-style:none;margin:0;padding:0}
.list li{padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:#fff;margin-bottom:8px}
.list.plain li{border:none;padding:6px 0}

.tabs{display:flex;gap:8px;margin:8px 0 12px}
.tab{padding:6px 12px;border:1px solid var(--border);border-radius:999px;background:#fff;cursor:pointer}
.tab.active{background:#eef4ff;color:#1e66ff;border-color:#cfe0ff}
.vertical{display:flex;flex-direction:column;gap:8px}
.vertical textarea,.vertical input{border:1px solid var(--border);border-radius:10px;padding:8px}

.table{width:100%;border-collapse:collapse;margin-top:10px}
.table th,.table td{border:1px solid var(--border);padding:8px;text-align:left}
.table th{background:#f5f7fb}

/* 交互增强 */
.table tbody tr:hover{background:#f7f9fc}
.card:hover{box-shadow:0 6px 18px rgba(0,0,0,.06)}
.btn:focus{outline:2px solid rgba(30,102,255,.2);outline-offset:2px}
.btn.primary:focus{outline-color:rgba(30,102,255,.35)}
.chip:hover{background:#e6f0ff;color:#1a56ff}
.btn.lg{height:40px;padding:0 18px;border-radius:10px}
.btn.md{height:34px;padding:0 14px;border-radius:8px}
.btn.sm{height:28px;padding:0 10px;border-radius:6px}

/* 表格容器与吸顶表头 */
.table-wrap{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:auto;max-height:60vh}
.table thead th{position:sticky;top:0;background:#f5f7fb;z-index:1}

/* 小标签与KPI卡 */
.pill{display:inline-block;padding:2px 8px;border-radius:999px;border:1px solid #e5e7eb;background:#fff;color:#374151;font-size:12px}
.hr-kpi{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.hr-kpi .item{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:12px}
.hr-kpi .val{font-weight:700;font-size:20px}
.hr-kpi .desc{color:#6b7280;font-size:12px}

@media (max-width: 900px){
  .grid{grid-template-columns:1fr}
  .grid .span-2{grid-column:auto}
}

/* 响应式优化：人事布局在窄屏收敛右侧栏 */
@media (max-width: 1200px){
  .hr-layout{grid-template-columns:180px 1fr}
  .hr-right{display:none}
}
@media (max-width: 900px){
  .hr-layout{grid-template-columns:1fr}
  .hr-aside{position:static;width:auto}
}

/* 滚动条优化（仅现代浏览器生效） */
*::-webkit-scrollbar{width:10px;height:10px}
*::-webkit-scrollbar-thumb{background:#cfd8e3;border-radius:10px}
*::-webkit-scrollbar-thumb:hover{background:#b9c6d4}
*::-webkit-scrollbar-track{background:transparent}

/* 骨架屏占位（数据加载时使用） */
.skeleton{position:relative;overflow:hidden;background:#f3f6fb;border-radius:8px}
.skeleton::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.7) 40%,rgba(255,255,255,0) 80%);transform:translateX(-100%);animation:skeleton 1.2s infinite}
@keyframes skeleton{to{transform:translateX(100%)}}

/* 空状态占位 */
.empty{display:flex;align-items:center;justify-content:center;min-height:120px;color:#6b7280;background:#fff;border:1px solid #e5e7eb;border-radius:12px}


/* 通用模态层与关闭按钮样式（修正"×"位置与外观） */
#modal-layer{position:fixed;inset:0;background:rgba(17,24,39,.36);display:none;align-items:center;justify-content:center;z-index:9999}
#modal-box{position:relative;background:#fff;border-radius:12px;box-shadow:0 12px 40px rgba(0,0,0,.2);padding:20px;min-width:800px;max-width:92vw}
#modal-box #modal-close{position:absolute;right:10px;top:10px;border:none;background:transparent;color:#6b7280;font-size:20px;cursor:pointer;line-height:1}
#modal-box #modal-close:hover{color:#111827}

/* 导航栏下拉菜单样式 */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--card-bg, #fff);
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  z-index: 1000;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--border, #e5e7eb);
  top: 100%;
  left: 0;
  margin-top: 5px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.nav-dropdown-content a {
  color: var(--text, #1f2937);
  padding: 12px 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease;
}

.nav-dropdown-content a:hover {
  background-color: var(--hover-bg, #f3f6fb);
}

.nav-dropdown-content a i {
  margin-right: 10px;
  width: 16px;
  text-align: center;
}

/* 用户菜单样式 */
.user-menu {
  position: relative;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary, #1e66ff);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  background-color: var(--card-bg, #fff);
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  z-index: 1000;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--border, #e5e7eb);
  top: 100%;
  margin-top: 5px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.user-menu:hover .user-dropdown {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.user-dropdown a, .user-dropdown button {
  color: var(--text, #1f2937);
  padding: 12px 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
}

.user-dropdown a:hover, .user-dropdown button:hover {
  background-color: var(--hover-bg, #f3f6fb);
}

.user-dropdown a i, .user-dropdown button i {
  margin-right: 10px;
  width: 16px;
  text-align: center;
}

.user-dropdown .divider {
  height: 1px;
  background-color: var(--border, #e5e7eb);
  margin: 5px 0;
}

/* 导航激活状态样式 */
.menu-item.active {
  background-color: var(--primary, #1e66ff);
  color: white;
}

.menu-item.active:hover {
  background-color: var(--primary-dark, #1a56ff);
}

/* 图标统一样式 */
.fas {
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

/* 导航栏激活状态增强 */
.menu a.active {
  background: #1a4173;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15) inset;
}

.menu a.active::after {
  transform: scaleX(1);
  background: #9ec5ff;
}

/* 导航栏图标样式 */
.menu i, .nav-dropdown-content i, .user-dropdown i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  margin-right: 8px;
}

/* 三级菜单样式 */
.nav-dropdown-content .nav-submenu {
  position: relative;
}

.nav-dropdown-content .nav-submenu-content {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background-color: var(--card-bg, #fff);
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  z-index: 1001;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--border, #e5e7eb);
}

.nav-dropdown-content .nav-submenu:hover .nav-submenu-content {
  display: block;
}

.nav-dropdown-content .nav-submenu > a::after {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: auto;
  font-size: 12px;
  color: var(--color-muted, #6b7280);
}

/* 性能优化：减少重绘和回流 */
.table {
  will-change: transform;
}

.nav-dropdown-content {
  will-change: opacity, transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* 优化动画性能 */
.login-card {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* 图片懒加载支持 */
img {
  content-visibility: auto;
  contain-intrinsic-size: 800px 600px;
}

/* 优化滚动性能 */
.content {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
}

