/* 看图列式小剧场 · 页面样式（#48） */
.pic-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding: 18px 14px 16px;
  background: linear-gradient(180deg, var(--key-2), #fff);
}
.pic-hero__emoji { font-size: 46px; line-height: 1; }
.pic-hero__title { font-size: clamp(22px, 5.6vw, 30px); font-weight: 800; margin: 2px 0 0; }
.pic-hero__sub { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.5; max-width: 30em; }

.pic-levels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 700px) {
  .pic-levels { grid-template-columns: 1fr; }
}

.pic-level {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  min-height: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.pic-level:active { transform: translateY(3px); }
.pic-level__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pic-level__no { font-size: 12px; font-weight: 800; color: var(--ink-soft); letter-spacing: .04em; }
.pic-level__name { font-size: clamp(18px, 4.4vw, 22px); font-weight: 800; }
.pic-level__note { font-size: 13px; color: var(--ink-soft); line-height: 1.45; }
.pic-level__stars { font-size: 18px; letter-spacing: 2px; color: #cfd6e4; }
.pic-level__stars .wf-star.is-on { color: #ffb01f; }

.pic-tips { font-size: 13px; color: var(--ink-soft); }
.pic-tips h3 { font-size: 15px; margin-bottom: 4px; color: var(--ink); }

.pic-qhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pic-qtitle { font-size: clamp(20px, 5vw, 26px); font-weight: 800; margin: 0; }

/* —— 动画舞台 —— */
.scene-card { padding: 10px; }
.scene {
  position: relative;
  height: 216px;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid var(--line);
  background:
    radial-gradient(circle at 78% 16%, #fff6c8 0 26px, transparent 27px),
    linear-gradient(180deg, #dff4ff 0%, #eafaf0 62%, #cdeecb 62%, #bfe7bc 100%);
}
.obj {
  position: absolute;
  width: 9%;
  text-align: center;
  font-size: clamp(20px, 5.6vw, 30px);
  line-height: 1;
  user-select: none;
  will-change: left;
  transform: translateX(-50%);
}
.pic-extra {
  position: absolute;
  left: 6px;
  bottom: 5px;
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .6);
}
.pic-extra__item { font-size: 19px; opacity: .7; }
.pic-extra__tag { font-size: 9px; font-weight: 700; color: var(--ink-soft); margin-left: 3px; }

.scene-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.scene-chips { display: flex; gap: 6px; margin-left: auto; }
.chip {
  border: 2.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  min-height: 44px;
  cursor: pointer;
}
.chip:active { transform: translateY(2px); }

/* —— 列式区 —— */
.pic-work { display: flex; flex-direction: column; gap: 10px; transition: opacity .2s; }
.pic-work.is-locked { opacity: .42; pointer-events: none; }
.equation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px;
  border-radius: 18px;
  background: var(--cream);
  border: 3px solid var(--line);
}
.equation .tok { font-size: clamp(26px, 6vw, 36px); font-weight: 800; }
.equation .slot {
  width: 62px;
  height: 66px;
  border-radius: 14px;
  border: 3px dashed var(--ink-soft);
  background: #fff;
  font: inherit;
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .1s, background .1s, border-color .1s;
}
.equation .slot--op { width: 54px; }
.equation .slot.is-filled { border-style: solid; border-color: var(--key); background: #fff; }
.equation .slot.is-sel { border-color: var(--ink); box-shadow: 0 0 0 4px var(--key-2); }
.equation .slot.is-pick { border-style: solid; border-color: var(--key); background: var(--key-2); }
.equation .slot.is-bad { border-color: var(--bad); color: var(--bad); }
.equation .slot.is-wrong { background: #ffe1e1; border-style: solid; border-color: var(--bad); }

.pic-hint { font-size: 13px; color: var(--ink-soft); min-height: 18px; margin: 0; line-height: 1.45; }
.pic-bank { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pic-bank .numcard { min-width: 62px; height: 62px; font-size: 27px; }
.pic-bank .numcard.is-pick { background: var(--key-2); transform: translateY(-3px); }
.pic-bank .numcard--op { color: var(--ink-soft); }
.pic-actions { justify-content: center; gap: 10px; }

/* —— 复述 —— */
.retell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  border: 3px dashed var(--key);
  background: #fff;
}
.retell__title { font-size: 16px; font-weight: 800; }
.retell__opt {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  min-height: 56px;
  border-radius: 14px;
  border: 2.5px solid var(--line);
  background: var(--cream);
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  cursor: pointer;
}
.retell__opt:active { transform: translateY(2px); }
.retell__opt.is-ok { background: #d8f8e4; border-color: var(--ok); }
.retell__opt.is-bad { background: #ffe1e1; border-color: var(--bad); opacity: .7; }
.retell__opt[disabled] { pointer-events: none; }

.pic-done-stars { text-align: center; font-size: 34px; letter-spacing: 6px; color: #cfd6e4; margin-bottom: 2px; }
.pic-done-stars .wf-star.is-on { color: #ffb01f; }

@media (max-width: 380px) {
  .equation { gap: 5px; padding: 8px; }
  .equation .slot { width: 54px; height: 60px; }
  .scene { height: 200px; }
}



/* 拖拽数字卡到算式槽（触摸不滚动） */
.pic-bank .numcard { touch-action: none; }
.numcard.is-dragging { opacity: .45; }
.drag-ghost {
  position: fixed;
  z-index: 9999;
  transform: translate(-50%, -50%) scale(1.08);
  pointer-events: none;
  min-width: 56px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff;
  border: 3px solid var(--ink, #24304a);
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
  font: 800 30px/1 var(--font, system-ui, sans-serif);
  text-align: center;
  color: var(--ink, #24304a);
}
.slot.is-drop { outline: 4px dashed var(--key, #35b6a8); outline-offset: 3px; }
