/* ============================================================
   悬案卷宗 case.html
   ============================================================ */

/* ---------- 阶段指示器 ---------- */
.stepper {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--fog-08);
  background: rgba(0,0,0,.32);
  overflow: hidden;
}
.step-item {
  flex: 1;
  position: relative;
  padding: 16px 14px 15px 26px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-type);
  font-size: 0.72rem;
  letter-spacing: .12em;
  color: var(--fog-38);
  background: transparent;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  transition: color .4s, background .4s;
  text-align: left;
}
.step-item + .step-item { border-left: 1px solid var(--fog-08); }
.step-item i {
  width: 24px; height: 24px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-style: normal;
  font-size: .68rem;
}
.step-item.active { color: var(--brass); background: rgba(201,162,39,.07); }
.step-item.active i { background: var(--brass); color: var(--ink-900); border-color: var(--brass); }
.step-item.done { color: var(--teal); }
.step-item.done i { border-color: var(--teal); }
.step-item.lock { opacity: .4; cursor: not-allowed; }
.step-item::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--brass); transition: width .6s var(--ease);
}
.step-item.active::after { width: 100%; }
@media (max-width: 780px) {
  .stepper { flex-wrap: wrap; }
  .step-item { flex: 1 1 50%; font-size: .62rem; padding: 12px 10px; }
  .step-item + .step-item { border-left: none; }
}

/* ---------- 阶段面板 ---------- */
.stage { display: none; animation: stageIn .7s var(--ease); }
.stage.on { display: block; }
@keyframes stageIn { from { opacity: 0; transform: translateY(22px); } }

/* ---------- 现场 SVG ---------- */
.scene-wrap {
  position: relative;
  border: 1px solid var(--fog-18);
  background:
    radial-gradient(ellipse 70% 80% at 50% 40%, #171b23 0%, #0a0c10 75%);
  overflow: hidden;
  border-radius: 2px;
}
.scene-wrap svg.scene { width: 100%; height: auto; display: block; }

/* 现场雨/雾覆盖 */
.scene-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 62% 70% at 50% 45%, transparent 30%, rgba(0,0,0,.72) 100%);
}
.scene-hint {
  position: absolute;
  left: 50%; bottom: 14px;
  transform: translateX(-50%);
  font-family: var(--f-type);
  font-size: .66rem; letter-spacing: .22em;
  color: var(--fog-38); text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
  animation: hintPulse 3s ease-in-out infinite;
}
@keyframes hintPulse { 50% { opacity: .35; } }

/* 热点 */
.hot {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity .4s;
}
.hot .hot-ring { transition: all .35s var(--ease); }
.hot:hover .hot-core { r: 8; fill: #f2cf7a; }
.hot:hover .hot-ring { stroke-opacity: .95; }
.hot.found .hot-core { fill: #4a8f8b; }
.hot.found .hot-ring { stroke: #4a8f8b; }
.hot.found .hot-pulse { display: none; }

/* ---------- 线索抽屉 ---------- */
.clue-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(430px, 92vw);
  z-index: 9300;
  background: linear-gradient(180deg, #10131a, #08090b);
  border-left: 1px solid var(--brass-600);
  box-shadow: -30px 0 80px rgba(0,0,0,.75);
  transform: translateX(100%);
  transition: transform .62s var(--ease);
  display: flex; flex-direction: column;
}
.clue-drawer.open { transform: none; }
.drawer-head {
  padding: 26px 28px 20px;
  border-bottom: 1px solid var(--fog-08);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
}
.drawer-body { padding: 26px 28px 40px; overflow-y: auto; flex: 1; }
.drawer-body h3 { font-size: 1.5rem; color: var(--paper-100); margin-bottom: 8px; }
.drawer-body .obs {
  font-family: var(--f-serif);
  font-size: 1.08rem; line-height: 1.9;
  color: var(--fog-100);
  padding: 18px 20px;
  border-left: 2px solid var(--brass-600);
  background: rgba(201,162,39,.05);
  margin: 18px 0;
}
.drawer-body .ded {
  font-size: .94rem; line-height: 1.9; color: var(--fog-60);
}
.drawer-body .ded strong { color: var(--brass-100); font-weight: 600; }

/* ---------- 线索清单 ---------- */
.clue-list { display: grid; gap: 10px; }
.clue-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--fog-08);
  background: rgba(255,255,255,.014);
  transition: all .4s var(--ease);
  cursor: pointer;
}
.clue-item:hover { border-color: var(--brass-600); background: rgba(201,162,39,.045); transform: translateX(4px); }
.clue-item.locked { opacity: .34; cursor: default; }
.clue-item.locked:hover { transform: none; border-color: var(--fog-08); background: rgba(255,255,255,.014); }
.clue-num {
  font-family: var(--f-type); font-size: .68rem;
  color: var(--brass); flex-shrink: 0; padding-top: 2px; letter-spacing: .1em;
}
.clue-item h5 { font-family: var(--f-serif); font-size: 1.05rem; color: var(--paper-100); margin-bottom: 3px; font-weight: 600; }
.clue-item p { font-size: .8rem; color: var(--fog-38); line-height: 1.65; }

/* ---------- 嫌疑人 ---------- */
.suspects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .suspects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .suspects { grid-template-columns: 1fr; } }

