/* 补充适配层：仅修正构建产物里“空上传位不可见”的可点击提示，不改动任何版式尺寸 */

/* 上传组件在空值时会渲染一个 5rem 的空 uni-image，肉眼看不到可点击区域。
   这里给“内部图片为空”的上传位加虚框与 + 号，让用户可以判断可上传。 */
.upload-grid .relative.overflow-hidden:has(uni-image > div[style*="background-image: none"]) {
  border: 1px dashed #f2b184;
  border-radius: 8px;
  background: #fffaf5;
  box-sizing: border-box;
}

.upload-grid .relative.overflow-hidden:has(uni-image > div[style*="background-image: none"])::after {
  content: "+";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  line-height: 1;
  color: #f2913d;
  pointer-events: none;
}

/* 兼容不支持 :has 的浏览器：整块上传区给出淡底提示 */
@supports not selector(:has(*)) {
  .upload-grid {
    border: 1px dashed #f2b184;
    border-radius: 8px;
    background: #fffaf5;
    padding: 6px;
  }
}

/* 卡片标题里的玩法小标（由 extra.js 生成） */
.type-chip {
  display: inline-block;
  font-style: normal;
  background: #4a9bf5;
  color: #fff;
  border-radius: 6px;
  padding: 0 8px;
  margin: 0 4px;
  font-size: 0.82em;
  line-height: 1.5;
  vertical-align: 1px;
}
