/* Logo预览框加载遮罩 */
.logo-preview-box { position: relative; }
.logo-preview-loading {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 10;
}
.logo-preview-loading .loading-text {
    color: #fff;
    font-size: 12px;
    margin-bottom: 10px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    text-align: center;
    padding: 0 8px;
    line-height: 1.4;
}
.logo-preview-loading .loading-bar {
    width: 65%;
    max-width: 160px;
    height: 5px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    overflow: hidden;
}
.logo-preview-loading .loading-bar-fill {
    height: 100%;
    background: #fff;
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

/* 覆盖全局style.css在@media(min-width:768px)下对.upload-area的固定尺寸，防止参考图预览溢出虚线框 */
@media (min-width: 768px) {
    .ref-section .upload-area {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
    }
}

.ref-section .upload-area.has-preview {
    overflow: hidden;
}

.ref-section .upload-area.has-preview img {
    display: block;
    width: 100%;
    height: auto !important;
    max-height: 160px;
    object-fit: contain;
}
