/* 积分图床插件样式 */

.upload-area {
    border: 2px dashed #007bff;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #0056b3;
    background: #e3f2fd;
    transform: scale(1.02);
}

.upload-area.dragover {
    border-style: solid;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
}

.image-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #fff;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.image-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 15px;
    border-radius: 10px;
}

.image-card:hover .image-overlay {
    opacity: 1;
}

.image-info {
    color: white;
    text-align: left;
}

.image-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.image-actions .btn {
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    position: relative;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-actions {
    display: flex;
    gap: 10px;
}

.gallery-actions .btn {
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-info {
    padding: 15px;
}

.image-name {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-meta {
    font-size: 12px;
}

#upload-progress .progress {
    height: 20px;
    border-radius: 10px;
}

#upload-progress .progress-bar {
    border-radius: 10px;
}

#upload-status {
    font-weight: 600;
    color: #007bff;
}

@media (max-width: 768px) {
    .upload-area {
        padding: 30px 15px;
    }
    
    .image-card img,
    .gallery-image img {
        height: 150px;
    }
    
    .gallery-actions {
        gap: 5px;
    }
    
    .gallery-actions .btn {
        min-width: 35px;
        height: 35px;
        font-size: 12px;
    }
}