/* ============================================================
 * career_strategy.css — v102 AI求职画像战略报告样式
 * 视觉规范：卡片浅灰底 #F8F9FC，品牌紫高亮；主标题17px / 正文14px / 辅助13px
 * 选择器全部带 .cr- 或 .crs- 前缀，不影响全局其他模块
 * ============================================================ */

/* ---------- 加载（仪式感：进度条 + 文案） ---------- */
.cr-loading { padding: 26px 18px; text-align: center; }
.cr-loading-txt { font-size: 14px; color: #4B5563; font-weight: 600; margin-bottom: 14px; }
.cr-bar-track {
  width: 100%; max-width: 460px; height: 8px; margin: 0 auto 10px;
  background: #EDE9FE; border-radius: 999px; overflow: hidden;
}
.cr-bar-fill {
  height: 100%; width: 8%;
  background: linear-gradient(90deg, #8B5CF6, #6D28D9);
  border-radius: 999px;
  animation: cr-progress 2.4s cubic-bezier(.4, .1, .3, 1) forwards;
}
@keyframes cr-progress {
  0% { width: 6%; } 35% { width: 42%; } 70% { width: 72%; } 100% { width: 94%; }
}
.cr-loading-sub { font-size: 13px; color: #9CA3AF; }

/* ---------- 报告容器 ---------- */
.cr-report { animation: cr-fade-in .45s ease-out both; }
@keyframes cr-fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.cr-sec { margin-bottom: 18px; }
.cr-sec-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 17px; font-weight: 700; color: #111827; margin-bottom: 10px;
}
.cr-sec-title .cr-tag {
  font-size: 13px; font-weight: 500; color: #6D28D9; background: #F5F3FF;
  padding: 2px 8px; border-radius: 6px; margin-left: auto;
}
.cr-block {
  background: #F8F9FC; border: 1px solid #EEF0F6; border-radius: 12px;
  padding: 16px 18px; margin-bottom: 12px;
}
.cr-text { font-size: 14px; line-height: 1.8; color: #374151; }
.cr-text b, .cr-hl { color: #6D28D9; font-weight: 700; }
.cr-aux { font-size: 13px; color: #6B7280; line-height: 1.75; }

/* ---------- 画像摘要 ---------- */
.cr-abstract {
  background: linear-gradient(135deg, #F8F9FC 0%, #F5F3FF 100%);
  border: 1px solid #EDE9FE; border-radius: 12px; padding: 18px 20px; position: relative;
}
.cr-abstract::before {
  content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px;
  background: linear-gradient(180deg, #8B5CF6, #6D28D9); border-radius: 0 3px 3px 0;
}
.cr-abstract-body { font-size: 14px; line-height: 1.9; color: #374151; }
.cr-code-chip {
  display: inline-block; font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #8B5CF6, #6D28D9); padding: 2px 10px; border-radius: 6px; margin: 0 2px;
}

/* ---------- 优势 / 盲点 ---------- */
.cr-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 900px) { .cr-two-col { grid-template-columns: 1fr; } }
.cr-mini-title { font-size: 14px; font-weight: 700; color: #111827; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.cr-item {
  display: flex; gap: 10px; padding: 10px 12px; background: #fff;
  border: 1px solid #EEF0F6; border-radius: 10px; margin-bottom: 8px;
}
.cr-item.good { border-left: 3px solid #10B981; }
.cr-item.warn { border-left: 3px solid #F59E0B; }
.cr-item-idx {
  flex: 0 0 22px; height: 22px; border-radius: 6px; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; color: #fff; background: #8B5CF6;
}
.cr-item.warn .cr-item-idx { background: #F59E0B; }
.cr-item-body { font-size: 14px; line-height: 1.75; color: #374151; }
.cr-item-src { display: block; font-size: 13px; color: #9CA3AF; margin-bottom: 2px; }

/* ---------- 交叉破局 ---------- */
.cr-cross-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed #E5E7EB; }
.cr-cross-row:last-child { border-bottom: none; }
.cr-cross-ico { flex: 0 0 32px; height: 32px; border-radius: 9px; background: #F5F3FF; color: #6D28D9; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.cr-cross-label { font-size: 13px; font-weight: 700; color: #6D28D9; margin-bottom: 3px; }

/* ---------- 岗位匹配卡片 ---------- */
.cr-jobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 1100px) { .cr-jobs { grid-template-columns: 1fr; } }
.cr-job-card {
  background: #F8F9FC; border: 1px solid #EEF0F6; border-radius: 12px; padding: 14px 16px 12px;
  transition: box-shadow .22s ease, border-color .22s ease, transform .22s ease;
}
.cr-job-card:hover { border-color: #DDD6FE; box-shadow: 0 8px 24px rgba(109, 40, 217, .10); transform: translateY(-2px); }
.cr-job-head { display: flex; align-items: flex-start; gap: 10px; }
.cr-job-name { font-size: 17px; font-weight: 700; color: #111827; line-height: 1.4; }
.cr-job-family { font-size: 13px; color: #6B7280; margin-top: 2px; }
.cr-ring { flex: 0 0 52px; text-align: center; }
.cr-ring-num { font-size: 17px; font-weight: 700; color: #6D28D9; line-height: 1.1; }
.cr-ring-lab { font-size: 13px; color: #9CA3AF; }
.cr-job-salary { margin-top: 10px; font-size: 13px; color: #374151; display: flex; align-items: center; gap: 6px; }
.cr-skill-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.cr-skill-tag { font-size: 13px; color: #4B5563; background: #fff; border: 1px solid #E5E7EB; border-radius: 999px; padding: 3px 10px; }
.cr-why-btn {
  margin-top: 8px; background: none; border: none; padding: 0; cursor: pointer;
  font-size: 13px; color: #6D28D9; font-weight: 600; font-family: inherit;
}
.cr-why-body {
  display: none; margin-top: 8px; padding: 10px 12px; background: #fff;
  border: 1px solid #EDE9FE; border-radius: 10px; font-size: 13px; line-height: 1.8; color: #4B5563;
}
.cr-why-body.open { display: block; animation: cr-fade-in .3s ease-out both; }

/* ---------- 能力差距 ---------- */
.cr-gaps { margin-top: 10px; border-top: 1px dashed #E5E7EB; padding-top: 10px; }
.cr-gap-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.cr-gap-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; }
.cr-gap-dot.ok { background: #10B981; }
.cr-gap-dot.mid { background: #FBBF24; }
.cr-gap-dot.miss { background: #EF4444; }
.cr-gap-name { font-size: 13px; color: #374151; }
.cr-gap-state { font-size: 13px; font-weight: 600; }
.cr-gap-state.ok { color: #059669; }
.cr-gap-state.mid { color: #D97706; }
.cr-gap-state.miss { color: #DC2626; }
.cr-fix-btn {
  margin-left: auto; font-size: 13px; font-weight: 600; color: #fff; border: none; cursor: pointer;
  background: linear-gradient(135deg, #8B5CF6, #6D28D9); border-radius: 999px; padding: 4px 12px;
  font-family: inherit; transition: filter .2s ease, transform .2s ease;
}
.cr-fix-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.cr-gap-legend { display: flex; gap: 12px; font-size: 13px; color: #9CA3AF; margin-top: 4px; }

/* ---------- 行动区 ---------- */
.cr-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; }
.cr-btn-main {
  flex: 1 1 320px; height: 48px; border: none; cursor: pointer; font-family: inherit;
  font-size: 15px; font-weight: 700; color: #fff; border-radius: 12px;
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  box-shadow: 0 8px 22px rgba(109, 40, 217, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cr-btn-main:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(109, 40, 217, .34); }
.cr-btn-sub {
  flex: 0 1 220px; height: 48px; cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 600; color: #6D28D9; background: #fff;
  border: 1.5px solid #DDD6FE; border-radius: 12px;
  transition: background .2s ease, border-color .2s ease;
}
.cr-btn-sub:hover { background: #F5F3FF; border-color: #8B5CF6; }

/* ---------- 寄语 ---------- */
.cr-words {
  margin-top: 18px; padding: 18px 20px; border-radius: 12px;
  background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%);
  border: 1px solid #DDD6FE; position: relative;
}
.cr-words .cr-quote { font-size: 20px; color: #8B5CF6; opacity: .45; position: absolute; left: 12px; top: 8px; }
.cr-words-body { font-size: 14px; line-height: 1.9; color: #4C1D95; font-weight: 500; padding-left: 14px; }
.cr-words-sign { margin-top: 8px; padding-left: 14px; font-size: 13px; color: #7C3AED; }

/* ---------- 免责声明 ---------- */
.cr-disclaimer {
  margin-top: 14px; font-size: 13px; line-height: 1.75; color: #9CA3AF;
  background: #F8F9FC; border: 1px dashed #E5E7EB; border-radius: 10px; padding: 12px 14px;
}

/* ---------- 历史成长轨迹 ---------- */
.cr-history-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.cr-h-item {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #F8F9FC; border: 1px solid #EEF0F6; border-radius: 10px; padding: 10px 14px;
}
.cr-h-item.latest { border-color: #DDD6FE; background: #FAFAFF; }
.cr-h-date { font-size: 13px; color: #6B7280; flex: 0 0 84px; }
.cr-h-code { font-size: 14px; font-weight: 700; color: #6D28D9; }
.cr-h-badge { font-size: 13px; color: #fff; background: #8B5CF6; border-radius: 6px; padding: 1px 8px; }
.cr-h-deltas { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.cr-h-delta { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.cr-h-delta.up { color: #059669; }
.cr-h-delta.down { color: #DC2626; }
.cr-h-delta.flat { color: #9CA3AF; }
.cr-trend-wrap { background: #fff; border: 1px solid #EEF0F6; border-radius: 10px; padding: 8px 10px; }
.cr-trend-svg { display: block; }

/* ---------- AI 战略官对话浮窗 ---------- */
.cr-chat-mask { position: fixed; inset: 0; background: rgba(17, 24, 39, .28); z-index: 1200; display: none; }
.cr-chat-mask.show { display: block; }
.cr-chat {
  position: fixed; right: 24px; bottom: 24px; width: 400px; max-width: calc(100vw - 32px);
  max-height: 70vh; display: flex; flex-direction: column; z-index: 1210;
  background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(17, 24, 39, .26);
  border: 1px solid #EEF0F6; overflow: hidden;
}
.cr-chat-head {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px;
  background: linear-gradient(135deg, #8B5CF6, #6D28D9); color: #fff; font-size: 14px; font-weight: 700;
}
.cr-chat-head .cr-chat-sub { font-size: 13px; font-weight: 500; opacity: .85; }
.cr-chat-close { margin-left: auto; background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; line-height: 1; }
.cr-chat-body { flex: 1 1 auto; overflow-y: auto; padding: 12px 14px; background: #F8F9FC; }
.cr-msg { margin-bottom: 10px; font-size: 14px; line-height: 1.8; }
.cr-msg.bot { color: #374151; }
.cr-msg.me { text-align: right; color: #fff; }
.cr-msg.me span { display: inline-block; background: #6D28D9; padding: 8px 12px; border-radius: 12px 12px 2px 12px; text-align: left; max-width: 88%; }
.cr-msg.bot span { display: inline-block; background: #fff; border: 1px solid #EEF0F6; padding: 8px 12px; border-radius: 12px 12px 12px 2px; max-width: 92%; }
.cr-chat-foot { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #EEF0F6; background: #fff; }
.cr-chat-input { flex: 1 1 auto; height: 40px; border: 1px solid #E5E7EB; border-radius: 10px; padding: 0 12px; font-size: 14px; font-family: inherit; outline: none; }
.cr-chat-input:focus { border-color: #8B5CF6; box-shadow: 0 0 0 3px rgba(139, 92, 246, .14); }
.cr-chat-send { flex: 0 0 auto; height: 40px; padding: 0 16px; border: none; border-radius: 10px; cursor: pointer; background: linear-gradient(135deg, #8B5CF6, #6D28D9); color: #fff; font-size: 14px; font-weight: 600; font-family: inherit; }
.cr-chat-send[disabled] { opacity: .6; cursor: not-allowed; }
.cr-chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; background: #fff; }
.cr-quick-btn { font-size: 13px; color: #6D28D9; background: #F5F3FF; border: 1px solid #DDD6FE; border-radius: 999px; padding: 4px 10px; cursor: pointer; font-family: inherit; }

/* ============================================================
 * v105 — AI求职画像报告区重构（浅灰子卡片 #F9FAFB / 紫点列表 / 按钮层级）
 * ============================================================ */

/* 浅灰子卡片（画像摘要 / 优势盲点 / 交叉破局 / 立即行动统一容器） */
.cr-subcard {
  background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 8px;
  padding: 16px 18px;
}

/* 紫点 ul/li 列表（取代段落堆叠） */
.cr-list { list-style: none; margin: 0; padding: 0; }
.cr-list .cr-li {
  position: relative; padding: 7px 0 7px 20px;
  font-size: 14px; line-height: 1.6; color: #4B5563;
  border-bottom: 1px dashed #E5E7EB;
}
.cr-list .cr-li:last-child { border-bottom: none; }
.cr-list .cr-li::before {
  content: ''; position: absolute; left: 4px; top: 15px;
  width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .14);
}
.cr-li-src { display: block; font-size: 12px; font-weight: 500; color: #6B7280; margin-bottom: 2px; }
.cr-mini-title { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: #111827; margin-bottom: 8px; }

/* 自我评价预览框 */
.cr-intro-box {
  background: #fff; border: 1px solid #E5E7EB; border-radius: 8px;
  padding: 12px 14px; margin: 10px 0 14px;
}

/* 行动区按钮层级：主按钮（醒目）+ 次级小按钮一行 */
.cr-btn-primary {
  width: 100%; height: 50px; border: 0; border-radius: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 16px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  box-shadow: 0 8px 22px rgba(109, 40, 217, .28);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.cr-btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 12px 30px rgba(109, 40, 217, .36); }
.cr-actions-sub { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.cr-btn-secondary {
  flex: 1 1 200px; height: 42px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: inherit; font-size: 14px; font-weight: 600; color: #6D28D9;
  background: #fff; border: 1.5px solid #DDD6FE; border-radius: 10px;
  transition: background .2s ease, border-color .2s ease;
}
.cr-btn-secondary:hover { background: #F5F3FF; border-color: #8B5CF6; }
.cr-more-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.cr-more-links a {
  font-size: 13px; font-weight: 500; color: #6B7280; text-decoration: none;
  display: inline-flex; align-items: center; gap: 3px;
  transition: color .18s ease;
}
.cr-more-links a:hover { color: #6D28D9; }

/* 匹配度大数字（24-28px / 700 / 品牌紫 / tabular-nums） */
.cr-ring { flex: 0 0 auto; text-align: right; }
.cr-ring-num {
  font-size: 28px; font-weight: 700; color: #7C3AED; line-height: 1.05;
  font-variant-numeric: tabular-nums; font-feature-settings: 'tnum';
  letter-spacing: -0.01em;
}
.cr-ring-num i { font-style: normal; font-size: 16px; font-weight: 700; margin-left: 1px; }
.cr-ring-lab { font-size: 12px; font-weight: 500; color: #9CA3AF; margin-top: 2px; }

/* Top4 岗位卡网格（宽屏 4 列 → 1100px 2 列 → 640px 1 列） */
.cr-jobs-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1180px) { .cr-jobs-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cr-jobs-4 { grid-template-columns: 1fr; } }

/* 差距图例：色点复用 .cr-gap-dot */
.cr-gap-legend { display: flex; gap: 14px; font-size: 12px; font-weight: 500; color: #6B7280; margin-top: 4px; align-items: center; }
.cr-gap-legend .cr-gap-dot { display: inline-block; margin-right: 4px; vertical-align: 0; }
i.cr-gap-dot { display: inline-block; }

/* 交叉破局图标（SVG 品牌紫底座） */
.cr-cross-ico {
  flex: 0 0 34px; height: 34px; border-radius: 10px;
  background: #F5F3FF; color: #6D28D9;
  display: flex; align-items: center; justify-content: center;
}

/* 加载态文案图标对齐 */
.cr-loading-txt { display: flex; align-items: center; justify-content: center; gap: 7px; }
.cv3-ai-btn { display: flex; align-items: center; justify-content: center; gap: 8px; }
