/* ============================================================
   interview.css —— 访谈视图:进度条、章节封面、题目卡、四题型
   ============================================================ */

/* ---- 顶部进度 ---- */
.iv-top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  padding: 14px 20px 10px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.iv-progress-track {
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.iv-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width .25s ease;
}
.iv-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-2);
}

/* ---- 舞台 ---- */
.iv-stage {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 20px 120px;   /* 底部留出固定操作栏空间 */
}

/* ---- 章节封面 ---- */
.cover {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: fade-in .3s ease;
}
.cover-no {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  color: var(--accent);
  opacity: .55;
  margin-bottom: 18px;
}
.cover-title {
  font-family: var(--serif);
  font-size: 30px;
  margin-bottom: 12px;
}
.cover-intro {
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 40px;
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- 题目卡 ---- */
.q-card {
  animation: fade-in .25s ease;
}
.q-label {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.6;
  margin-bottom: 6px;
}
.q-help {
  font-size: 14px;
  color: var(--faint);
  margin-bottom: 24px;
}
.q-body {
  margin-top: 8px;
}

/* 单选卡片 */
.q-options-single {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.opt-card {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 44px 15px 18px;
  font-size: 16px;
  line-height: 1.5;
  box-shadow: var(--shadow);
  transition: border-color .15s ease, background .15s ease;
}
.opt-card::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 16px;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 1.5px solid var(--faint);
  border-radius: 50%;
  transition: border-color .15s ease, background .15s ease;
}
.opt-card:active { background: #FBF6EC; }
.opt-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.opt-card.selected::after {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--accent-soft);
}

/* 多选 chips */
.q-options-multi {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip-btn {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 15px;
  transition: border-color .15s ease, background .15s ease, opacity .15s ease;
}
.chip-btn:active { background: #FBF6EC; }
.chip-btn.pressed {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.chip-btn.disabled {
  opacity: .35;
  cursor: not-allowed;
}

/* 量表 */
.q-scale {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}
.scale-dot {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--card);
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
}
.scale-dot:active { background: #FBF6EC; }
.scale-dot.picked {
  border-color: var(--accent);
  background: var(--accent);
  color: #FFFDF8;
}
.q-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--faint);
  margin-top: 6px;
}

/* 文本 */
.q-textarea {
  width: 100%;
  min-height: 130px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  resize: vertical;
}
.q-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* 已跳过状态 */
.skip-note {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  color: var(--ink-2);
  font-size: 15px;
}
.skip-note .btn { margin-top: 14px; }

/* ---- 底部操作栏 ---- */
.iv-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
}
.iv-bottom-right {
  display: flex;
  gap: 10px;
  align-items: center;
}
#iv-next { min-width: 108px; }
