/* 文件去重页面样式 */

/* ===== 统一主题覆盖（在 novel.css 之后加载，只影响本页） ===== */
body {
    background: #f6f7fb;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #171c2e;
}

.content {
    border: 1px solid #e8eaf1;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(23, 28, 46, 0.06);
}

.info-bar {
    border-color: #e8eaf1;
}

.info-bar-left h1 {
    color: #171c2e;
    font-weight: 800;
}

button:hover {
    transform: none;
}

.dedup-controls {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fafafa;
}

.control-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: #555;
}

.control-row select {
    padding: 6px 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 12px;
}

.control-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.control-actions button {
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid #e3e6f0;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    color: #3f4658;
    background: #f2f4fa;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.control-actions button:hover:not(:disabled) {
    background: #e8ebf5;
    border-color: #d5dae8;
}

.control-actions button:disabled {
    background: #f7f8fc;
    color: #aab0c2;
    border-color: #eceef5;
    cursor: not-allowed;
}

#scanBtn {
    background: #eef0ff;
    color: #4f46e5;
    border-color: #dfe3ff;
}

#scanBtn:hover {
    background: #e2e6ff;
    border-color: #ccd2ff;
}

#dedupAllBtn {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fbdcdc;
}

#dedupAllBtn:hover:not(:disabled) {
    background: #fee4e4;
    border-color: #f7c9c9;
}

#dedupAllBtn:disabled {
    background: #f7f8fc;
    color: #aab0c2;
    border-color: #eceef5;
}

.control-row select {
    border-color: #e8eaf1;
    border-radius: 8px;
}

.dedup-controls {
    background: #fbfbfe;
    border-color: #e8eaf1;
    border-radius: 12px;
}

.dup-list {
    background: #fbfbfe;
    border-color: #e8eaf1;
    border-radius: 12px;
}

.summary {
    font-size: 12px;
    color: #6c757d;
    margin: 6px 2px 10px;
}

.dup-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fafafa;
}

.dup-group {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fff;
}

.dup-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.dup-group-title {
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.dup-group-meta {
    color: #6c757d;
    font-weight: 400;
    font-size: 12px;
    margin-left: 6px;
}

.dup-btn {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #fbdcdc;
    border-radius: 8px;
    background: #fef2f2;
    color: #dc2626;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.dup-btn:hover {
    background: #fee4e4;
    border-color: #f7c9c9;
}

.dup-group-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dup-file {
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 4px;
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
}

.dup-file.keep {
    background: #e8f5e9;
    border-color: #cde8d2;
    color: #2e7d32;
}

.dup-file.remove {
    background: #ffe8e8;
    border-color: #f5c2c7;
    color: #a71d2a;
}

@media (max-width: 768px) {
    .dedup-controls {
        grid-template-columns: 1fr;
    }

    .control-actions {
        justify-content: stretch;
    }

    .control-actions button {
        flex: 1;
    }

    .dup-group-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dup-btn {
        width: 100%;
    }
}
