/* =====================================================================
 * 04 照片去重整理 · 独立视觉：照片网格 / 重复簇高亮
 * 左参数 + 中可点选照片矩阵 + 右释放空间读数，与同批其它页不同。
 * ===================================================================== */
.hc.hc--pd { --hc-a: #6f5a8c; --hc-a-soft: #eee9f5; }
:root[data-theme="dark"] .hc.hc--pd { --hc-a: #b39fd6; --hc-a-soft: #272138; }

.pd-hero { padding-top: 34px; }
.pd-head { max-width: 850px; }
.pd-bench { display: grid; grid-template-columns: minmax(245px, 1.05fr) minmax(0, 1.12fr) minmax(205px, .85fr); gap: 16px; margin-top: 26px; align-items: start; }

.pd-form, .pd-read {
    padding: 18px; border: 1px solid var(--hc-line); border-radius: var(--hc-r);
    background: var(--hc-card); box-shadow: var(--hc-shadow);
}
.pd-panel-title {
    font-family: var(--hc-serif); font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
    color: var(--hc-a); padding-bottom: 9px; margin-bottom: 12px; border-bottom: 1px dashed var(--hc-line);
}
.pd-form .hc-fields { grid-template-columns: 1fr 1fr; gap: 11px; }
.pd-form .hc-field label b { color: var(--hc-danger); }
.pd-switches { display: grid; gap: 7px; margin-top: 13px; }
.pd-switches .hc-check { padding: 7px 9px; }
.pd-switches .hc-check b { font-size: 12px; }
.pd-form .hc-btn { flex: 1 1 auto; font-size: 12.5px; padding: 9px; }

/* ---------- 照片网格 ---------- */
.pd-viz {
    border: 1px solid var(--hc-line); border-radius: var(--hc-r);
    background: var(--hc-card); box-shadow: var(--hc-shadow); overflow: hidden;
}
.pd-viz-head, .pd-viz-foot {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; align-items: center;
    padding: 11px 17px; font-family: var(--hc-serif); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--hc-muted);
}
.pd-viz-head { border-bottom: 1px solid var(--hc-line-2); }
.pd-viz-foot { border-top: 1px solid var(--hc-line-2); font-family: var(--hc-sans); letter-spacing: 0; font-size: 11.5px; }
.pd-viz-head span:last-child, .pd-viz-foot span:last-child { font-family: var(--hc-sans); letter-spacing: 0; font-size: 12px; color: var(--hc-a); font-weight: 700; }
#pdSvg { display: block; width: 100%; height: auto; background: var(--hc-card-2); }
.pd-cell { fill: var(--hc-card); stroke: var(--hc-line); stroke-width: 1.5; cursor: pointer; transition: opacity .2s; }
.pd-cell:hover { stroke: var(--hc-a); }
.pd-cell.is-dup { fill: var(--hc-a); opacity: .65; stroke: var(--hc-a); }
.pd-cell.is-keep { fill: var(--hc-ok); opacity: .9; stroke: var(--hc-ok); }
.pd-cell.is-on { stroke: var(--hc-warm); stroke-width: 3; }
.pd-cell-t { fill: var(--hc-ink-2); font-size: 9px; }
.pd-cap { fill: var(--hc-muted); font-size: 10.5px; }
.pd-key { display: inline-block; width: 12px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: 0; }
.pd-key--dup { background: var(--hc-a); opacity: .7; }
.pd-key--keep { background: var(--hc-ok); }
.pd-cluster-info {
    margin: 0 16px 16px; padding: 11px 14px; border-left: 3px solid var(--hc-a);
    background: var(--hc-card-2); border-radius: 0 var(--hc-r-sm) var(--hc-r-sm) 0;
    font-size: 12.5px; line-height: 1.7; color: var(--hc-ink-2);
}
.pd-cluster-info b { display: block; color: var(--hc-ink); }

/* ---------- 读数 ---------- */
.pd-big { padding: 15px 16px; border-radius: var(--hc-r-sm); background: var(--hc-a); color: #fff; text-align: center; }
:root[data-theme="dark"] .pd-big { color: #1e1430; }
.pd-big span { display: block; font-size: 11.5px; opacity: .9; }
.pd-big strong { display: block; font-family: var(--hc-serif); font-size: 28px; line-height: 1.3; }
.pd-big small { display: block; font-size: 11.5px; opacity: .9; }
.pd-kpis { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.pd-kpis .hc-kpi { padding: 10px 11px; }
.pd-kpis .hc-kpi .v { font-size: 18px; }
.pd-kpis .hc-kpi .d { font-size: 10px; }
.pd-progress { margin-top: 14px; }
.pd-progress-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--hc-muted); }
.pd-progress-head b { font-family: var(--hc-serif); font-size: 15px; color: var(--hc-a); }
.pd-progress-track { height: 9px; margin: 7px 0; border-radius: 6px; background: var(--hc-line-2); overflow: hidden; }
.pd-progress-track i { display: block; height: 100%; background: var(--hc-a); transition: width .3s; }
.pd-progress p { margin: 0; font-size: 10.5px; line-height: 1.6; color: var(--hc-muted); }

/* ---------- 结果 ---------- */
.pd-verdict { margin-top: 2px; }
.pd-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 15px; }
.pd-plan { padding: 18px 19px; border: 1px solid var(--hc-line-2); border-radius: var(--hc-r); background: var(--hc-card); box-shadow: var(--hc-shadow-sm); }
.pd-plan .tag { font-family: var(--hc-serif); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--hc-a); }
.pd-plan h3 { margin: 7px 0 9px; font-size: 17px; }
.pd-plan p { margin: 0; font-size: 13px; line-height: 1.75; color: var(--hc-ink-2); }
.pd-plan ol, .pd-plan ul { margin: 10px 0 0; padding-left: 19px; font-size: 12.5px; color: var(--hc-ink-2); }
.pd-plan li { margin-bottom: 6px; }
.pd .hc-table tr.is-key { background: var(--hc-a-soft); }

@media (max-width: 1150px) {
    .pd-bench { grid-template-columns: 1fr 1fr; }
    .pd-read { grid-column: 1 / -1; }
    .pd-kpis { grid-template-columns: repeat(4, 1fr); }
    .pd-plans { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .pd-bench { grid-template-columns: 1fr; }
    .pd-read { grid-column: auto; }
    .pd-kpis { grid-template-columns: 1fr 1fr; }
    .pd-form, .pd-read { padding: 15px; }
}
@media (max-width: 480px) { .pd-form .hc-fields { grid-template-columns: 1fr; } }
