/* ================================================================
   菜刀客在线工具页 · negative-film-restore.html 私有样式
   需在 /css/common.css 之后加载。
   ================================================================ */

/* ---- 上传区 ---- */
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.upload-area:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.upload-area.dragover {
    border-color: #667eea;
    background: #eef2ff;
}

.upload-area .icon {
    font-size: 44px;
    margin-bottom: 10px;
}

.upload-area .upload-text {
    color: #6b7280;
    font-size: 14px;
}

.upload-area .upload-text strong {
    color: #667eea;
}

.upload-area .upload-tip {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 8px;
}

/* ---- 文件信息卡片 ---- */
.info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.info-card .thumb {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
    background: #fff;
}

.info-card .meta {
    flex: 1;
    min-width: 0;
}

.info-card .name {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-card .dims {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

.btn-remove {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

.btn-remove:hover {
    color: #dc2626;
}

/* ---- 模式卡片选中态 ---- */
.radio-card input[type="radio"] {
    accent-color: #667eea;
}

.radio-card:has(input:checked) {
    border-color: #667eea;
    background: #eef2ff;
    color: #4338ca;
}

/* ---- 参数滑杆 ---- */
.param-row {
    width: 100%;
}

.param-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.param-label {
    font-size: 13px;
    color: #374151;
}

.val {
    font-weight: 600;
    color: #667eea;
    font-variant-numeric: tabular-nums;
}

.param-row input[type="range"] {
    width: 100%;
    accent-color: #667eea;
    cursor: pointer;
}

.param-row.param-disabled input[type="range"] {
    opacity: 0.45;
    cursor: not-allowed;
}

.param-row.param-disabled .val,
.param-row.param-disabled .param-label {
    opacity: 0.55;
}

.tip {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

/* ---- 还原预览 ---- */
.res-wrap {
    position: relative;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    min-height: 220px;
}

.res-wrap .empty-state {
    min-height: 220px;
}

#resultCanvas {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    background: #eef0f4;
    image-rendering: auto;
}

/* ---- 原始负片对照 ---- */
.orig-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #1e1e1e;
    text-align: center;
}

.orig-wrap img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

@media (max-width: 600px) {
    #resultCanvas {
        width: 100%;
        height: auto;
    }
}