/* 第 13 课：排除法看板（u13-exclude）。原图在上，嫌疑名单是管线图标，每一步揭开一对前后图。颜色走 site.css 的变量，深浅两套自动跟随。 */

.u13x { --u13x-bad: #c8412c; --u13x-ok: #1f7a4d; --u13x-hot: #ff5a3c; display: grid; gap: 18px; }
:root[data-theme="dark"] .u13x { --u13x-bad: #e2604a; --u13x-ok: #3fa672; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .u13x { --u13x-bad: #e2604a; --u13x-ok: #3fa672; } }
.u13x-h { font-family: var(--font-sans); font-size: 12.5px; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; margin: 0 0 8px; }

/* ---------------------------------------------------------------- 顶部：原图 + 嫌疑名单 */
.u13x-top { display: grid; gap: 18px 22px; grid-template-columns: minmax(0, 1.62fr) minmax(250px, 1fr); align-items: start; }
.u13x-hero { margin: 0; }
.u13x-shot { position: relative; border-radius: 6px; overflow: hidden; background: #111; line-height: 0; box-shadow: 0 1px 0 var(--line); }
.u13x-shot img { display: block; width: 100%; height: auto; }
.u13x-ring { position: absolute; left: 16.5%; top: 3.5%; width: 23%; height: 31%; border: 2.5px solid var(--u13x-hot); border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35), inset 0 0 0 2px rgba(0, 0, 0, 0.25); animation: u13x-pulse 2.4s ease-in-out infinite; }
.u13x-ring-t { position: absolute; left: 40%; top: 5%; line-height: 1.3; padding: 3px 10px; border-radius: 99px; background: var(--u13x-hot); color: #fff;
  font-size: 14px; font-weight: 700; letter-spacing: 0.06em; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); }
.u13x-clue-box { position: absolute; left: 3.6%; top: 18.6%; width: 96.4%; height: 5%; border: 2px solid #ffd84a; border-radius: 3px; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4); opacity: 0; transition: opacity 0.5s; }
.u13x-clue { position: absolute; right: 2%; top: 25%; line-height: 1.35; padding: 3px 9px; border-radius: 4px; background: #ffd84a; color: #1b1c1f; font-size: 13px; opacity: 0; transition: opacity 0.5s; }
.u13x-clue b { font-family: var(--font-mono); letter-spacing: 0; }
.u13x-hero[data-clue="true"] .u13x-clue-box, .u13x-hero[data-clue="true"] .u13x-clue { opacity: 1; }
.u13x-hero figcaption { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-top: 7px; }
.u13x-hero figcaption b { color: var(--ink); margin-right: 8px; font-weight: 600; }
@keyframes u13x-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

.u13x-ico { width: 34px; height: 34px; flex: none; display: block; overflow: visible; }
.u13x-ico .u13x-ico-bg { fill: var(--card); stroke: var(--line-2); stroke-width: 1.2; }
.u13x-suspects { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.u13x-sus { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 7px 10px 7px 8px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--card); transition: background 0.3s, border-color 0.3s; }
.u13x-sus-t { display: grid; min-width: 0; }
.u13x-sus-t b { font-size: 15.5px; font-weight: 700; line-height: 1.35; }
.u13x-sus-t small { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.u13x-sus-tag { font-size: 12.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.u13x-strike { position: absolute; grid-column: 1 / 3; grid-row: 1; left: -2px; right: -4px; top: 50%; height: 2.5px; margin-top: -1px; background: var(--u13x-bad); border-radius: 2px; transform: scaleX(0); transform-origin: left center; transition: transform 0.35s ease-out; pointer-events: none; }
.u13x-sus[data-state="cleared"] { background: transparent; }
.u13x-sus[data-state="cleared"] .u13x-ico, .u13x-sus[data-state="cleared"] .u13x-sus-t { opacity: 0.42; }
.u13x-sus[data-state="cleared"] .u13x-strike { transform: scaleX(1); }
.u13x-sus[data-state="cleared"] .u13x-sus-tag { color: var(--u13x-bad); }
.u13x-sus.is-new[data-state="cleared"] .u13x-strike { animation: u13x-strike 0.55s ease-out 0.55s both; }
.u13x-sus.is-new[data-state="cleared"] .u13x-ico, .u13x-sus.is-new[data-state="cleared"] .u13x-sus-t { animation: u13x-fade 0.4s ease-out 0.9s both; }
.u13x-sus[data-state="confirmed"] { border-color: var(--u13x-hot); background: color-mix(in srgb, var(--u13x-hot) 12%, var(--card)); box-shadow: 0 0 0 1px var(--u13x-hot); }
.u13x-sus[data-state="confirmed"] .u13x-sus-tag { color: var(--safelight); font-weight: 700; }
.u13x-sus.is-new[data-state="confirmed"] { animation: u13x-glow 1.2s ease-out 0.5s both; }
@keyframes u13x-strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes u13x-fade { from { opacity: 1; } to { opacity: 0.42; } }
@keyframes u13x-glow { 0% { box-shadow: 0 0 0 0 var(--u13x-hot); } 40% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--u13x-hot) 30%, transparent); } 100% { box-shadow: 0 0 0 1px var(--u13x-hot); } }
.u13x-tally { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.u13x-tally .big { font-family: var(--font-mono); font-size: 26px; font-weight: 700; letter-spacing: 0; color: var(--ink); vertical-align: -2px; margin: 0 2px; }

/* ---------------------------------------------------------------- 检查的每一步 */
.u13x-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.u13x-steps li { display: flex; min-width: 0; }
.u13x-step { flex: 1; min-width: 0; display: grid; align-content: start; gap: 2px; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  padding: 9px 11px 10px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--paper); transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.u13x-step:hover { border-color: var(--accent); }
.u13x-step-n { font-size: 12.5px; letter-spacing: 0.04em; color: var(--safelight); font-variant-numeric: tabular-nums; }
.u13x-step-t { font-size: 15px; font-weight: 700; line-height: 1.4; }
.u13x-step-c { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.u13x-step-mark { margin-top: 6px; font-size: 12.5px; color: var(--accent); font-weight: 600; }
.u13x-step[data-state="done"] { background: var(--card); }
.u13x-step[data-state="done"] .u13x-step-mark { color: var(--u13x-ok); }
.u13x-step[data-state="pending"] .u13x-step-mark { color: var(--safelight); }
.u13x-step[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.u13x-steps li:first-child .u13x-step { border-style: dashed; }
.u13x-steps li:first-child .u13x-step[aria-pressed="true"] { border-style: solid; }

/* ---------------------------------------------------------------- 这一步的前后两张图 */
.u13x-view { border: 1px solid var(--line); border-radius: 9px; background: var(--card); padding: 16px 18px 16px; min-height: 120px; }
.u13x-empty { display: grid; place-content: center; text-align: center; min-height: 150px; color: var(--muted); font-size: 14.5px; border: 1.5px dashed var(--line-2); border-radius: 7px; padding: 18px; }
.u13x-empty p { margin: 0; }
.u13x-empty-t { font-family: var(--font-serif); font-weight: 600; font-size: 19px; color: var(--ink); margin-bottom: 6px !important; }
.u13x-vh { margin: 0 0 12px; }
.u13x-vn { font-size: 13px; letter-spacing: 0.04em; color: var(--safelight); font-variant-numeric: tabular-nums; }
.u13x-vt { font-family: var(--font-serif); font-weight: 600; font-size: 18px; line-height: 1.45; margin: 2px 0 2px; color: var(--ink); }
.u13x-vm { font-size: 13.5px; color: var(--muted); margin: 0; }
.u13x-pair { display: grid; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); gap: 10px; align-items: center; }
.u13x-arrow svg { width: 30px; height: 30px; display: block; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.u13x-fig { margin: 0; min-width: 0; align-self: start; }
.u13x-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #111; }
.u13x-frame picture, .u13x-frame img { display: block; width: 100%; height: 100%; }
.u13x-frame img { object-fit: cover; }
.u13x-frame.is-same img { opacity: 0.55; filter: grayscale(0.3); }
.u13x-frame.is-same::after { content: ''; position: absolute; inset: 0; border: 2px dashed rgba(255, 255, 255, 0.7); border-radius: 6px; pointer-events: none; }
.u13x-same { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px; background: rgba(0, 0, 0, 0.66); color: #f3efe6; font-size: 12.5px; line-height: 1.45; }
.u13x-badge { position: absolute; left: 8px; top: 8px; padding: 2px 9px 2px 8px; border-radius: 99px; font-size: 13px; font-weight: 700; line-height: 1.5; color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }
.u13x-badge.bad { background: var(--u13x-bad); }
.u13x-badge.bad::before { content: '✕ '; }
.u13x-badge.ok { background: var(--u13x-ok); }
.u13x-badge.ok::before { content: '✓ '; }
.u13x-cover { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; color: var(--muted); font-size: 13.5px;
  background: repeating-linear-gradient(45deg, var(--paper-2) 0 10px, color-mix(in srgb, var(--paper-2) 70%, var(--line)) 10px 20px); border: 1.5px dashed var(--line-2); border-radius: 6px; }
.u13x-cover b { font-family: var(--font-serif); font-size: 44px; line-height: 1; color: var(--ink-2); }
.u13x-cover.is-lifting { animation: u13x-lift 0.9s cubic-bezier(0.6, 0, 0.3, 1) 0.15s both; }
.u13x-cover.is-lifting span { display: none; }
@keyframes u13x-lift { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }
.u13x-fig figcaption { font-size: 14px; line-height: 1.45; margin-top: 6px; color: var(--ink); }
.u13x-ab { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; margin-right: 8px; }
.u13x-q { font-size: 15px; font-weight: 600; margin: 14px 0 8px; }
.u13x-guess { display: flex; flex-wrap: wrap; gap: 8px; }
.u13x-guess .lk-btn { min-height: 42px; font-size: 14.5px; }
.u13x-verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 14px 0 4px; font-size: 16px; }
.u13x-verdict b { font-weight: 700; }
.u13x-verdict-r { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.u13x-chip { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 3px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 13.5px; color: var(--ink); background: var(--paper); }
.u13x-chip .u13x-ico { width: 22px; height: 22px; }
.u13x-chip.x::after { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; background: var(--u13x-bad); }
.u13x-chip.hot { border-color: var(--u13x-hot); background: color-mix(in srgb, var(--u13x-hot) 14%, var(--card)); font-weight: 700; }
.u13x-res { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); margin: 4px 0 0; }
.u13x-guessed { color: var(--ink); font-weight: 600; }
.u13x-fix { margin: 10px 0 0; padding: 9px 12px; border-left: 3px solid var(--u13x-ok); background: color-mix(in srgb, var(--u13x-ok) 9%, var(--card)); font-size: 14px; line-height: 1.65; border-radius: 0 5px 5px 0; }
.u13x-log { display: grid; gap: 3px; margin: 0 0 12px; padding: 10px 12px 11px; border-radius: 6px; background: #16181b; color: #d9d5cb; overflow: hidden; }
.u13x-log code { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: none; padding: 0; color: #e8c25a; }
.u13x-log-h { font-size: 12.5px; color: #9f9a90; margin-bottom: 2px; }
.u13x-log .u13x-log-more { color: #9f9a90; }
.u13x-log.is-new code { animation: u13x-type 0.5s ease-out both; }
.u13x-log.is-new code:nth-of-type(2) { animation-delay: 0.12s; }
.u13x-log.is-new code:nth-of-type(3) { animation-delay: 0.24s; }
.u13x-log.is-new code:nth-of-type(4) { animation-delay: 0.36s; }
@keyframes u13x-type { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- 窄屏 */
@media (max-width: 760px) {
  .u13x-top { grid-template-columns: 1fr; }
  .u13x-suspects { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .u13x-sus { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 8px 2px 7px; gap: 3px; }
  .u13x-sus-t small { display: none; }
  .u13x-sus-t b { font-size: 13.5px; }
  .u13x-sus-tag { font-size: 10.5px; white-space: normal; line-height: 1.25; }
  .u13x-strike { grid-column: 1; grid-row: 1 / 3; top: 18px; left: 4px; right: 4px; }
  .u13x-steps { grid-template-columns: 1fr; gap: 6px; }
  .u13x-step { grid-template-columns: 4.6em minmax(0, 1fr) auto; align-items: baseline; column-gap: 8px; padding: 8px 11px; }
  .u13x-step-t { font-size: 14.5px; }
  .u13x-step-k { display: none; }
  .u13x-step-c { display: none; }
  .u13x-step-mark { margin: 0; font-size: 12px; white-space: nowrap; }
  .u13x-view { padding: 12px 12px 14px; }
  .u13x-pair { grid-template-columns: 1fr; gap: 6px; }
  .u13x-arrow { justify-self: center; transform: rotate(90deg); }
  .u13x-arrow svg { width: 24px; height: 24px; }
  .u13x-ring-t { font-size: 12.5px; padding: 2px 8px; }
  .u13x-clue { font-size: 11.5px; }
}

/* 截图、成片、电子墨水、减少动态：不放动画，直接停在结果上 */
:root[data-lk-shot] .u13x *, :root[data-lk-eink] .u13x * { animation: none !important; transition: none !important; }
:root[data-lk-shot] .u13x-cover.is-lifting, :root[data-lk-eink] .u13x-cover.is-lifting { display: none; }
@media (prefers-reduced-motion: reduce) {
  .u13x * { animation: none !important; transition: none !important; }
  .u13x-cover.is-lifting { display: none; }
}