.suspect {
  position: relative;
  border: 1px solid var(--fog-08);
  background: linear-gradient(170deg, var(--ink-700), var(--ink-850));
  padding: 0 0 22px;
  cursor: pointer;
  overflow: hidden;
  transition: all .5s var(--ease);
  text-align: center;
}
.suspect:hover { border-color: var(--brass-600); transform: translateY(-6px); box-shadow: 0 24px 54px rgba(0,0,0,.6); }
.suspect.active { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass-600), 0 24px 54px rgba(0,0,0,.6); }
.suspect-portrait {
  height: 190px;
  background: radial-gradient(ellipse at 50% 35%, #232a36, #0d1015 72%);
  display: grid; place-items: center;
  border-bottom: 1px solid var(--fog-08);
  position: relative;
  overflow: hidden;
}
.suspect-portrait svg { width: 118px; height: 118px; opacity: .88; transition: transform .6s var(--ease); }
.suspect:hover .suspect-portrait svg { transform: scale(1.07) translateY(-3px); }
.suspect-portrait::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8,9,11,.9));
}
.suspect-body { padding: 18px 18px 0; }
.suspect h4 { font-size: 1.16rem; color: var(--paper-100); margin-bottom: 4px; }
.suspect .role {
  font-family: var(--f-type); font-size: .62rem;
  letter-spacing: .2em; color: var(--brass); text-transform: uppercase;
}
.suspect .alibi { font-size: .82rem; color: var(--fog-38); margin-top: 12px; line-height: 1.7; }
.suspect-flag {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--f-type); font-size: .55rem;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px;
  border: 1px solid var(--fog-18); color: var(--fog-38);
  background: rgba(0,0,0,.5);
}
.suspect-flag.done { border-color: var(--teal); color: var(--teal); }

/* ---------- 审讯室 ---------- */
.interro {
  border: 1px solid var(--fog-18);
  background: linear-gradient(160deg, var(--ink-800), var(--ink-900));
  padding: clamp(24px, 4vw, 40px);
  min-height: 340px;
}
.interro-head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--fog-08); }
.interro-head svg { width: 56px; height: 56px; flex-shrink: 0; }

.qa-log { display: flex; flex-direction: column; gap: 16px; margin-bottom: 26px; }
.bubble {
  max-width: 84%;
  padding: 14px 19px;
  font-size: .94rem;
  line-height: 1.8;
  border-radius: 3px;
  animation: bubbleIn .5s var(--ease);
}
@keyframes bubbleIn { from { opacity: 0; transform: translateY(12px); } }
.bubble.me {
  align-self: flex-end;
  background: rgba(201,162,39,.11);
  border: 1px solid var(--brass-600);
  color: var(--brass-100);
  font-family: var(--f-type);
  font-size: .84rem;
  letter-spacing: .03em;
}
.bubble.them {
  align-self: flex-start;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--fog-08);
  border-left: 2px solid var(--fog-18);
  color: var(--fog-100);
  font-family: var(--f-serif);
  font-size: 1.05rem;
}
.bubble.note {
  align-self: center;
  max-width: 92%;
  background: rgba(199,58,44,.07);
  border: 1px dashed var(--blood);
  color: var(--blood-glow);
  font-family: var(--f-type);
  font-size: .78rem;
  letter-spacing: .06em;
  text-align: center;
}

.q-opts { display: grid; gap: 9px; }
.q-btn {
  text-align: left;
  padding: 13px 18px;
  border: 1px solid var(--fog-08);
  background: rgba(255,255,255,.015);
  color: var(--fog-60);
  font-family: inherit;
  font-size: .9rem;
  cursor: pointer;
  transition: all .35s var(--ease);
  display: flex; align-items: center; gap: 12px;
  border-radius: 2px;
}
.q-btn:hover:not(:disabled) { border-color: var(--brass-600); color: var(--paper-100); background: rgba(201,162,39,.05); transform: translateX(4px); }
.q-btn:disabled { opacity: .3; cursor: default; }
.q-btn .qi { color: var(--brass); font-family: var(--f-type); font-size: .68rem; flex-shrink: 0; }
.q-btn.press { border-color: var(--blood); }
.q-btn.press .qi { color: var(--blood-glow); }
.q-btn.press:hover:not(:disabled) { background: rgba(199,58,44,.07); border-color: var(--blood-glow); }
.q-btn.asked { opacity: .4; }

