/* ===== AI 模拟面试：四步向导 + 数字人面试间 + 报告（呈现移植自职面智聘） ===== */

/* ---- 向导 ---- */
.ji-main { background: #f4f7fd; min-height: 100vh; }
.ji-topbar { background: #fff; }
.ji-wizard-wrap { padding: 10px 32px 48px; display: grid; place-items: start center; }
.ji-wizard-card { width: min(980px, 100%); margin-top: 14px; padding: 34px 38px 28px; border: 1px solid rgba(56,104,186,.13); border-radius: 28px; background: rgba(255,255,255,.94); box-shadow: 0 24px 70px rgba(45,80,140,.08); }
.ji-wizard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.ji-wizard-head h2 { margin-top: 10px; font-size: 24px; font-weight: 900; color: #17263f; }
.ji-wizard-head p { margin-top: 8px; color: #5c6b85; font-size: 13px; }
.ji-eyebrow { color: #1769f5; font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.ji-eyebrow.is-light { color: rgba(255,255,255,.85); }
.ji-ghost-btn { padding: 10px 18px; border: 1px solid rgba(56,104,186,.18); border-radius: 12px; background: #fff; color: #44536f; font-size: 13px; font-weight: 800; cursor: pointer; }
.ji-primary-btn { padding: 12px 26px; border: none; border-radius: 13px; background: linear-gradient(135deg, #2563eb, #4f46e5); color: #fff; font-size: 14px; font-weight: 900; cursor: pointer; box-shadow: 0 12px 26px rgba(59,90,246,.3); }
.ji-primary-btn:disabled { opacity: .55; cursor: not-allowed; }
.ji-progress-track { margin-top: 22px; height: 8px; border-radius: 999px; background: #edf2fa; overflow: hidden; }
.ji-progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #7c3aed); transition: width .35s ease; }
.ji-steps-label { display: flex; justify-content: space-between; margin-top: 10px; color: #5c6b85; font-size: 12px; }
.ji-steps-label b { color: #17263f; }

.ji-type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.ji-type-card { padding: 20px 18px; border: 1.5px solid rgba(56,104,186,.15); border-radius: 20px; background: #fff; text-align: left; cursor: pointer; transition: all .2s; }
.ji-type-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(45,80,140,.12); }
.ji-type-card.on { border-color: #2563eb; background: linear-gradient(160deg, #f0f5ff, #eef9ff); box-shadow: 0 14px 30px rgba(59,90,246,.16); }
.ji-type-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #eaf1ff, #f2ecff); color: #2563eb; font-size: 22px; margin-bottom: 12px; }
.ji-type-card b { display: block; font-size: 15px; color: #17263f; }
.ji-type-card p { margin-top: 6px; color: #7a87a0; font-size: 11.5px; line-height: 1.6; }

.ji-step-body { margin-top: 26px; }
.ji-field-label { display: block; margin: 18px 0 10px; color: #33445f; font-size: 13px; font-weight: 900; }
.ji-domain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ji-domain-card { padding: 15px 17px; border: 1.5px solid rgba(56,104,186,.15); border-radius: 16px; background: #fff; text-align: left; cursor: pointer; }
.ji-domain-card.on { border-color: #2563eb; background: #f0f5ff; }
.ji-domain-card b { display: block; font-size: 14px; color: #17263f; }
.ji-domain-card small { display: block; margin-top: 5px; color: #8b98b0; font-size: 10.5px; line-height: 1.5; }
.ji-input { width: 100%; padding: 13px 16px; border: 1.5px solid rgba(56,104,186,.18); border-radius: 13px; font-size: 14px; color: #17263f; background: #fff; }
.ji-preset-tip { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: #eef2ff; color: #4f46e5; font-size: 12.5px; font-weight: 700; }
.ji-diff-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ji-diff-card { padding: 22px 20px; border: 1.5px solid rgba(56,104,186,.15); border-radius: 18px; background: #fff; text-align: left; cursor: pointer; }
.ji-diff-card.on { border-color: #2563eb; background: linear-gradient(160deg, #f0f5ff, #eef9ff); }
.ji-diff-card b { font-size: 17px; color: #17263f; }
.ji-diff-card small { display: block; margin-top: 7px; color: #7a87a0; font-size: 11.5px; }
.ji-confirm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ji-confirm-grid > div { padding: 16px 18px; border: 1px dashed rgba(56,104,186,.22); border-radius: 16px; background: #f8fbff; }
.ji-confirm-grid small { display: block; color: #8b98b0; font-size: 10.5px; font-weight: 900; letter-spacing: .06em; }
.ji-confirm-grid b { display: block; margin-top: 6px; color: #17263f; font-size: 14.5px; }
.ji-voice-toggle { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: #f6f9ff; border: 1px solid rgba(56,104,186,.13); color: #33445f; font-size: 13px; font-weight: 700; cursor: pointer; }
.ji-wizard-foot { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding-top: 20px; border-top: 1px dashed #e4ebf6; }

/* ---- 数字人面试间 ---- */
.ji-stage { position: relative; margin: 6px 32px 40px; height: calc(100vh - 150px); min-height: 560px; border-radius: 28px; overflow: hidden; background: radial-gradient(120% 90% at 50% 8%, #16203a 0%, #0b1020 58%, #070b16 100%); box-shadow: 0 30px 80px rgba(7, 12, 26, .5); opacity: .55; transition: opacity .8s; }
.ji-stage.ready { opacity: 1; }
.ji-stage-canvas { position: absolute; inset: 0; }
.ji-stage-canvas canvas { display: block; }

.ji-stage-topbar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: flex-start; justify-content: space-between; padding: 22px 26px; z-index: 5; pointer-events: none; }
.ji-stage-topbar > * { pointer-events: auto; }
.ji-stage-info { display: flex; flex-wrap: wrap; gap: 9px; max-width: 62%; }
.ji-stage-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px; background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; font-size: 12.5px; font-weight: 800; box-shadow: 0 10px 24px rgba(102, 126, 234, .4); }
.ji-stage-badge.is-plain { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(10px); box-shadow: none; }
.ji-round-box { text-align: right; padding: 12px 18px; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(12px); }
.ji-round-box small { display: block; color: rgba(255, 255, 255, .65); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.ji-round-box b { color: #fff; font-size: 24px; font-weight: 900; }
.ji-round-box em { font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .55); }
.ji-dots { display: flex; gap: 5px; margin-top: 8px; justify-content: flex-end; }
.ji-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.ji-dots i.past { background: #667eea; }
.ji-dots i.on { background: #a78bfa; box-shadow: 0 0 0 3px rgba(167, 139, 250, .25); }

.ji-stage-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 0 26px 20px; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(4, 8, 18, .72) 46%, rgba(4, 8, 18, .92) 100%); }
.ji-subtitle { display: flex; gap: 10px; align-items: flex-start; max-width: 880px; margin: 0 auto 12px; padding: 14px 20px; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(14px); }
.ji-subtitle i { color: #a5b4fc; font-size: 18px; }
.ji-subtitle p { color: #f1f5ff; font-size: 14.5px; line-height: 1.75; }
.ji-wave { display: flex; justify-content: center; align-items: flex-end; gap: 4px; height: 22px; margin-bottom: 10px; }
.ji-wave i { width: 3.5px; border-radius: 3px; background: linear-gradient(180deg, #a5b4fc, #667eea); animation: ji-wave 1s ease-in-out infinite; }
.ji-wave i:nth-child(1) { height: 8px; animation-delay: 0s; }
.ji-wave i:nth-child(2) { height: 16px; animation-delay: .12s; }
.ji-wave i:nth-child(3) { height: 22px; animation-delay: .24s; }
.ji-wave i:nth-child(4) { height: 14px; animation-delay: .36s; }
.ji-wave i:nth-child(5) { height: 9px; animation-delay: .48s; }
@keyframes ji-wave { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }

.ji-controls { display: flex; justify-content: center; gap: 18px; margin-bottom: 14px; }
.ji-ctrl { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; cursor: pointer; backdrop-filter: blur(12px); }
.ji-ctrl i { font-size: 22px; color: #fff; }
.ji-ctrl small { font-size: 9px; color: rgba(255, 255, 255, .75); font-weight: 800; }
.ji-ctrl.is-mic { background: linear-gradient(135deg, #667eea, #764ba2); box-shadow: 0 12px 28px rgba(102, 126, 234, .45); }
.ji-ctrl.is-mic.off { background: rgba(255, 255, 255, .12); box-shadow: none; }
.ji-ctrl.is-mic.listening, .ji-ctrl.is-mic:not(.off) { animation: ji-pulse 2.4s ease-out infinite; }
@keyframes ji-pulse { 0% { box-shadow: 0 0 0 0 rgba(118, 99, 234, .45); } 70% { box-shadow: 0 0 0 16px rgba(118, 99, 234, 0); } 100% { box-shadow: 0 0 0 0 rgba(118, 99, 234, 0); } }
.ji-ctrl.is-end { background: linear-gradient(135deg, #f093fb, #f5576c); box-shadow: 0 12px 28px rgba(245, 87, 108, .4); width: 48px; height: 48px; align-self: center; }

.ji-answer-bar { display: flex; gap: 10px; max-width: 880px; margin: 0 auto; }
.ji-answer-input { flex: 1; padding: 14px 18px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; background: rgba(255, 255, 255, .1); color: #f1f5ff; font-size: 14px; backdrop-filter: blur(12px); }
.ji-answer-input::placeholder { color: rgba(241, 245, 255, .45); }
.ji-answer-input:disabled { opacity: .5; }
.ji-send-btn { padding: 0 24px; border: none; border-radius: 14px; background: linear-gradient(135deg, #4facfe, #00f2fe); color: #082032; font-size: 13.5px; font-weight: 900; cursor: pointer; box-shadow: 0 10px 24px rgba(79, 172, 254, .35); }
.ji-send-btn:disabled { opacity: .5; cursor: not-allowed; }
.ji-hint { margin-top: 9px; text-align: center; color: rgba(241, 245, 255, .6); font-size: 11.5px; min-height: 16px; }

/* ---- 报告 ---- */
.ji-report-wrap { padding: 10px 32px 56px; max-width: 1180px; margin: 0 auto; }
.ji-report-banner { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 12px; padding: 30px 38px; border-radius: 26px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); box-shadow: 0 24px 60px rgba(102, 126, 234, .38); }
.ji-report-banner h2 { margin-top: 10px; color: #fff; font-size: 24px; font-weight: 900; }
.ji-report-score { display: flex; align-items: baseline; gap: 6px; color: #fff; }
.ji-report-score b { font-size: 58px; font-weight: 900; }
.ji-report-score span { font-size: 15px; opacity: .8; }
.ji-report-grid { display: grid; grid-template-columns: 400px 1fr; gap: 18px; margin-top: 18px; }
.ji-report-two { display: grid; grid-template-columns: 1fr 1.6fr; gap: 18px; margin-top: 18px; }
.ji-report-card { padding: 24px 26px; border: 1px solid rgba(56,104,186,.13); border-radius: 22px; background: rgba(255,255,255,.95); box-shadow: 0 18px 44px rgba(45,80,140,.08); }
.ji-report-card h3 { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; color: #17263f; font-size: 16px; font-weight: 900; }
.ji-report-card h3 i { color: #4f46e5; }
.ji-report-card h3.is-mint i { color: #10b981; }
.ji-report-card h3.is-amber i { color: #f59e0b; }
.ji-radar { width: 100%; height: 320px; border-radius: 18px; background: linear-gradient(160deg, #1a2340, #10182e); }
.ji-dim-list { display: grid; gap: 13px; }
.ji-dim-head { display: flex; justify-content: space-between; font-size: 12.5px; }
.ji-dim-head b { color: #33445f; }
.ji-dim-head span { color: #64748b; font-weight: 800; }
.ji-dim-bar { height: 9px; margin-top: 6px; border-radius: 999px; background: #edf2fa; overflow: hidden; }
.ji-dim-bar i { display: block; height: 100%; border-radius: inherit; transition: width .8s ease; }
.ji-dim-list p { margin-top: 5px; color: #8b98b0; font-size: 11px; }
.ji-tip-list { list-style: none; display: grid; gap: 9px; }
.ji-tip-list li { padding: 11px 14px; border-radius: 12px; background: #f0fdf6; color: #166534; font-size: 12.5px; line-height: 1.65; }
.ji-report-prose { max-height: 340px; overflow-y: auto; color: #4a5a76; font-size: 13px; line-height: 1.8; }
.ji-chat { display: grid; gap: 12px; max-height: 420px; overflow-y: auto; }
.ji-chat > div { display: flex; gap: 11px; align-items: flex-start; }
.ji-chat > div.me { flex-direction: row-reverse; }
.ji-chat-avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 900; }
.ji-chat > div.ai .ji-chat-avatar { background: linear-gradient(135deg, #667eea, #764ba2); }
.ji-chat > div.me .ji-chat-avatar { background: linear-gradient(135deg, #f093fb, #f5576c); }
.ji-chat p { max-width: 76%; padding: 12px 16px; border-radius: 16px; font-size: 13px; line-height: 1.7; }
.ji-chat > div.ai p { background: linear-gradient(135deg, #e3f2fd, #dcedfb); color: #1a365d; border-top-left-radius: 4px; }
.ji-chat > div.me p { background: linear-gradient(135deg, #fce4ec, #f8d7e8); color: #4a1942; border-top-right-radius: 4px; }
.ji-report-actions { display: flex; gap: 14px; margin-top: 22px; }

@media (max-width: 1100px) {
  .ji-type-grid, .ji-diff-row { grid-template-columns: 1fr 1fr; }
  .ji-domain-grid, .ji-confirm-grid { grid-template-columns: 1fr 1fr; }
  .ji-report-grid, .ji-report-two { grid-template-columns: 1fr; }
  .ji-stage { margin: 6px 16px 30px; }
}
