/* HR 助理系统 - 共享样式（mock 所有页面共用） */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: #f0f2f5; }

.page { display: none; }
.page.active { display: block; }

.layout-header {
  background: #001529; padding: 0 24px; display: flex; align-items: center;
  justify-content: space-between; height: 64px;
}
.layout-logo { color: #fff; font-size: 20px; font-weight: 600; }
.layout-user { color: #fff; font-size: 14px; }

.layout-sider { background: #001529; min-height: 100vh; }
.sider-menu { border-right: none !important; background: transparent !important; }
.sider-menu .ant-menu-item {
  color: rgba(255,255,255,0.65); margin: 4px 8px; border-radius: 8px;
}
.sider-menu .ant-menu-item:hover,
.sider-menu .ant-menu-item.selected {
  color: #fff; background: rgba(255,255,255,0.15) !important;
}

/* 移动端底部 Tab */
.mobile-tabs { display: none; }
@media (max-width: 768px) {
  .pc-only { display: none !important; }
  .mobile-tabs {
    display: flex !important; position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; box-shadow: 0 -2px 8px rgba(0,0,0,0.1); z-index: 100;
  }
  .mobile-tabs .ant-tabs-tab { flex: 1; text-align: center; font-size: 12px; padding: 8px 0; }
  .layout-sider { display: none; }
  .ant-layout { padding-bottom: 60px; }
}

.card-block {
  background: #fff; border-radius: 8px; padding: 24px; margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.module-block {
  border: 1px solid #f0f0f0; border-radius: 8px; padding: 16px; margin-bottom: 12px;
  background: #fafafa;
}
.module-title { font-weight: 600; color: #1890ff; margin-bottom: 12px; font-size: 14px; }
.score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }

.stat-card {
  background: #fff; border-radius: 8px; padding: 20px; text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.stat-num { font-size: 32px; font-weight: 700; color: #1890ff; }
.stat-label { color: #8c8c8c; font-size: 14px; margin-top: 4px; }

.action-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

.record-card {
  border: 1px solid #f0f0f0; border-radius: 8px; padding: 16px; margin-bottom: 12px;
  cursor: pointer; transition: all 0.2s;
}
.record-card:hover { border-color: #1890ff; box-shadow: 0 2px 8px rgba(24,144,255,0.15); }

.tag-mentor { background: #e6f7ff; color: #1890ff; border: 1px solid #91d5ff; border-radius: 4px; padding: 2px 8px; font-size: 12px; }
.tag-freshman { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; border-radius: 4px; padding: 2px 8px; font-size: 12px; }
.tag-hr { background: #fff7e6; color: #fa8c16; border: 1px solid #ffd591; border-radius: 4px; padding: 2px 8px; font-size: 12px; }
.tag-admin { background: #f9f0ff; color: #722ed1; border: 1px solid #d3adf7; border-radius: 4px; padding: 2px 8px; font-size: 12px; }

.login-bg {
  min-height: 100vh;
  background: linear-gradient(135deg, #001529 0%, #003a70 100%);
  display: flex; align-items: center; justify-content: center;
}
.login-card {
  background: #fff; border-radius: 12px; padding: 48px 40px; width: 400px;
  max-width: 90vw; text-align: center; box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.login-logo { font-size: 48px; margin-bottom: 16px; }
.login-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; color: #001529; }
.login-sub { color: #8c8c8c; margin-bottom: 32px; font-size: 14px; }

.report-preview {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px; padding: 32px; color: #fff; text-align: center; margin-top: 24px;
}

/* ===== 新增 UX 简化版相关样式 ===== */

/* 4 模态选择器卡片 */
.modality-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 768px) { .modality-grid { grid-template-columns: repeat(2, 1fr); } }
.modality-card {
  background: #fff; border: 2px dashed #d9d9d9; border-radius: 12px;
  padding: 28px 12px; text-align: center; cursor: pointer; transition: all 0.2s;
}
.modality-card:hover { border-color: #1890ff; background: #e6f7ff; transform: translateY(-2px); }
.modality-icon { font-size: 40px; margin-bottom: 8px; }
.modality-name { font-weight: 600; color: #262626; }
.modality-hint { font-size: 12px; color: #8c8c8c; margin-top: 4px; }

/* 总结卡（核心新 UX） */
.summary-card {
  background: #fff; border-radius: 12px; border: 1px solid #e6f4ff;
  padding: 20px; margin-bottom: 16px;
}
.summary-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.summary-title { font-weight: 600; color: #1890ff; }
.summary-meta { color: #8c8c8c; font-size: 13px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed #f0f0f0; }
.summary-point {
  background: #f5f5f5; padding: 8px 12px; border-radius: 6px; margin-bottom: 6px;
  font-size: 14px; line-height: 1.6;
}
.summary-point::before { content: '· '; color: #1890ff; font-weight: 700; margin-right: 4px; }
.summary-point.warn { background: #fffbe6; border-left: 3px solid #faad14; }
.summary-point.warn::before { content: '⚠ '; color: #faad14; }

.action-item-card {
  background: #fffbe6; border-left: 3px solid #faad14; padding: 8px 12px;
  border-radius: 4px; margin-bottom: 6px; font-size: 13px;
}
.action-item-card .ai-meta { color: #8c8c8c; font-size: 11px; margin-top: 2px; }

.ai-loading {
  text-align: center; padding: 40px; color: #8c8c8c;
}
.ai-loading-spinner {
  width: 40px; height: 40px; border: 3px solid #e6f7ff; border-top-color: #1890ff;
  border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ai-disclaimer {
  background: #f6ffed; border: 1px solid #b7eb8f; border-radius: 6px;
  padding: 8px 12px; font-size: 12px; color: #52c41a; margin-bottom: 12px;
}

/* 录音 UI */
.voice-recorder {
  background: #fff; border-radius: 12px; padding: 40px 20px; text-align: center;
}
.voice-pulse {
  width: 96px; height: 96px; border-radius: 50%; background: #ff4d4f;
  margin: 0 auto 16px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 36px; box-shadow: 0 0 0 0 rgba(255,77,79,0.4);
  animation: pulse 1.5s ease-out infinite;
}
.voice-pulse.idle { background: #1890ff; box-shadow: none; animation: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,77,79,0.5); }
  100% { box-shadow: 0 0 0 24px rgba(255,77,79,0); }
}
.voice-timer { font-size: 32px; font-weight: 600; color: #262626; margin: 12px 0; font-variant-numeric: tabular-nums; }

/* 成长记录草稿（narrative） */
.narrative-block {
  background: #fff; border-radius: 8px; padding: 24px; margin-bottom: 16px;
  line-height: 1.8; font-size: 14px; color: #262626;
  border-left: 4px solid #1890ff;
}
.narrative-block.editable { border-left-color: #52c41a; }
.narrative-meta {
  display: flex; gap: 12px; align-items: center; margin-bottom: 12px;
  color: #8c8c8c; font-size: 13px;
}

/* 时间线（新人面板） */
.timeline-card {
  background: #fff; border-radius: 8px; padding: 16px; margin-bottom: 12px;
  border-left: 3px solid #1890ff; cursor: pointer; transition: all 0.2s;
}
.timeline-card:hover { box-shadow: 0 2px 8px rgba(24,144,255,0.15); }
.timeline-date { color: #8c8c8c; font-size: 12px; margin-bottom: 4px; }
.timeline-title { font-weight: 600; margin-bottom: 6px; }
.timeline-preview { color: #595959; font-size: 13px; line-height: 1.6; }

/* 行动项状态 */
.action-status { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.status-open { background: #e6f7ff; color: #1890ff; }
.status-in_progress { background: #fff7e6; color: #fa8c16; }
.status-done { background: #f6ffed; color: #52c41a; }
.status-overdue { background: #fff1f0; color: #ff4d4f; }

/* 评分项（含 confidence 标记） */
.score-item {
  background: #fafafa; border-radius: 6px; padding: 10px 12px; margin-bottom: 6px;
  display: flex; justify-content: space-between; align-items: center;
}
.score-grade { font-weight: 700; font-size: 18px; }
.score-grade-A { color: #52c41a; }
.score-grade-B { color: #1890ff; }
.score-grade-C { color: #faad14; }
.score-grade-D { color: #ff4d4f; }
.score-confidence { color: #8c8c8c; font-size: 11px; }
.score-override { background: #fff7e6; border-left: 3px solid #fa8c16; }
