/* 自定义样式 */
#drop-area.active {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
}

/* 图片预览样式 */
#file-preview img,
#result-preview img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#file-preview img:hover,
#result-preview img:hover {
    transform: scale(1.05);
}

/* 模态框样式 */
#image-modal {
    backdrop-filter: blur(4px);
}

#modal-image {
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 进度条动画 */
@keyframes progress {
    from { width: 0%; }
    to { width: 100%; }
}

/* 自定义滑块样式 */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* 表单样式 */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* 按钮悬停效果 */
button:not(:disabled):hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    #file-preview img,
    #result-preview img {
        height: 120px;
    }
}
