/* upload.css - 上传区域、上传槽位、上传网格 */
.upload-area { border: 1.5px dashed #ccc; border-radius: 10px; padding: 28px; text-align: center; cursor: pointer; transition: all .2s; position: relative; }
.upload-area:hover { border-color: #888; background: #fafaf8; }
.upload-area input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-area .icon { font-size: 32px; margin-bottom: 8px; }
.upload-area p { font-size: 13px; color: #888; }
.upload-area.has-img { border-style: solid; border-color: #1a1a1a; }
#preview { width: 100%; max-height: 200px; object-fit: contain; border-radius: 8px; display: none; margin-top: 12px; }
.upload-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media(max-width:600px){ .upload-grid { grid-template-columns: 1fr 1fr; } }
.upload-slot { border: 1.5px dashed #ccc; border-radius: 10px; padding: 10px; text-align: center; cursor: pointer; transition: all .2s; position: relative; min-height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.upload-slot:hover { border-color: #888; background: #fafaf8; }
.upload-slot.has-img { border-style: solid; border-color: #1a1a1a; padding: 6px; }
.upload-slot input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-slot .slot-icon { font-size: 24px; margin-bottom: 4px; }
.upload-slot .slot-label { font-size: 12px; font-weight: 500; color: #1a1a1a; line-height: 1.3; }
.upload-slot .slot-desc { font-size: 10px; color: #aaa; margin-top: 3px; line-height: 1.3; }
.upload-slot .slot-tag { position: absolute; top: 6px; left: 6px; font-size: 9px; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.slot-required { background: #ffebee; color: #c62828; }
.slot-optional { background: #f0f0ec; color: #888; }
.upload-slot img.slot-preview { width: 100%; max-height: 100px; object-fit: contain; border-radius: 6px; }
.upload-slot .slot-remove { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,0.5); color: #fff; font-size: 12px; display: none; align-items: center; justify-content: center; cursor: pointer; line-height: 1; }
.upload-slot.has-img .slot-remove { display: flex; }

/* 型号预设下拉框 */
.var-preset-select { width: 100%; padding: 3px 4px; border: 1px solid #ccc; border-radius: 4px; font-size: 10px; color: #555; background: #f8f8f6; cursor: pointer; box-sizing: border-box; margin-bottom: 2px; }
.var-preset-select:focus { border-color: #999; background: #fff; outline: none; }

/* 型号规格输入组（NET / H / W） */
.var-spec-group { display: flex; flex-direction: column; gap: 3px; }
.var-spec-row { display: flex; align-items: center; gap: 3px; }
.var-spec-row span { font-size: 10px; font-weight: 600; color: #888; min-width: 24px; text-align: right; }
.var-spec-row input { flex: 1; padding: 3px 5px; border: 1px solid #ddd; border-radius: 4px; font-size: 11px; width: 100%; box-sizing: border-box; background: #fafaf8; }
.var-spec-row input:focus { border-color: #999; background: #fff; outline: none; }
