/* 凸透镜成像特有样式（通用样式见 ../shared/base.css） */

#ray { position: absolute; inset: 0; touch-action: none; }
#ray.grab { cursor: grab; }
#ray.grabbing { cursor: grabbing; }
#bench { position: absolute; inset: 0; }
#bench[hidden], [hidden] { display: none !important; }

#viewSeg { position: absolute; left: 12px; bottom: 12px; z-index: 3; }
#camSeg { position: absolute; right: 12px; bottom: 12px; z-index: 3; }
#viewSeg button, #camSeg button { font-size: 13px; padding: 5px 12px; }

#benchNote { position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); z-index: 3; max-width: calc(100% - 24px);
  padding: 6px 14px; border-radius: 8px; background: rgba(17,23,35,.85); border: 1px solid var(--line);
  font-size: 13px; color: var(--text); text-align: center; pointer-events: none; }

.readout .big { font-size: 19px; }
.readout .use { font-size: 12px; color: var(--accent); margin-top: 2px; min-height: 18px; }

.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.presets button { font: inherit; font-size: 12px; color: var(--text); background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 0; cursor: pointer; font-family: var(--mono); }
.presets button:hover { border-color: var(--accent); }
.presets button.on { border-color: var(--accent); background: rgba(255,201,74,.14); }

.raykey { list-style: none; padding: 0; margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.raykey li { margin: 3px 0; }
.raykey i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.raykey i.dash { background: repeating-linear-gradient(90deg, #8d99ab 0 4px, transparent 4px 7px); }

.imgkey { display: grid; gap: 4px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.imgkey b { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }
.k-real { background: #ff9a3c; border: 1.5px solid #ffc94a; }
.k-virt { background: rgba(255,154,60,.2); border: 1.5px dashed #c9a7ff; }

/* 3D 场景标签 */
.lbl { font-size: 12px; color: #fff; white-space: nowrap; pointer-events: none; text-shadow: 0 0 3px #000, 0 0 6px #000; }
.lbl-f { color: #ffc94a; font-weight: 600; }
.lbl-2f { color: #9aa6b8; font-weight: 600; }
.lbl-real { color: #ffc94a; padding: 1px 8px; border: 1px solid #ffc94a; border-radius: 10px; background: rgba(11,15,23,.8); text-shadow: none; }
.lbl-virt { color: #c9a7ff; padding: 1px 8px; border: 1px dashed #c9a7ff; border-radius: 10px; background: rgba(11,15,23,.8); text-shadow: none; }
.lbl-far { color: var(--text); padding: 1px 8px; border: 1px solid var(--line); border-radius: 10px; background: rgba(11,15,23,.8); text-shadow: none; }

@media (max-width: 760px) {
  #viewSeg { top: 84px; bottom: auto; }
  #camSeg { top: 120px; left: 12px; right: auto; bottom: auto; }
  #benchNote { bottom: 16px; font-size: 12px; }
  .presets button { font-size: 11px; }
}
