/* 通用图片上传组件（LX_IMG）
   设计约束：上传只是输入框的辅助动作，不能抢视觉焦点。
   一行排布：小缩略图 + 地址输入框 + 低调的「上传」小按钮，按钮与输入框等高、固定尺寸。 */
.lx-imgfield { display: block; }
.lx-img-row { display: flex; gap: 8px; align-items: stretch; }
.lx-img-prev {
  flex: 0 0 auto; width: 36px; min-width: 36px; border-radius: 6px;
  border: 1px solid var(--input-line, var(--line, #2a3550)); background: rgba(255,255,255,.03);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.lx-img-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lx-img-none { font-size: 15px; line-height: 1; color: var(--dim, #8a96b0); opacity: .7; }
.lx-img-ops { flex: 1; min-width: 0; display: flex; align-items: stretch; gap: 6px; }
.lx-img-ops .input { flex: 1; min-width: 0; }
.lx-btn-file {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 0 10px; border-radius: 6px; cursor: pointer;
  font-size: 12px; font-weight: 400; line-height: 1; white-space: nowrap;
  background: transparent; color: var(--muted, #8a96b0);
  border: 1px solid var(--input-line, var(--line, #2a3550));
  transition: border-color .15s, color .15s;
}
.lx-btn-file:hover { border-color: var(--lx-gold, #d9b36c); color: var(--lx-gold, #d9b36c); }
.lx-btn-file svg { width: 12px; height: 12px; flex: 0 0 auto; }
.lx-btn-file input[type=file] { display: none; }
.lx-img-msg { display: block; margin-top: 5px; font-size: 12px; color: var(--ok, #57d38c); min-height: 14px; }
.lx-img-msg:empty { min-height: 0; }
