
.upload-container {
    width: 100%;
    min-height: 150px;
    margin: 0 auto;
}

.drop-area {
    border: 2px dashed #ccc;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
}

.drop-area.highlight {
    border-color: purple;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.add-image {
    width: 200px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px dashed #ccc;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
}

.add-image span {
    font-size: 24px;
    color: #ccc;
}

.add-image p {
    margin: 0;
    font-size: 12px;
    color: #ccc;
    text-align: center;
}

.gallery img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #ddd;
    top: 0;
    left: 0;
    z-index: 1;
}

.drop-area .selected {
    opacity: 0.5;
}

.dragableImage {
    position: relative;
}

.dragableImage span {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    background: rgba(255, 255, 255, 0.5); /* 可选：增加背景使文字更易读 */
}

.context-menu {
    position: fixed;
    border: 1px solid #ccc;
    background-color: #fff;
    z-index: 1000;
    list-style: none;
    padding: 5px 0;
    margin: 0;
}

.context-menu li {
    padding: 5px 15px;
    cursor: pointer;
}

.treeNode .treeNodeName:hover {
    background-color: #f5f5f5;
    /* 原有的鼠标悬浮样式 */
    background-color: #e0e0e0;
    /* 新增的浅灰色背景样式 */
}

.context-menu li:hover {
    background-color: #f5f5f5;
}

.dz-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropzone .dz-preview:hover .dz-image img {
    filter: blur(1px) !important;
}

/* 隐藏文件大小信息 */
.dz-size {
    display: none;
}

/* 确保文件名显示 */
.dz-filename {
    display: none;
}

.dz-remove {
    position: absolute;
    top: 0%;
    left: 100%;
    transform: translate(-50%, -50%);
    z-index: 100; /* 确保按钮在其他元素之上 */
    background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
    color: white; /* 白色文字 */
    padding: 5px 10px; /* 按钮内边距 */
    border-radius: 4px; /* 圆角边框 */
    text-decoration: none; /* 去除下划线 */
    opacity: 0; /* 默认透明 */
    transition: opacity 0.3s; /* 过渡效果 */
    
}

.dz-remove i{
    cursor: pointer !important; /* 鼠标改成手型 */
}
.dz-preview:hover .dz-remove {
    opacity: 1; /* 鼠标悬停时显示 */
    
}
