/* ================= 专项监测 · 体检中心 =================
 * 与系统一致的浅色主题；只用 1 个主色 + 3 个语义色，靠留白与字阶建立层次。
 */
.hc { display: flex; flex-direction: column; gap: 14px; }

/* ---------------- 结论条 ---------------- */
.hc-hero {
  display: flex; align-items: stretch; gap: 20px;
  background: #fff; border-radius: var(--radius); padding: 22px 24px;
  box-shadow: var(--shadow); border: 1px solid #eef2f7;
}
.hc-hero-l { display: flex; align-items: center; gap: 22px; flex: 1; min-width: 0; }

.hc-ring {
  --deg: 340deg; --c: var(--brand);
  width: 104px; height: 104px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--c) 0 var(--deg), #eef2f7 var(--deg) 360deg);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hc-ring::after {
  content: ''; position: absolute; inset: 8px; border-radius: 50%; background: #fff;
}
.hc-ring-in { position: relative; z-index: 1; text-align: center; line-height: 1.1; }
.hc-ring-in b { display: block; font-size: 27px; font-weight: 700; letter-spacing: -.5px; color: var(--ink); }
.hc-ring-in span { font-size: 10.5px; color: var(--ink-3); }

.hc-hero-m { min-width: 0; }
.hc-tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600;
  padding: 3px 9px; border-radius: 20px; margin-bottom: 7px;
}
.hc-tag i { width: 6px; height: 6px; border-radius: 50%; }
.hc-hero-h {
  font-size: 18.5px; font-weight: 600; color: var(--ink); line-height: 1.4;
  letter-spacing: -.2px; margin-bottom: 6px;
}
.hc-hero-sub { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.hc-cap { display: inline-block; margin-right: 8px; color: var(--orange); font-weight: 500; }

.hc-hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  flex: 0 0 470px; border-left: 1px solid var(--line); padding-left: 18px;
}
.hc-stat { padding: 0 12px; border-right: 1px dashed #eef2f7; }
.hc-stat:last-child { border-right: none; }
.hc-stat-k { font-size: 11.5px; color: var(--ink-3); margin-bottom: 5px; white-space: nowrap; }
.hc-stat-v { font-size: 21px; font-weight: 650; letter-spacing: -.6px; line-height: 1.2; }
.hc-stat-v i { font-style: normal; font-size: 12px; font-weight: 400; color: var(--ink-3); margin-left: 1px; }
.hc-stat-s { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; white-space: nowrap; }

/* ---------------- 卡片布局 ---------------- */
.hc-g2 { display: grid; grid-template-columns: 1fr 1.28fr; gap: 14px; }
.hc-g3 { display: grid; grid-template-columns: minmax(300px, .78fr) 1.5fr; gap: 14px; align-items: start; }

.hc-card {
  background: #fff; border-radius: var(--radius); padding: 16px 18px 14px;
  box-shadow: var(--shadow); border: 1px solid #eef2f7; min-width: 0;
}
.hc-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.hc-hd b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.hc-hd span { display: block; font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.hc-chart { width: 100%; }

/* 环形图中心读数 */
.hc-pie-wrap { position: relative; }
.hc-pie-c {
  position: absolute; left: 36%; top: 50%; transform: translate(-50%, -50%);
  text-align: center; pointer-events: none; line-height: 1.15;
}
.hc-pie-c b { display: block; font-size: 19px; font-weight: 650; color: var(--ink); letter-spacing: -.5px; }
.hc-pie-c span { display: block; font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }

.hc-legend { display: flex; gap: 10px; flex-wrap: wrap; }
.hc-legend span { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--ink-2); }
.hc-legend i { width: 7px; height: 7px; border-radius: 2px; }

/* ---------------- 纵向体检带 ---------------- */
.hc-bridge { display: flex; gap: 6px; margin: 10px 0 2px; }
.hc-seg {
  position: relative; background: #f8fafd; border-radius: 8px; padding: 9px 10px 8px;
  border: 1px solid #eef2f7; overflow: hidden; min-width: 0; transition: background .15s;
}
.hc-seg:hover { background: #f2f7fd; }
.hc-seg-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.hc-seg-b { display: flex; align-items: baseline; gap: 6px; }
.hc-seg-b b { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.hc-seg-b span { font-size: 10px; color: var(--ink-3); }
.hc-seg-s { font-size: 16px; font-weight: 650; letter-spacing: -.3px; margin-top: 2px; }
.hc-seg-s small { font-size: 10px; font-weight: 400; margin-left: 1px; }

/* ---------------- AI 预警 ---------------- */
.hc-ai-badge {
  font-size: 11px; color: var(--ink-2); background: #f4f7fb;
  padding: 3px 9px; border-radius: 20px; white-space: nowrap;
}

.hc-ai-top {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(100deg, #f7fafd 0%, #f2f7fd 100%);
  border: 1px solid #e8eff8; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px;
}
.hc-ai-top.red { background: linear-gradient(100deg, #fef6f6 0%, #fdeeee 100%); border-color: #f8dcdc; }
.hc-ai-top.orange { background: linear-gradient(100deg, #fff9f4 0%, #fdefe6 100%); border-color: #f8e0cf; }
.hc-ai-top.yellow { background: linear-gradient(100deg, #fffdf5 0%, #fef7e6 100%); border-color: #f7ecd2; }
.hc-ai-lv {
  font-size: 11.5px; font-weight: 600; padding: 5px 10px; border-radius: 8px; white-space: nowrap;
}
.hc-ai-tx { flex: 1; min-width: 0; }
.hc-ai-t { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.hc-ai-d { font-size: 11.5px; color: var(--ink-2); line-height: 1.5; }
.hc-ai-d b { color: var(--ink); font-weight: 600; }

.hc-push {
  flex-shrink: 0; border: none; cursor: pointer; font-family: inherit;
  background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 500;
  padding: 9px 17px; border-radius: 9px; display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 3px 10px rgba(22, 104, 220, .26); transition: all .15s;
}
.hc-push:hover { background: var(--brand-2); transform: translateY(-1px); }
.hc-push:disabled { opacity: .7; cursor: default; transform: none; }

/* 三通道 */
.hc-chs { display: flex; flex-direction: column; gap: 7px; }
.hc-ch {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px;
  border: 1px solid #eef2f7; border-radius: 10px; background: #fcfdff; transition: all .15s;
}
.hc-ch:hover { border-color: #dde8f6; background: #fff; }
.hc-ch-ic {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
}
.hc-ch-ic svg { width: 17px; height: 17px; }
.hc-ch-ic.warn { background: #fef3e2; color: #b45309; }
.hc-ch-ic.off { background: #f1f4f8; color: var(--ink-3); }
.hc-ch-m { flex: 1; min-width: 0; }
.hc-ch-t { display: flex; align-items: center; gap: 7px; }
.hc-ch-t b { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.hc-ch-st { font-size: 10px; padding: 1px 6px; border-radius: 4px; background: #eef2f7; color: var(--ink-2); }
.hc-ch-st.ready { background: var(--green-bg); color: var(--green); }
.hc-ch-st.warn { background: var(--yellow-bg); color: var(--yellow); }
.hc-ch-st.off { background: #f1f4f8; color: var(--ink-3); }
.hc-ch-t em { font-style: normal; font-size: 10px; color: var(--orange); }
.hc-ch-n { font-size: 10.5px; color: var(--ink-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-ch-a { display: flex; gap: 6px; flex-shrink: 0; }

.hc-mini {
  border: 1px solid #dfe8f4; background: #fff; color: var(--ink-2);
  font-size: 11px; font-family: inherit; padding: 5px 10px; border-radius: 7px; cursor: pointer;
  transition: all .15s;
}
.hc-mini:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

/* 推送结果 */
.hc-res { margin-top: 10px; border-radius: 9px; padding: 9px 12px; font-size: 11.5px; }
.hc-res.ok { background: var(--green-bg); color: #15803d; }
.hc-res.no { background: var(--red-bg); color: #b91c1c; }
.hc-res-t { font-weight: 600; margin-bottom: 4px; }
.hc-res-b { display: flex; flex-wrap: wrap; gap: 10px; }
.hc-rd { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; opacity: .92; }
.hc-rd i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* 推送日志 */
.hc-logs { margin-top: 12px; border-top: 1px dashed #eef2f7; padding-top: 9px; }
.hc-logs-h { font-size: 10.5px; color: var(--ink-3); margin-bottom: 6px; }
.hc-log-i { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 11.5px; }
.hc-log-lv { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.hc-log-t { flex: 1; min-width: 0; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-log-d { display: flex; gap: 3px; }
.hc-log-d i { width: 5px; height: 5px; border-radius: 50%; background: #d7e0ec; }
.hc-log-d i.ok { background: #4ade80; }
.hc-log-d i.no { background: #f87171; }
.hc-log-x { font-size: 10px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hc-empty { font-size: 11.5px; color: var(--ink-3); padding: 8px 0; }

/* ---------------- 状态占位 ---------------- */
.hc-state {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 48px 20px; color: var(--ink-2); font-size: 13px; text-align: center;
}
.hc-state b { font-size: 14.5px; color: var(--ink); }
.hc-spin {
  width: 26px; height: 26px; border-radius: 50%; margin-bottom: 4px;
  border: 2.5px solid #e4ecf6; border-top-color: var(--brand);
  animation: hcspin .8s linear infinite;
}
.hc-spin.sm { width: 12px; height: 12px; border-width: 2px; margin: 0; }
@keyframes hcspin { to { transform: rotate(360deg); } }

.hc-btn {
  border: none; background: var(--brand); color: #fff; font-family: inherit;
  font-size: 12.5px; padding: 8px 16px; border-radius: 8px; cursor: pointer;
}
.hc-btn.ghost { background: #f4f7fb; color: var(--ink-2); }
.hc-btn:hover { filter: brightness(1.05); }

/* ================= 右下角弹窗 ================= */
.hc-toast-wrap {
  position: fixed; right: 22px; bottom: 22px; z-index: 9000;
  display: flex; flex-direction: column-reverse; gap: 10px; pointer-events: none;
}
.hc-toast {
  width: 330px; background: #fff; border-radius: 13px; padding: 12px 14px 11px;
  box-shadow: 0 12px 34px rgba(19, 43, 74, .16), 0 2px 6px rgba(19, 43, 74, .06);
  border: 1px solid #eaeff6; border-left: 3px solid var(--yellow-solid);
  pointer-events: auto; opacity: 0; transform: translateY(14px) scale(.98);
  transition: all .28s cubic-bezier(.22, .8, .34, 1);
}
.hc-toast.in { opacity: 1; transform: none; }
.hc-toast.lv-red { border-left-color: var(--red-solid); }
.hc-toast.lv-orange { border-left-color: var(--orange-solid); }
.hc-toast.lv-yellow { border-left-color: var(--yellow-solid); }
.hc-toast.lv-normal { border-left-color: var(--green); }

.hc-toast-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.hc-toast-lv {
  font-style: normal; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 4px;
  background: var(--yellow-bg); color: var(--yellow);
}
.hc-toast.lv-red .hc-toast-lv { background: var(--red-bg); color: var(--red); }
.hc-toast.lv-orange .hc-toast-lv { background: var(--orange-bg); color: var(--orange); }
.hc-toast.lv-normal .hc-toast-lv { background: var(--green-bg); color: var(--green); }
.hc-toast-x { cursor: pointer; color: #b9c5d4; display: flex; }
.hc-toast-x svg { width: 13px; height: 13px; }
.hc-toast-x:hover { color: var(--ink-2); }
.hc-toast-t { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.45; margin-bottom: 3px; }
.hc-toast-b { font-size: 11.5px; color: var(--ink-2); line-height: 1.55; }
.hc-toast-f {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 8px; padding-top: 7px; border-top: 1px dashed #eef2f7;
}
.hc-toast-p { font-size: 10.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-toast-go {
  display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0;
  font-size: 11.5px; color: var(--brand); cursor: pointer; font-weight: 500;
}
.hc-toast-go svg { width: 12px; height: 12px; }
.hc-toast-go:hover { text-decoration: underline; }

/* ================= 移动端弹窗 ================= */
.hc-mob { position: fixed; inset: 0; z-index: 9100; opacity: 0; transition: opacity .25s; }
.hc-mob.in { opacity: 1; }
.hc-mob-bg { position: absolute; inset: 0; background: rgba(12, 28, 50, .42); backdrop-filter: blur(2px); }
.hc-mob-stage {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
}
.hc-mob-stage.real { inset: 0; transform: none; left: 0; top: 0; width: 100%; height: 100%; display: block; }

.hc-mob-phone {
  width: 300px; height: 610px; border-radius: 34px; background: #16232f;
  padding: 9px; box-shadow: 0 24px 60px rgba(9, 22, 40, .4); position: relative;
}
.hc-mob-notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 20px; background: #16232f; border-radius: 0 0 12px 12px; z-index: 3;
}
.hc-mob-screen {
  width: 100%; height: 100%; border-radius: 26px; background: #eef2f7;
  position: relative; overflow: hidden;
}

.hc-mob-tip {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: -26px;
  white-space: nowrap; font-size: 11px; color: #dbe6f3; z-index: 2;
}
.hc-mob-stage.real .hc-mob-tip { display: none; }

/* 手机屏内的模拟消息列表（仅预览用，衬托弹窗层级） */
.hc-mob-nav {
  padding: 44px 0 10px; text-align: center; font-size: 13px; font-weight: 600;
  color: #2c3e50; letter-spacing: .3px;
}
.hc-mob-msg {
  margin: 0 12px 8px; background: #fff; border-radius: 10px; padding: 9px 11px;
  box-shadow: 0 1px 2px rgba(23, 43, 77, .06);
}
.hc-mob-msg.dim { opacity: .72; }
.hc-mob-msg-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.hc-mob-msg-h b { font-size: 11.5px; color: #1c2b3a; font-weight: 600; }
.hc-mob-msg-h span { font-size: 9.5px; color: #a8b6c6; }
.hc-mob-msg p {
  font-size: 10.5px; color: #5a6b7f; line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

.hc-mob-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; background: #fff;
  border-radius: 20px 20px 0 0; padding: 9px 16px 16px;
  box-shadow: 0 -10px 30px rgba(19, 43, 74, .16);
  animation: hcSheet .32s cubic-bezier(.22, .8, .34, 1);
}
.hc-mob-stage.real .hc-mob-sheet { border-radius: 20px 20px 0 0; padding-bottom: 26px; }
@keyframes hcSheet { from { transform: translateY(100%); } to { transform: none; } }

.hc-mob-grab { width: 34px; height: 4px; border-radius: 3px; background: #e3eaf3; margin: 0 auto 11px; }
.hc-mob-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.hc-mob-lv { font-style: normal; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: var(--yellow-bg); color: var(--yellow); }
.hc-mob-sheet.lv-red .hc-mob-lv { background: var(--red-bg); color: var(--red); }
.hc-mob-sheet.lv-orange .hc-mob-lv { background: var(--orange-bg); color: var(--orange); }
.hc-mob-hd span { font-size: 10px; color: var(--ink-3); }
.hc-mob-t { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.45; margin-bottom: 5px; }
.hc-mob-b { font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.hc-mob-v { font-size: 10.5px; color: var(--ink-3); margin-top: 6px; }
.hc-mob-acts { display: flex; gap: 8px; margin-top: 13px; }
.hc-mob-acts button {
  flex: 1; border: none; font-family: inherit; font-size: 12.5px; padding: 10px 0;
  border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 3px;
}
.hc-mob-no { background: #f2f5fa; color: var(--ink-2); }
.hc-mob-yes { background: var(--brand); color: #fff; font-weight: 500; box-shadow: 0 4px 12px rgba(22, 104, 220, .26); flex: 1.6; }
.hc-mob-yes svg { width: 13px; height: 13px; }
.hc-mob-note { font-size: 10px; color: var(--ink-3); text-align: center; margin-top: 9px; line-height: 1.5; }
.hc-mob-x {
  position: absolute; right: 22px; top: 22px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .9); color: var(--ink-2); display: flex; align-items: center;
  justify-content: center; cursor: pointer; z-index: 5;
}
.hc-mob-x svg { width: 14px; height: 14px; }

/* ================= 微信配置面板 ================= */
.hc-cfg { position: fixed; inset: 0; z-index: 9200; opacity: 0; transition: opacity .22s; }
.hc-cfg.in { opacity: 1; }
.hc-cfg-bg { position: absolute; inset: 0; background: rgba(12, 28, 50, .4); }
.hc-cfg-p {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 440px; max-width: calc(100vw - 32px); background: #fff; border-radius: 16px;
  padding: 20px 22px 18px; box-shadow: 0 24px 60px rgba(9, 22, 40, .3);
}
.hc-cfg-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.hc-cfg-h b { font-size: 14.5px; color: var(--ink); }
.hc-cfg-x { cursor: pointer; color: #b9c5d4; display: flex; }
.hc-cfg-x svg { width: 15px; height: 15px; }
.hc-cfg-d { font-size: 11px; color: var(--ink-3); line-height: 1.65; margin-bottom: 14px; }
.hc-fld { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.hc-fld span { flex: 0 0 78px; font-size: 12px; color: var(--ink-2); }
.hc-fld input {
  flex: 1; height: 34px; border: 1px solid #e2e9f2; border-radius: 8px; padding: 0 10px;
  font-family: inherit; font-size: 12px; color: var(--ink); background: #fbfdff; outline: none;
}
.hc-fld input:focus { border-color: var(--brand); background: #fff; }
.hc-fld input[readonly] { color: var(--ink-3); background: #f4f7fb; }
.hc-cfg-f { display: flex; justify-content: flex-end; gap: 9px; margin-top: 14px; }

/* ================= 响应式 ================= */
@media (max-width: 1440px) {
  .hc-hero-stats { flex: 0 0 400px; }
  .hc-hero { padding: 18px 20px; gap: 16px; }
  .hc-g3 { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
  .hc-hero { flex-direction: column; }
  .hc-hero-stats {
    flex: none; border-left: none; border-top: 1px solid var(--line);
    padding-left: 0; padding-top: 14px; width: 100%;
  }
  .hc-g2 { grid-template-columns: 1fr; }
  .hc-bridge { flex-wrap: wrap; }
  .hc-seg { min-width: 120px; }
}

@media (max-width: 720px) {
  .hc-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px 0; }
  .hc-stat { padding: 0 10px; }
  .hc-stat:nth-child(2) { border-right: none; }
  .hc-hero-l { gap: 14px; }
  .hc-ring { width: 84px; height: 84px; }
  .hc-ring-in b { font-size: 22px; }
  .hc-hero-h { font-size: 16px; }
  .hc-toast { width: calc(100vw - 32px); }
  .hc-toast-wrap { right: 16px; bottom: 16px; left: 16px; }
}
