/* === Product Image Upload - 图片上传区域 === */
.image-upload-area {
    border-radius: 12px;
    overflow: hidden;
    border: 0.3px solid var(--border-color);
    transition: border-color 0.2s;
}

.image-upload-area:hover {
    border-color: var(--accent-color);
}

.image-upload-area.large .upload-placeholder {
    height: 200px;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-placeholder:hover {
    background: #f1f5f9;
}

.upload-placeholder.small {
    height: 120px;
    border-radius: 8px;
}

.upload-icon {
    color: #94a3b8;
}

.upload-icon svg {
    width: 32px;
    height: 32px;
}

.upload-placeholder.small .upload-icon svg {
    width: 24px;
    height: 24px;
}

.upload-text {
    font-size: 13px;
    color: #64748b;
    text-align: center;
}

.upload-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    width: 100%;
    margin: 0 auto;
}

.upload-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.upload-preview::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.upload-preview:hover::after {
    opacity: 1;
}

.upload-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.upload-preview:hover .upload-actions {
    opacity: 1;
    pointer-events: auto;
}

.upload-action-btn {
    width: 54px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #1a1a2e;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    padding: 0 4px;
}

.upload-action-btn:hover {
    background: #f8fafc;
}

/* Modern Image Upload */
.modern-image-upload {
    width: 100%;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #f8fafc;
    border: 0.3px solid var(--border-color);
}

.modern-image-upload .upload-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modern-image-upload .upload-placeholder:hover {
    background: #f1f5f9;
    color: var(--accent-color);
}

.modern-image-upload .image-preview-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.modern-image-upload .image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modern-image-upload .image-actions {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modern-image-upload:hover .image-actions {
    opacity: 1;
}
