/* 体检中心（2026-10-07）。顶栏、弹层、分段控件复用 ask.css；这里只有本页自己的布局。 */

body.page-health { background: var(--bg); }
.hc-top { position: sticky; top: 0; }
.hc-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px max(16px, env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.hc-card, .hc-summary {
  background: var(--card-bg);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.hc-loading { margin: 0; color: var(--text-secondary); }
.hc-sub { margin: 2px 0 0; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

.hc-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.hc-count { text-align: center; padding: 8px 4px; border-radius: 10px; background: var(--bg); }
.hc-count b { display: block; font-size: 24px; line-height: 1.2; font-variant-numeric: proportional-nums; }
.hc-count span { font-size: 13px; color: var(--text-secondary); }
.hc-count.is-error b { color: var(--danger); }
.hc-count.is-warn b { color: #C77700; }
:root[data-theme="dark"] .hc-count.is-warn b { color: #FFB340; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hc-count.is-warn b { color: #FFB340; } }
.hc-count.is-info b { color: var(--accent); }
.hc-summary-foot { margin: 8px 0 0; font-size: 13px; color: var(--text-secondary); }

.hc-links-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hc-links-head > div { flex: 1; min-width: 0; }
.hc-btn {
  flex: none;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--tag-bg);
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}
.hc-btn:active { opacity: 0.7; }
.hc-btn:disabled { opacity: 0.5; cursor: default; }
.hc-progress { height: 4px; margin-top: 10px; border-radius: 2px; background: var(--bg); overflow: hidden; }
.hc-progress[hidden] { display: none; }
.hc-progress-fill { height: 100%; width: 0; background: var(--accent); transition: width 0.3s; }

/* 三个选项一行排开（ask.css 的分段控件默认是两列，2026-10-07 宽屏下「已忽略」被挤到第二行） */
.hc-filter { margin: 4px 0 12px; grid-template-columns: repeat(3, 1fr); }

.hc-doc {
  background: var(--card-bg);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
}
.hc-doc-head {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: var(--fg);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.hc-doc-head:active { background: var(--tag-bg); }
.hc-doc-title { flex: 1; min-width: 0; }
.hc-doc-title strong { display: block; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.hc-doc-title span { display: block; font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.hc-badges { flex: none; display: flex; gap: 4px; }
.hc-badge { min-width: 24px; padding: 1px 7px; border-radius: 10px; font-size: 13px; font-weight: 600; text-align: center; }
.hc-badge.is-error { background: rgba(255, 59, 48, 0.12); color: var(--danger); }
.hc-badge.is-warn { background: rgba(255, 159, 10, 0.16); color: #B36B00; }
:root[data-theme="dark"] .hc-badge.is-warn { color: #FFB340; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hc-badge.is-warn { color: #FFB340; } }
.hc-badge.is-info { background: var(--tag-bg); color: var(--accent); }
.hc-badge.is-clean { background: rgba(52, 199, 89, 0.14); color: #1E8E3E; }
.hc-chev { flex: none; color: var(--text-secondary); font-size: 12px; transition: transform 0.25s; }
.hc-doc.is-open .hc-chev { transform: rotate(90deg); }

.hc-findings { list-style: none; margin: 0; padding: 0 14px 6px; }
.hc-findings[hidden] { display: none; }
.hc-finding { padding: 10px 0; border-top: 0.5px solid var(--border); }
.hc-f-title { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.hc-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; }
.hc-dot.is-error { background: var(--danger); }
.hc-dot.is-warn { background: #FF9F0A; }
.hc-dot.is-info { background: var(--accent); }
.hc-f-cat { font-size: 12px; color: var(--text-secondary); margin: 2px 0 0 16px; }
.hc-f-detail { margin: 4px 0 0 16px; font-size: 13px; color: var(--text-secondary); line-height: 1.5; overflow-wrap: anywhere; }
.hc-f-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0 10px; }
.hc-act {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  touch-action: manipulation;
}
.hc-act:active { opacity: 0.7; }
.hc-act.is-primary { background: var(--tag-bg); color: var(--accent); font-weight: 600; }
.hc-act.is-muted { color: var(--text-secondary); }
.hc-empty { padding: 24px 8px; text-align: center; color: var(--text-secondary); }

@media (hover: hover) {
  .hc-doc-head:hover { background: var(--tag-bg); }
  .hc-act:hover, .hc-btn:hover { filter: brightness(0.96); }
}

/* 修复预览 */
.hc-fix-sheet { max-height: min(90dvh, 100dvh - 24px); }
.hc-fix-actions { flex: none; padding-top: 10px; }
.hc-fix-actions .ask-primary-btn { width: 100%; }
.hc-fix-actions[hidden] { display: none; }
.hc-fix-summary { margin: 4px 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--tag-bg); font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.hc-fix-warn { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 159, 10, 0.16); font-size: 14px; line-height: 1.5; }
.hc-fix-status { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-size: 14px; color: var(--text-secondary); }
.hc-diff { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.55; border-radius: 10px; overflow: hidden; border: 0.5px solid var(--border); }
.hc-diff .diff-line { padding: 1px 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.hc-diff .diff-add { background: rgba(52, 199, 89, 0.16); }
.hc-diff .diff-del { background: rgba(255, 59, 48, 0.14); text-decoration: line-through; text-decoration-color: rgba(255, 59, 48, 0.5); }
.hc-diff .diff-skip { padding: 2px 8px; color: var(--text-secondary); background: var(--bg); font-family: inherit; }

.hc-help p { font-size: 15px; line-height: 1.6; margin: 8px 0 12px; }

/* 联网核查（content-check-ui.js） */
.hc-doc-tools { padding: 8px 0 4px; }
.hc-section-btn {
  width: 100%;
  min-height: 44px;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: var(--fg);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  overflow-wrap: anywhere;
}
.hc-section-btn:active { background: var(--tag-bg); }
/* 太长的节：只核查前面一部分，提前说（2026-10-22） */
.hc-section-long { display: block; margin-top: 2px; font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
.cc-scope-note { margin: 6px 0; padding: 8px 10px; border-radius: 8px; background: var(--tag-bg); font-size: 13px; line-height: 1.5; }
.hc-check-log { margin: 6px 0; padding-left: 18px; font-size: 13px; color: var(--text-secondary); line-height: 1.5; overflow-wrap: anywhere; }
.cc-link { color: var(--accent); overflow-wrap: anywhere; }

/* ① 开始前：要核查的是什么 / 它会做什么 / 你要做什么 */
.cc-target { margin: 4px 0 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 0.5px solid var(--border); }
.cc-target-label { margin: 0; font-size: 12px; color: var(--text-secondary); }
.cc-target-title { margin: 2px 0 6px; font-size: 16px; font-weight: 600; line-height: 1.4; }
.cc-target-line { display: block; padding-left: 10px; border-left: 3px solid var(--border); font-size: 14px; line-height: 1.55; }
.cc-target-detail { margin: 6px 0 0; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.cc-how { margin: 0 0 10px; padding: 12px 14px; border-radius: 12px; background: var(--tag-bg); }
.cc-how-title { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.cc-how-title + .cc-how-list, .cc-how-title + .cc-how-text { margin-top: 0; }
.cc-how-list { margin: 0 0 10px; padding-left: 20px; font-size: 14px; line-height: 1.55; }
.cc-how-list li + li { margin-top: 2px; }
.cc-how-text { margin: 0; font-size: 14px; line-height: 1.55; }

/* ② 进行中：三步进度 */
.cc-scope { margin: 6px 0 4px; font-size: 15px; font-weight: 600; }
.cc-steps { display: flex; flex-direction: column; gap: 2px; margin: 8px 0; padding: 0; list-style: none; counter-reset: cc; }
.cc-step { position: relative; display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; color: var(--text-secondary); counter-increment: cc; }
.cc-step::before {
  content: counter(cc);
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}
.cc-step.is-current { color: var(--fg); font-weight: 600; }
.cc-step.is-current::before { border-color: var(--accent); color: var(--accent); animation: cc-pulse 1.2s ease-in-out infinite; }
.cc-step.is-done { color: var(--fg); }
.cc-step.is-done::before { content: '✓'; border-color: #34C759; background: #34C759; color: #fff; }
@keyframes cc-pulse { 50% { box-shadow: 0 0 0 5px rgba(0, 122, 255, 0.16); } }
@media (prefers-reduced-motion: reduce) { .cc-step.is-current::before { animation: none; } }
.cc-meta { margin: 4px 0 8px; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.cc-process { margin: 4px 0 8px; font-size: 13px; }
.cc-process > summary { min-height: 40px; display: flex; align-items: center; color: var(--accent); cursor: pointer; }

/* ③ 结果：一句话结论 + 你需要做的 + 按钮 */
.cc-verdict { margin: 4px 0 10px; padding: 12px 14px; border-radius: 12px; background: var(--tag-bg); }
.cc-verdict.is-ok { background: rgba(52, 199, 89, 0.14); }
.cc-verdict.is-warn { background: rgba(255, 159, 10, 0.16); }
.cc-verdict.is-bad { background: rgba(255, 59, 48, 0.1); }
.cc-verdict-title { margin: 0 0 6px; font-size: 17px; font-weight: 600; line-height: 1.4; }
.cc-verdict-todo { margin: 0; font-size: 14px; line-height: 1.6; }
.cc-verdict-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cc-verdict-actions .hc-act { background: var(--card-bg); }
.cc-ai-summary { margin: 0 0 4px; font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
.cc-group { margin-top: 14px; }
.cc-group-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.cc-group-title small { font-size: 12px; font-weight: 400; color: var(--text-secondary); }

.hc-item { margin: 8px 0; padding: 12px; border-radius: 12px; background: var(--bg); border: 0.5px solid var(--border); }
.hc-item.is-applicable { border-color: var(--accent); }
.hc-item.is-picked { box-shadow: 0 0 0 1.5px var(--accent) inset; background: var(--tag-bg); }
.hc-item.is-rejected, .hc-item.is-unverifiable { opacity: 0.9; }
/* 整行都能点的勾选：原来只有右上角一个小方框，手机上很难点中 */
.cc-pick { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: -6px 0 4px; font-size: 15px; font-weight: 600; color: var(--accent); cursor: pointer; }
.cc-pick input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.hc-item-row { display: block; margin: 6px 0; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.hc-item-label { display: block; font-size: 12px; color: var(--text-secondary); }
.hc-item-text { display: block; white-space: pre-wrap; }
.hc-item-row.is-old .hc-item-text { text-decoration: line-through; text-decoration-color: rgba(255, 59, 48, 0.55); color: var(--text-secondary); }
.hc-item-row.is-new .hc-item-text { background: rgba(52, 199, 89, 0.12); border-radius: 6px; padding: 2px 4px; }
.hc-item-row.is-quote .hc-item-text { border-left: 3px solid var(--accent); padding-left: 8px; }
.hc-item-src, .hc-item-why { margin: 6px 0 0; font-size: 13px; color: var(--text-secondary); line-height: 1.5; overflow-wrap: anywhere; }
.hc-item-src a { color: var(--accent); }
.hc-item-problem, .hc-item-note { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.hc-item-problem { background: rgba(255, 59, 48, 0.08); color: var(--danger); }
.hc-item-note { background: rgba(255, 159, 10, 0.12); }
.hc-item-problem span, .hc-item-note span { display: block; }

/* 关闭确认横幅（取消/点遮罩/往下拉时，有「关掉就白费」的东西才出现） */
.hc-discard { flex: none; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 159, 10, 0.18); font-size: 14px; line-height: 1.5; }
.hc-discard[hidden] { display: none; }
.hc-discard p { margin: 0 0 8px; }
.hc-discard-actions { display: flex; gap: 8px; }
.hc-discard-actions .hc-act { flex: 1; justify-content: center; min-height: 40px; background: var(--card-bg); font-weight: 600; }
.hc-act.is-danger { color: var(--danger); }

/* 链接核查：三个能点的数字 + 结果清单 */
.hc-link-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.hc-link-chips[hidden] { display: none; }
.hc-link-chip {
  min-height: 56px;
  padding: 6px 4px;
  border: 0;
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
}
.hc-link-chip:active { opacity: 0.7; }
.hc-link-chip b { display: block; font-size: 22px; line-height: 1.2; }
.hc-link-chip span { font-size: 13px; color: var(--text-secondary); }
.hc-link-chip.is-dead b { color: var(--danger); }
.hc-link-chip.is-unknown b { color: #C77700; }
.hc-link-chip.is-ok b { color: #1E8E3E; }
:root[data-theme="dark"] .hc-link-chip.is-unknown b { color: #FFB340; }
:root[data-theme="dark"] .hc-link-chip.is-ok b { color: #30D158; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hc-link-chip.is-unknown b { color: #FFB340; }
  :root:not([data-theme="light"]) .hc-link-chip.is-ok b { color: #30D158; }
}
.hc-links-seg { grid-template-columns: repeat(3, 1fr); }
.hc-links-scope { margin: 6px 0 0; font-size: 13px; color: var(--text-secondary); }
.hc-links-scope .ask-text-btn { font-size: 13px; padding: 0; min-height: 32px; }
.hc-link-group { margin: 6px 0 14px; }
.hc-link-doc { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.hc-link-row { padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; background: var(--bg); }
.hc-link-row.is-ignored { opacity: 0.6; }
.hc-link-url { display: block; font-size: 15px; color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
.hc-link-ctx { margin: 4px 0 0; font-size: 13px; line-height: 1.5; }
.hc-link-reason { margin: 2px 0 0; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.hc-link-row .hc-f-actions { margin: 8px 0 0; }
.hc-link-row .hc-act { background: var(--card-bg); }

/* 上次的联网核查没跑完：接着核查 / 不要了（health.js offerResume，2026-10-22） */
.hc-resume { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--tag-bg); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.hc-resume p { margin: 0 0 8px; }
.hc-resume-actions { display: flex; flex-wrap: wrap; gap: 8px; }
