/* ===== 模拟面试（interview.html） =====
 * 三个视图：准备 / 面试中 / 复盘 + 记录列表。
 * 只用 base.css 的变量，不引编辑器那套（两边的信息密度完全不同）。
 */

.iv-main { max-width: 1000px; margin: 0 auto; padding: 26px 20px 60px; }
.iv-view[hidden] { display: none; }

/* ---------- 头部 ---------- */
.iv-head { margin-bottom: 22px; }
.iv-head h1 { font-size: 26px; margin: 0 0 8px; letter-spacing: -.4px; }
.iv-head p { color: var(--muted); font-size: 14px; margin: 0; max-width: 680px; }

/* ---------- 准备页 ---------- */
.iv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.iv-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.iv-card--wide { grid-column: 1 / -1; }
.iv-card h2 { font-size: 14px; margin: 0 0 12px; color: var(--ink); }
.iv-card h2 i {
  font-style: normal; display: inline-grid; place-items: center;
  width: 20px; height: 20px; margin-right: 6px; border-radius: 6px;
  background: #ecfdf5; color: var(--brand); font-size: 12px; font-weight: 800;
}
.iv-card select, .iv-card input, .iv-card textarea {
  width: 100%; font: inherit; font-size: 13.5px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px;
  background: #fff; outline: 0;
}
.iv-card select:focus, .iv-card input:focus, .iv-card textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(16, 185, 129, .12);
}
.iv-card textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.iv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.iv-hint { font-size: 12px; color: var(--muted); margin: 9px 0 0; line-height: 1.5; }
.iv-hint b { color: var(--brand); }

