/* =============================================
   推薪客 v4.1 全新UI — 企业HR端首页
   ============================================= */

/* 统一页面背景，避免底部留白色块不一 */
.page {
  background: var(--bg-page, #F5F5F5);
}

/* ── HR看板 ── */
.hr-welcome {
  padding: var(--space-4) var(--space-4) var(--space-2);
}

.hr-welcome h1 {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
}

.hr-welcome p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ── 招聘数据看板 ── */
.hr-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  padding: 0 var(--space-4);
  margin-bottom: var(--space-4);
}

.hr-stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hr-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  flex-shrink: 0;
}

.hr-stat-info {
  flex: 1;
  min-width: 0;
}

.hr-stat-num {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: 1.2;
}

.hr-stat-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.hr-stat-change {
  font-size: var(--text-xs);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.hr-stat-change.up {
  color: var(--success);
}

.hr-stat-change.down {
  color: var(--danger);
}

/* ── 快速操作卡 ── */
.hr-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  padding: 0 var(--space-4);
  margin-bottom: var(--space-4);
}

.hr-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-1);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.hr-action-item:active {
  transform: scale(0.95);
}

.hr-action-icon {
  font-size: 24px;
}

.hr-action-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.3;
}

/* ── 候选人列表 ── */
.hr-section {
  padding: 0 var(--space-4);
  margin-bottom: var(--space-4);
}

.hr-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.hr-section-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
}

.hr-section-more {
  font-size: var(--text-sm);
  color: var(--brand-500);
  cursor: pointer;
}

/* ── 候选人卡片 ── */
.candidate-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.candidate-card + .candidate-card {
  border-top: 1px solid var(--border-light);
}

.candidate-card:active {
  background: var(--gray-50);
  margin: 0 calc(var(--space-4) * -1);
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.candidate-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: #fff;
  flex-shrink: 0;
}

.candidate-info {
  flex: 1;
  min-width: 0;
}

.candidate-name {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.candidate-tags {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: 2px;
  display: flex;
  gap: var(--space-1);
}

.candidate-right {
  text-align: right;
}

.candidate-match {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--success);
}

.candidate-from {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ── 招聘进度 ── */
.hr-progress {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-4);
}

.hr-progress-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.hr-progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 12px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: var(--gray-200);
}

.hr-progress-step.active:not(:last-child)::after {
  background: var(--brand-500);
}

.hr-progress-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  background: var(--gray-200);
  color: var(--text-tertiary);
  margin-bottom: var(--space-1);
  position: relative;
  z-index: 1;
}

.hr-progress-step.active .hr-progress-num {
  background: var(--brand-500);
  color: #fff;
}

.hr-progress-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.hr-progress-step.active .hr-progress-label {
  color: var(--brand-600);
  font-weight: var(--weight-medium);
}
