/* upload.css — WP 插件前端样式（12 章第五节：跟随主题、无外部框架、移动优先） */

.pc-upload {
  border: 2px dashed #d5ccbc;
  border-radius: 16px;
  background: #f6f1e9;
  padding: 20px;
  margin: 0 0 1.2em;
  text-align: center;
  transition: border-color .2s, background .2s;
}
.pc-upload.is-dragover { border-color: #a6471f; background: #f7e9e1; }
.pc-upload__title { font-weight: 600; margin: 0 0 4px; }
.pc-upload__hint { font-size: 12px; color: #8a8378; margin: 0 0 12px; }
.pc-upload__btn { min-height: 44px; }
.pc-upload__input { display: none; }
.pc-upload__preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 10px;
  background: #fffdf8;
  border: 1px solid #e7e0d4;
  border-radius: 10px;
  text-align: left;
}
.pc-upload__preview[hidden] { display: none; }
.pc-upload__thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; }
.pc-upload__meta { flex: 1; font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-upload__remove { border: 0; background: none; color: #a6261f; cursor: pointer; font-size: 13px; min-height: 44px; }
.pc-upload__status { font-size: 12px; margin: 8px 0 0; min-height: 1em; }
.pc-upload__status--warn { color: #8a5a10; }
.pc-upload__status--err { color: #a6261f; }
.pc-upload.is-busy { opacity: .7; pointer-events: none; }