/* 模式卡片 */
.iv-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.iv-mode {
  text-align: left; cursor: pointer; font: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; transition: .15s;
}
.iv-mode:hover { border-color: #c7f0e0; }
.iv-mode.is-on { border-color: var(--brand); background: #f0fdf4; box-shadow: 0 0 0 3px rgba(16, 185, 129, .1); }
.iv-mode b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.iv-mode span { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; }
.iv-mode em { font-style: normal; font-size: 11.5px; color: var(--brand); font-weight: 700; }

.iv-start { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.iv-start .btn { padding: 11px 26px; font-size: 15px; }
.iv-start .btn[disabled] { opacity: .55; cursor: not-allowed; }
.iv-start__msg { font-size: 13px; color: var(--muted); }

/* 继续上次 */
.iv-resume-tip {
  margin-top: 16px; padding: 13px 16px; border-radius: 12px;
  background: #fffbeb; border: 1px solid #fde68a; font-size: 13.5px; color: #7c5a10;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.iv-resume-tip b { color: #92610a; }
.iv-resume-tip .btn { padding: 6px 14px; font-size: 13px; }

/* ---------- 面试进行中 ---------- */
.iv-room { max-width: 820px; margin: 0 auto; }
.iv-bar {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; color: var(--muted); margin-bottom: 8px;
}
.iv-bar__mid { margin-left: auto; display: flex; gap: 14px; align-items: center; font-variant-numeric: tabular-nums; }
.iv-bar__mid .iv-clock { color: var(--ink); font-weight: 700; font-size: 14px; }
.iv-quit {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 5px 13px; font-size: 12.5px; cursor: pointer;
}
.iv-quit:hover { border-color: #fca5a5; color: #dc2626; }

.iv-progress { height: 5px; background: #e8eef4; border-radius: 99px; overflow: hidden; margin-bottom: 20px; }
.iv-progress i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .25s; }

/* 轻提示：别借用进度条那行文字（借了之后会被收尾逻辑改回去） */
.iv-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 60; max-width: 86vw;
  background: rgba(15, 23, 42, .92); color: #fff;
  font-size: 13px; line-height: 1.5; padding: 9px 16px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .22);
}
.iv-toast[hidden] { display: none; }

.iv-q {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-sm); margin-bottom: 14px;
}
.iv-q__tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--brand);
  background: #ecfdf5; border: 1px solid #c7f0e0; border-radius: 999px;
  padding: 2px 10px; margin-bottom: 10px;
}
.iv-q__tag--exp { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.iv-q__tag--jd { color: #2563eb; background: #eff6ff; border-color: #dbeafe; }
.iv-q__tag--behavior { color: #7c3aed; background: #f5f3ff; border-color: #ddd6fe; }
.iv-q__tag--scene { color: #0f766e; background: #f0fdfa; border-color: #99f6e4; }
.iv-q__tag--design { color: #9d174d; background: #fdf2f8; border-color: #fbcfe8; }
.iv-q h2 { font-size: 18px; line-height: 1.6; margin: 0 0 10px; font-weight: 700; }
.iv-probe-toggle {
  border: 0; background: none; color: var(--muted); font: inherit; font-size: 12.5px;
  cursor: pointer; padding: 0; text-decoration: underline dotted;
}
.iv-probe-toggle:hover { color: var(--brand); }
.iv-probe {
  margin: 10px 0 0; padding: 10px 13px; border-radius: 9px;
  background: #f8fafc; border-left: 3px solid #cbd5e1;
  font-size: 13px; color: #475569; line-height: 1.6;
}

/* ===== 语音答题 ===== */
.iv-q__tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.iv-tool {
  border: 0; background: none; color: var(--muted); font: inherit; font-size: 12.5px;
  cursor: pointer; padding: 0; text-decoration: underline dotted;
}
.iv-tool:hover { color: var(--brand); }
.iv-mic {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  padding: 7px 16px; border-radius: 999px; transition: all .15s;
}
.iv-mic:hover { border-color: var(--brand); color: var(--brand); }
.iv-mic.is-on {
  border-color: #dc2626; color: #dc2626; background: #fef2f2;
  animation: iv-mic-pulse 1.4s ease-in-out infinite;
}
@keyframes iv-mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .28); }
  50% { box-shadow: 0 0 0 7px rgba(220, 38, 38, 0); }
}
.iv-mic-live {
  margin: 0; padding: 8px 16px 2px; font-size: 13px; color: #475569; font-style: italic;
  border-top: 1px dashed var(--line);
}
.iv-mic-live[hidden] { display: none; }

.iv-answer { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 4px 0; box-shadow: var(--shadow-sm); }
.iv-answer textarea {
  width: 100%; min-height: 150px; resize: vertical; border: 0; outline: 0;
  font: inherit; font-size: 14.5px; line-height: 1.7; padding: 14px 16px; border-radius: var(--radius);
  color: var(--ink); background: transparent;
}
.iv-answer textarea::placeholder { color: #a9b6c6; }
.iv-answer__foot {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
}
.iv-answer__foot .iv-actions { margin-left: auto; display: flex; gap: 9px; }
.iv-answer__foot .btn { padding: 7px 16px; font-size: 13.5px; }

/* 单题反馈 */
.iv-feedback {
  margin-top: 14px; display: flex; gap: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.iv-feedback[hidden] { display: none; }
.iv-fb__score { text-align: center; flex: none; width: 66px; }
.iv-fb__score b { display: block; font-size: 26px; line-height: 1.1; color: var(--brand); font-variant-numeric: tabular-nums; }
.iv-fb__score span { font-size: 11.5px; color: var(--muted); }
.iv-fb__body { min-width: 0; flex: 1; }
.iv-fb__body p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.65; }
.iv-follow { border-top: 1px dashed var(--line); padding-top: 11px; }
.iv-follow label { font-size: 12px; font-weight: 700; color: #b45309; display: block; margin-bottom: 5px; }
.iv-follow p { background: #fffbeb; border: 1px solid #fde68a; border-radius: 9px; padding: 9px 12px; color: #7c5a10; margin: 0 0 8px; }
.iv-follow textarea {
  width: 100%; min-height: 76px; resize: vertical; font: inherit; font-size: 13.5px;
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; outline: 0;
}
.iv-follow textarea:focus { border-color: var(--brand); }

/* 参考要点：答完才展开，答之前给要点等于给答案 */
.iv-fb__hint {
  margin: 0 0 12px; padding: 11px 13px; border-radius: 9px;
  background: #f8fafc; border: 1px solid var(--line);
}
.iv-fb__hint[hidden] { display: none; }
.iv-fb__hint b { display: block; font-size: 12px; color: var(--brand); margin-bottom: 6px; }
.iv-fb__hint ul { margin: 0; padding-left: 17px; }
.iv-fb__hint li { font-size: 13px; color: #475569; line-height: 1.65; margin-bottom: 3px; }
.iv-fb__hint li:last-child { margin-bottom: 0; }

/* ---------- 复盘 ---------- */
.iv-report__top {
  display: flex; gap: 26px; align-items: center; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.iv-ring {
  flex: none; width: 118px; height: 118px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--brand) calc(var(--p, 0) * 1%), #e8eef4 0);
}
.iv-ring::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.iv-ring__in { position: relative; z-index: 1; text-align: center; }
.iv-ring__in b { display: block; font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; }
.iv-ring__in span { font-size: 11.5px; color: var(--muted); }
.iv-report__sum { min-width: 0; flex: 1; }
.iv-report__sum h2 { margin: 0 0 6px; font-size: 19px; }
.iv-report__sum p { margin: 0 0 4px; font-size: 13.5px; color: var(--muted); }
.iv-report__sum .iv-verdict { font-size: 14px; color: var(--ink); margin-top: 8px; }

.iv-sec { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.iv-sec > h3 { margin: 0 0 14px; font-size: 14.5px; }
.iv-sec > h3 small { font-weight: 400; color: var(--muted); font-size: 12.5px; margin-left: 8px; }

/* 五维 */
.iv-dims { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.iv-dim { font-size: 12.5px; color: var(--muted); }
.iv-dim b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 5px; font-variant-numeric: tabular-nums; }
.iv-dim i { display: block; height: 6px; border-radius: 99px; background: #e8eef4; overflow: hidden; }
.iv-dim i em { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

/* 分类 */
.iv-bykind { display: flex; flex-wrap: wrap; gap: 10px; }
.iv-kind {
  flex: 1 1 130px; background: #f8fafc; border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 13px;
}
.iv-kind b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.iv-kind span { font-size: 12px; color: var(--muted); }

/* 短板 */
.iv-weak__item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.iv-weak__item:last-child { border-bottom: 0; padding-bottom: 0; }
.iv-weak__tag {
  flex: none; font-size: 12px; font-weight: 700; color: #b45309;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 999px;
  padding: 2px 10px; height: 22px; line-height: 17px;
}
.iv-weak__tag--ok { color: #047857; background: #ecfdf5; border-color: #c7f0e0; }
.iv-weak__txt { font-size: 13px; line-height: 1.6; color: #334155; }

/* 逐题 */
.iv-turn { border-bottom: 1px solid var(--line); padding: 12px 0; }
.iv-turn:last-child { border-bottom: 0; padding-bottom: 0; }
.iv-turn__head { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.iv-turn__seq { flex: none; font-size: 12px; color: var(--muted); width: 26px; font-variant-numeric: tabular-nums; }
.iv-turn__q { flex: 1; font-size: 13.5px; font-weight: 600; line-height: 1.55; }
.iv-turn__s { flex: none; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.iv-turn__body { margin: 9px 0 0 36px; font-size: 13px; color: #475569; line-height: 1.65; }
.iv-turn__body dt { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.iv-turn__body dd { margin: 2px 0 0; white-space: pre-wrap; }
.iv-turn__body .iv-num {
  display: inline-block; margin-left: 8px; font-size: 11.5px; color: var(--muted);
}

.iv-report__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.iv-report__actions .btn { font-size: 13.5px; }

/* ---------- 记录列表 ---------- */
.iv-hist { display: flex; flex-direction: column; gap: 10px; }
.iv-hist__item {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; box-shadow: var(--shadow-sm); transition: .15s;
  text-align: left; font: inherit; width: 100%;
}
.iv-hist__item:hover { border-color: #c7f0e0; transform: translateY(-1px); }
.iv-hist__score { flex: none; font-size: 19px; font-weight: 800; width: 44px; font-variant-numeric: tabular-nums; }
.iv-hist__main { min-width: 0; flex: 1; }
.iv-hist__t { display: block; font-size: 14px; font-weight: 700; }
.iv-hist__m { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.iv-hist__go { flex: none; color: #94a3b8; font-size: 15px; }
.iv-hist__del {
  flex: none; border: 0; background: none; color: #cbd5e1; font-size: 15px;
  cursor: pointer; padding: 4px 6px; border-radius: 6px;
}
.iv-hist__del:hover { color: #dc2626; background: #fef2f2; }

.iv-empty {
  text-align: center; padding: 46px 20px; color: var(--muted); font-size: 13.5px;
  background: #fff; border: 1px dashed var(--line); border-radius: var(--radius);
}
.iv-empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 6px; }

/* ---------- 顶部小标签页 ---------- */
.iv-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.iv-tab {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 6px 15px; font-size: 13px; cursor: pointer; font: inherit;
}
.iv-tab.is-on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

/* ---------- 响应式 ---------- */
@media (max-width: 820px) {
  .iv-grid { grid-template-columns: 1fr; }
  .iv-card--wide { grid-column: auto; }
  .iv-modes { grid-template-columns: 1fr; }
  .iv-dims { grid-template-columns: repeat(3, 1fr); }
  .iv-report__top { gap: 18px; }
  .iv-ring { width: 96px; height: 96px; }
  .iv-ring__in b { font-size: 26px; }
}

@media (max-width: 560px) {
  .iv-main { padding: 18px 14px 40px; }
  .iv-head h1 { font-size: 21px; }
  .iv-dims { grid-template-columns: repeat(2, 1fr); }
  .iv-feedback { flex-direction: column; gap: 10px; }
  .iv-fb__score { width: auto; text-align: left; display: flex; align-items: baseline; gap: 6px; }
  .iv-fb__score b { font-size: 22px; }
  .iv-q { padding: 16px 16px; }
  .iv-q h2 { font-size: 16px; }
  .iv-answer__foot { flex-wrap: wrap; }
  .iv-answer__foot .iv-actions { width: 100%; }
  .iv-answer__foot .iv-actions .btn { flex: 1; justify-content: center; }
  .iv-answer__foot .iv-actions .iv-mic { flex: 1; }
  .iv-room .iv-bar { flex-wrap: wrap; gap: 8px; }
  .iv-bar__mid { margin-left: 0; width: 100%; justify-content: space-between; }
}
