/* ===== 企业AI体检页 专属样式（复用 style.css 的变量与按钮）===== */

.assessment-main {
  min-height: 100dvh;
  padding: 120px 24px 60px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(79, 124, 255, 0.12), transparent),
    var(--bg);
}

/* ===== 诊断卡片 ===== */
.diag-card {
  width: 100%;
  max-width: 820px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.diag-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 30% at 50% 0%, rgba(79,124,255,0.1), transparent);
  pointer-events: none;
}

/* ===== 头部 ===== */
.diag-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}
.diag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(79, 124, 255, 0.1);
  border: 1px solid rgba(79, 124, 255, 0.3);
  font-size: 12px;
  color: #b8ccff;
  margin-bottom: 16px;
}
.diag-h1 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.diag-sub { font-size: 15px; color: var(--text-dim); }

.diag-progress {
  flex-shrink: 0;
  min-width: 140px;
  text-align: right;
}
.progress-num {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.progress-track {
  margin-top: 8px;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--grad);
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* ===== 步骤 ===== */
.step { display: none; position: relative; z-index: 1; }
.step.active { display: block; animation: stepIn 0.35s ease; }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.q-block { margin-bottom: 32px; }
.q-block:last-child { margin-bottom: 0; }
.q-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.q-hint { font-size: 13px; color: var(--text-faint); margin-bottom: 14px; }

/* ===== 选项网格 ===== */
.opt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.opt-grid-col { grid-template-columns: 1fr; }

.opt {
  text-align: left;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  position: relative;
}
.opt:hover { border-color: #34405a; background: var(--bg-card-hover); }
.opt.selected {
  border-color: var(--primary);
  background: rgba(79, 124, 255, 0.12);
  color: #fff;
  box-shadow: 0 0 0 1px var(--primary) inset;
}
.opt.selected::after {
  content: '✓';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cyan);
  font-weight: 700;
}

/* ===== 文本域 ===== */
.textarea-wrap { position: relative; }
.textarea-wrap textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s;
  line-height: 1.6;
}
.textarea-wrap textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.textarea-wrap textarea::placeholder { color: var(--text-faint); }
.char-count {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 12px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

/* ===== 底部按钮 ===== */
.diag-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  position: relative;
  z-index: 1;
}
#btnNext { min-width: 160px; }
#btnNext .btn-sub {
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.75;
  margin-top: 2px;
  line-height: 1.2;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ===== AI 分析中 遮罩 ===== */
.analyzing-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(7, 9, 15, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.analyzing-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.analyzing-inner { text-align: center; padding: 24px; }

.ai-core {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 32px;
}
.ai-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--primary);
  border-right-color: var(--cyan);
  animation: spin 1.2s linear infinite;
}
.ai-ring::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: var(--cyan);
  animation: spin 1.8s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ai-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.analyzing-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 32px;
}

.analyzing-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}
.analyzing-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-faint);
  transition: color 0.3s;
}
.analyzing-steps li.done { color: var(--text-dim); }
.analyzing-steps li.current { color: #fff; }
.step-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: inline-block;
  position: relative;
  transition: all 0.3s;
  flex-shrink: 0;
}
.analyzing-steps li.done .step-mark {
  border-color: var(--green);
  background: var(--green);
}
.analyzing-steps li.done .step-mark::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.analyzing-steps li.current .step-mark {
  border-color: var(--primary);
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

.analyzing-done {
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  animation: stepIn 0.4s ease;
}

/* ===== 报告预览页 ===== */
.report-page {
  min-height: 100dvh;
  padding: 120px 24px 60px;
  display: flex;
  justify-content: center;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(79, 124, 255, 0.12), transparent),
    var(--bg);
}
.report-inner {
  width: 100%;
  max-width: 680px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
}
.report-eyebrow {
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.report-title {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  margin-bottom: 36px;
}

/* 环形仪表盘 */
.gauge-wrap { display: flex; justify-content: center; margin-bottom: 36px; }
.gauge {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0deg, var(--cyan) 226.8deg, var(--border) 226.8deg 360deg);
  display: grid;
  place-items: center;
  position: relative;
  transition: background 1.2s ease;
}
.gauge-inner {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  padding-top: 58px;
}
.gauge-num {
  font-size: 52px;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.gauge-total { font-size: 18px; color: var(--text-faint); font-weight: 600; }

/* 六维指标 */
.report-metrics {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
  text-align: left;
}
.rm-row { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.rm-name { width: 80px; color: var(--text-dim); flex-shrink: 0; }
.rm-bar { flex: 1; height: 10px; border-radius: 5px; background: var(--border); overflow: hidden; }
.rm-bar i {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--grad);
  border-radius: 5px;
  transform: scaleX(0);
  transform-origin: left;
  animation: grow 1s ease forwards;
}
.rm-val { width: 28px; text-align: right; color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }

/* 升级机会 */
.report-opps { margin-bottom: 36px; text-align: left; }
.opps-title { font-size: 16px; margin-bottom: 16px; color: var(--text-dim); }
.opps-title strong { color: var(--cyan); font-size: 20px; }
.opp-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  margin-bottom: 12px;
}
.opp-idx { font-weight: 800; color: var(--cyan); font-size: 15px; }
.opp-name { flex: 1; font-weight: 600; font-size: 15px; }
.opp-stars { color: #fbbf24; font-size: 13px; letter-spacing: 1px; }

.report-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 24px;
}
.report-note { font-size: 12px; color: var(--text-faint); line-height: 1.6; }

/* ===== 报告页 转化区 / 用户状态 ===== */
.report-core-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(79, 124, 255, 0.08);
  border: 1px solid rgba(79, 124, 255, 0.25);
  font-size: 14px;
  color: #c3d2ff;
  margin-bottom: 24px;
}
.lock-icon { font-size: 15px; }

.report-convert {
  text-align: center;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(79,124,255,0.14), rgba(34,211,238,0.1));
  border: 1px solid rgba(79, 124, 255, 0.3);
  margin-bottom: 24px;
}
.report-convert h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}
.report-convert p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.report-convert .btn-block { margin-bottom: 10px; }
.report-convert .btn-block:last-child { margin-bottom: 0; }

.report-logged {
  text-align: center;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.3);
  margin-bottom: 24px;
}
.logged-line {
  font-size: 15px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 16px;
}
.check-dot {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  margin-right: 6px;
  vertical-align: -3px;
}
.report-opp-cta {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(79, 139, 255, 0.08);
  border: 1px solid rgba(79, 139, 255, 0.2);
}
.report-opp-cta-text {
  font-size: 13px;
  color: var(--text-faint, #8a91a8);
  margin: 0 0 10px;
  text-align: center;
}
.report-logged .btn-block { margin-bottom: 16px; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .diag-card { padding: 24px 20px; }
  .diag-head { flex-direction: column; gap: 16px; }
  .diag-progress { width: 100%; text-align: left; }
  .opt-grid { grid-template-columns: 1fr; }
  .diag-footer { flex-direction: column-reverse; gap: 12px; }
  .diag-footer .btn { width: 100%; }
  .report-inner { padding: 32px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-ring, .ai-ring::after, .analyzing-steps li.current .step-mark { animation: none !important; }
}
