[v-cloak] { display: none; }

:root {
  --brand: #6366f1;
  --sidebar-bg: #171e2b;
  --content-bg: #f1f3f8;
  --card-border: #eef0f4;
  --text-main: #0f172a;
  --text-sub: #94a3b8;
  /* Element Plus 主色覆盖为靛紫 */
  --el-color-primary: #6366f1;
  --el-color-primary-light-3: #8186f4;
  --el-color-primary-light-5: #a3a6f8;
  --el-color-primary-light-7: #c8c9fb;
  --el-color-primary-light-8: #dcdDFc;
  --el-color-primary-light-9: #efeffe;
  --el-color-primary-dark-2: #4f52c1;
}

html, body, #app { height: 100%; margin: 0; }
body {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background: var(--content-bg);
}

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cbd2e0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #aab3c7; }
::-webkit-scrollbar-track { background: transparent; }
.menu::-webkit-scrollbar-thumb { background: #2e3950; }

.el-button { border-radius: 8px; }
.el-button--primary { box-shadow: 0 4px 12px rgba(99, 102, 241, .28); }
.el-button--primary.is-link { box-shadow: none; }
.el-dialog { border-radius: 14px; }
.el-dialog__title { font-weight: 700; color: var(--text-main); }
.el-drawer__header { margin-bottom: 16px; color: var(--text-main); font-weight: 700; }
.el-tabs__item.is-active { font-weight: 600; }

/* ---------- 登录页（玻璃拟态） ---------- */
.login-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #141a26 0%, #1b2334 60%, #232c42 100%);
  position: relative;
  overflow: hidden;
}
.login-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .4;
  animation: blobFloat 10s ease-in-out infinite alternate;
}
.login-blob.b1 { width: 420px; height: 420px; background: #6366f1; top: -120px; left: -100px; }
.login-blob.b2 { width: 360px; height: 360px; background: #8b5cf6; bottom: -100px; right: -80px; animation-delay: -3s; }
.login-blob.b3 { width: 240px; height: 240px; background: #0ea5e9; top: 40%; left: 55%; opacity: .22; animation-delay: -6s; }
@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, -30px) scale(1.12); }
}
.login-card {
  width: 380px;
  padding: 40px 36px 32px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
  position: relative;
  z-index: 1;
  animation: cardIn .5s ease both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.login-logo {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(99, 102, 241, .4);
}
.login-title { font-size: 20px; font-weight: 700; color: var(--text-main); text-align: center; }
.login-sub { font-size: 13px; color: #64748b; text-align: center; margin: 8px 0 28px; }
.login-btn { width: 100%; font-weight: 600; letter-spacing: 4px; }

/* ---------- 布局 ---------- */
.layout { height: 100%; }
.aside {
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width .25s ease;
}
.logo {
  height: 56px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  overflow: hidden;
  white-space: nowrap;
}
.logo-icon { color: #8b7cf6; font-size: 24px; flex: none; }
.logo-text { color: #fff; font-size: 16px; font-weight: 700; flex: 1; white-space: nowrap; }

.menu {
  flex: 1;
  border-right: none;
  background: transparent;
  padding: 6px 12px;
  overflow-y: auto;
  overflow-x: hidden;
}
.menu:not(.el-menu--collapse) { width: 100%; }
.menu .el-menu-item {
  height: 46px;
  line-height: 46px;
  border-radius: 10px;
  margin-bottom: 6px;
  color: #8e9aab;
  font-size: 14px;
  transition: all .18s;
}
.menu .el-menu-item .el-icon { color: inherit; }
.menu .el-menu-item:hover { background: rgba(255, 255, 255, .05); color: #e2e8f0; }
.menu .el-menu-item.is-active {
  background: linear-gradient(90deg, #6366f1, #7c6cf6);
  color: #fff;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(99, 102, 241, .35);
}
.menu.el-menu--collapse { padding: 6px 8px; }
.menu.el-menu--collapse .el-menu-item { justify-content: center; padding: 0 !important; }

.aside-footer {
  flex: none;
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding: 16px;
}
.user-card { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-sm { width: 30px; height: 30px; font-size: 13px; }
.user-name { color: #fff; font-size: 14px; font-weight: 600; line-height: 1.3; }
.user-role { color: #64748b; font-size: 12px; }

/* ---------- 顶栏 ---------- */
.right-wrap { flex-direction: column; overflow: hidden; }
.topbar {
  flex: none;
  height: 56px;
  background: #fff;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
  z-index: 10;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-btn {
  width: 34px; height: 34px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.topbar-btn:hover { background: #f1f3f9; color: var(--brand); }
.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 10px 4px 4px;
  border-radius: 20px;
  transition: background .15s;
  color: #475569;
  outline: none;
}
.topbar-user:hover { background: #f1f3f9; }
.topbar-username { font-size: 14px; font-weight: 600; color: var(--text-main); }

.main { padding: 24px 28px; overflow-y: auto; background: var(--content-bg); }
.page-head { margin-bottom: 20px; }
.page-head h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--text-main); }
.page-head p { margin: 6px 0 0; font-size: 13px; color: var(--text-sub); }

/* ---------- 面板 / 工具栏 ---------- */
.panel {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid #f1f3f7;
}
.panel-title .el-icon { color: var(--brand); font-size: 17px; }
.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  align-items: center;
}
.toolbar .spacer { flex: 1; }
.form-tip { margin-left: 8px; color: var(--text-sub); font-size: 12px; }
.settle-summary { font-size: 13px; color: var(--text-sub); }
.settle-summary b { color: var(--brand); font-size: 15px; }
.amount-text { color: #e11d48; font-weight: 700; }
.amount-preview { font-size: 20px; font-weight: 800; color: var(--brand); }
.pager { margin-top: 14px; justify-content: flex-end; }

/* ---------- 看板统计卡 ---------- */
.stat-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}
.stat-icon {
  width: 50px; height: 50px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}
.stat-value { font-size: 28px; font-weight: 800; color: var(--text-main); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { margin-top: 6px; font-size: 13px; color: var(--text-sub); }
.chart { height: 260px; }

/* ---------- 招聘看板 ---------- */
.kanban {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 8px;
}
.kanban-col {
  flex: 1;
  min-width: 200px;
  background: #e9ecf3;
  border-radius: 12px;
  padding: 10px;
  border: 2px solid transparent;
  transition: border-color .15s, background .15s;
}
.kanban-col-over {
  border-color: var(--brand);
  background: #e4e6fb;
}
.kanban-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 2px;
}
.kanban-count {
  background: #fff;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 9px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}
.kanban-body { min-height: 120px; display: flex; flex-direction: column; gap: 8px; }
.kanban-card {
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: grab;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
  border: 1px solid #f1f3f7;
  transition: transform .15s, box-shadow .15s;
}
.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, .18);
  border-color: #dcdDFc;
}
.kanban-card:active { cursor: grabbing; }
.kc-name { font-size: 14px; font-weight: 700; color: var(--text-main); }
.kc-pos { font-size: 12px; color: #64748b; margin-top: 3px; }
.kc-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-sub);
}
.kanban-empty {
  text-align: center;
  color: #a3adc2;
  font-size: 12px;
  padding: 28px 0;
  border: 1px dashed #ccd3e0;
  border-radius: 10px;
}

/* ---------- 抽屉 ---------- */
.drawer-section { margin-top: 22px; }
.drawer-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  padding-left: 8px;
  border-left: 3px solid var(--brand);
  line-height: 1.2;
}
.tl-title { font-size: 13px; font-weight: 600; color: var(--text-main); }
.tl-sub { font-size: 12px; color: var(--text-sub); margin-top: 3px; }

/* 合同详情迷你统计 */
.stat-row { display: flex; gap: 12px; margin-top: 18px; }
.stat-mini {
  flex: 1;
  background: #f8f9fd;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.stat-mini-v { font-size: 20px; font-weight: 800; color: var(--brand); }
.stat-mini-l { font-size: 12px; color: var(--text-sub); margin-top: 4px; }

/* ---------- 表格细节 ---------- */
.el-table th.el-table__cell { background: #f8f9fc !important; color: #475569; font-weight: 600; }
.el-table .el-table__row:hover > td.el-table__cell { background: #f5f6ff !important; }
.el-table .cell { font-size: 13px; }