/* ---------- 指认 ---------- */
.accuse-block { margin-bottom: 36px; }
.accuse-block > h4 {
  font-size: 1.2rem; margin-bottom: 6px; color: var(--paper-100);
  display: flex; align-items: center; gap: 12px;
}
.accuse-block > h4 em {
  font-family: var(--f-type); font-style: normal;
  font-size: .6rem; letter-spacing: .2em; color: var(--brass);
  border: 1px solid var(--brass-600); padding: 2px 8px; border-radius: 2px;
}
.accuse-block > p { font-size: .88rem; color: var(--fog-38); margin-bottom: 18px; }

.opts { display: grid; gap: 10px; }
.opts.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .opts.two { grid-template-columns: 1fr; } }
.opt {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--fog-08);
  background: rgba(255,255,255,.014);
  cursor: pointer;
  transition: all .35s var(--ease);
  border-radius: 2px;
}
.opt:hover { border-color: var(--fog-38); background: rgba(255,255,255,.03); }
.opt.sel { border-color: var(--brass); background: rgba(201,162,39,.09); box-shadow: inset 0 0 0 1px rgba(201,162,39,.3); }
.opt-mark {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px;
  border: 1px solid var(--fog-38);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: all .3s;
}
.opt.sel .opt-mark { border-color: var(--brass); background: var(--brass); }
.opt.sel .opt-mark::after { content: ''; width: 6px; height: 6px; background: var(--ink-900); border-radius: 50%; }
.opt b { display: block; color: var(--paper-100); font-family: var(--f-serif); font-size: 1.06rem; font-weight: 600; margin-bottom: 3px; }
.opt span { font-size: .82rem; color: var(--fog-38); line-height: 1.65; }

/* ---------- 结案 ---------- */
.verdict-hero {
  text-align: center;
  padding: clamp(40px, 7vw, 76px) clamp(24px, 4vw, 48px);
  border: 1px solid var(--brass-600);
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(201,162,39,.13), transparent 66%),
    linear-gradient(180deg, var(--ink-800), var(--ink-900));
  position: relative;
  overflow: hidden;
}
.verdict-hero.fail { border-color: var(--blood); }
.verdict-hero.fail::before { background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(199,58,44,.14), transparent 66%); }
.verdict-score {
  font-family: var(--f-display);
  font-size: clamp(4rem, 13vw, 8rem);
  line-height: 1;
  background: linear-gradient(180deg, #fdf6e2, #b08e34);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.verdict-hero.fail .verdict-score { background: linear-gradient(180deg, #f0a99e, #8e1d1d); -webkit-background-clip: text; background-clip: text; }
.verdict-rank {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  letter-spacing: .1em;
  color: var(--brass-100);
  margin-top: 6px;
}

.reveal-scroll {
  counter-reset: rv;
}
.reveal-step {
  position: relative;
  padding: 0 0 34px 46px;
  border-left: 1px solid var(--fog-18);
  margin-left: 12px;
}
.reveal-step:last-child { border-left-color: transparent; padding-bottom: 0; }
.reveal-step::before {
  counter-increment: rv;
  content: counter(rv);
  position: absolute;
  left: -14px; top: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--ink-900);
  border: 1px solid var(--brass-600);
  color: var(--brass);
  border-radius: 50%;
  font-family: var(--f-type);
  font-size: .72rem;
}
.reveal-step h4 { font-size: 1.2rem; color: var(--paper-100); margin-bottom: 9px; }
.reveal-step p { font-size: .96rem; color: var(--fog-60); line-height: 1.92; }
.reveal-step p + p { margin-top: 10px; }
.reveal-step strong { color: var(--brass-100); }

.score-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 0; border-bottom: 1px dashed var(--fog-08); font-size: .92rem;
}
.score-line:last-child { border-bottom: none; }
.score-line .lbl { color: var(--fog-38); font-family: var(--f-type); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.score-line .val { font-family: var(--f-display); font-size: 1.05rem; }
.score-line .val.hit { color: var(--teal); }
.score-line .val.miss { color: var(--blood-glow); }

/* ---------- 侧边固定按钮 ---------- */
.clue-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 780;
  display: flex; align-items: center; gap: 11px;
  padding: 13px 22px;
  background: rgba(12,14,18,.96);
  border: 1px solid var(--brass-600);
  color: var(--brass-100);
  font-family: var(--f-type);
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer; border-radius: 2px;
  box-shadow: 0 14px 40px rgba(0,0,0,.6);
  transition: all .4s var(--ease);
}
.clue-fab:hover { border-color: var(--brass); background: rgba(201,162,39,.14); transform: translateY(-3px); }
.clue-fab b {
  background: var(--brass); color: var(--ink-900);
  padding: 1px 8px; border-radius: 10px; font-size: .72rem;
}
@media (max-width: 620px) { .clue-fab { right: 14px; bottom: 14px; padding: 11px 16px; font-size: .66rem; } }
