/* ============================================================
 * 脉知 · 数据运营后台 样式 (console.css)
 * 命名空间 .c- ，避免与旧后台 style.css / 大屏 screen.css 冲突
 * 基调：深侧栏（承接大屏墨绿）+ 浅内容（正常后台可读性）
 * ============================================================ */

:root {
  --c-side: #0B2B26;
  --c-side-2: #0F3A33;
  --c-bg: #F4F6F5;
  --c-card: #FFFFFF;
  --c-line: rgba(16, 40, 35, 0.09);
  --c-line-2: rgba(16, 40, 35, 0.14);
  --c-ink: #1F2B28;
  --c-ink-2: #5A6B66;
  --c-ink-3: #8A9A95;
  --c-brand: #0F8C76;
  --c-brand-d: #0B6E5C;
  --c-brand-l: #2FD3B4;
  --c-brand-bg: #E7F4F0;
  --c-gold: #C58F00;
  --c-gold-bg: #FBF3DF;
  --c-red: #D93B3B;
  --c-red-bg: #FBEAEA;
  --c-blue: #2A6FB5;
  --c-blue-bg: #E9F1FA;
  --c-num: ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --c-shadow: 0 1px 2px rgba(16, 40, 35, 0.04), 0 4px 14px rgba(16, 40, 35, 0.04);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ============================================================
 * 布局骨架
 * ============================================================ */
.c-app { display: flex; min-height: 100vh; }

.c-side {
  width: 224px; flex: none;
  background: var(--c-side);
  color: #CFE3DD;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
.c-side::-webkit-scrollbar { width: 0; }

.c-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.c-logo-ic {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: linear-gradient(140deg, #14A98E, #0B6E5C);
  display: flex; align-items: center; justify-content: center;
}
.c-logo-t { font-size: 14px; color: #fff; letter-spacing: 0.5px; font-weight: 500; }
.c-logo-s { font-size: 10px; color: #6E9A90; margin-top: 2px; letter-spacing: 0.3px; }

.c-nav { padding: 12px 10px; flex: 1; }
.c-nav-group { margin-bottom: 14px; }
.c-nav-gt {
  font-size: 10.5px; color: #5C8880; letter-spacing: 1.2px;
  padding: 6px 10px 8px; text-transform: uppercase;
}
.c-nav-item {
  display: flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 10px; border-radius: 7px;
  color: #BFD8D2; font-size: 13px; cursor: pointer;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.c-nav-item:hover { background: rgba(255, 255, 255, 0.05); color: #E8F5F1; }
.c-nav-item.on { background: var(--c-side-2); color: #fff; font-weight: 500; }
.c-nav-item.on::before {
  content: ''; position: absolute; left: -10px; top: 11px; bottom: 11px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--c-brand-l);
}
.c-nav-item svg { flex: none; opacity: 0.85; }
.c-nav-item.on svg { opacity: 1; }
.c-nav-badge {
  margin-left: auto; font-size: 10px; font-family: var(--c-num);
  background: rgba(47, 211, 180, 0.18); color: #6FE3CB;
  padding: 1px 6px; border-radius: 8px;
}

.c-side-foot {
  padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 10.5px; color: #5C8880; line-height: 1.7;
}
.c-side-foot a { color: #6FE3CB; }

/* 主区 */
.c-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.c-top {
  height: 56px; flex: none; background: #fff;
  border-bottom: 1px solid var(--c-line);
  display: flex; align-items: center; gap: 14px;
  padding: 0 22px; position: sticky; top: 0; z-index: 30;
}
.c-crumb { font-size: 12.5px; color: var(--c-ink-3); display: flex; align-items: center; gap: 6px; }
.c-crumb b { color: var(--c-ink); font-weight: 500; }
.c-top-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.c-top-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 11px; border-radius: 6px;
  border: 1px solid var(--c-line-2); background: #fff;
  color: var(--c-ink-2); font-size: 12px; cursor: pointer;
}
.c-top-btn:hover { border-color: var(--c-brand); color: var(--c-brand); }

.c-user { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--c-ink-2); }
.c-ava {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: linear-gradient(140deg, #14A98E, #0B6E5C);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}

.c-body { padding: 20px 22px 40px; flex: 1; }

/* ============================================================
 * 页头
 * ============================================================ */
.c-pagehead {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 16px;
}
.c-h1 { font-size: 19px; font-weight: 500; margin: 0; letter-spacing: 0.3px; }
.c-desc { font-size: 12px; color: var(--c-ink-3); margin-top: 5px; line-height: 1.6; }
.c-pagehead-r { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* 来源徽章：从大屏点穿进来时显示 */
.c-from {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 9px; border-radius: 13px;
  background: var(--c-brand-bg); color: var(--c-brand-d);
  font-size: 11.5px; border: 1px solid rgba(15, 140, 118, 0.18);
}
.c-from b { font-weight: 500; }
.c-from span { cursor: pointer; opacity: 0.55; }
.c-from span:hover { opacity: 1; }

/* ============================================================
 * 卡片 / 网格
 * ============================================================ */
.c-card {
  background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: 10px; box-shadow: var(--c-shadow);
  display: flex; flex-direction: column; min-width: 0;
}
.c-card-hd {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px 10px; flex: none;
}
.c-card-t { font-size: 13.5px; font-weight: 500; display: flex; align-items: center; gap: 7px; }
.c-card-t i { width: 3px; height: 13px; border-radius: 2px; background: var(--c-brand); display: block; }
.c-card-x { margin-left: auto; font-size: 11px; color: var(--c-ink-3); }
.c-card-bd { padding: 0 16px 14px; flex: 1; min-height: 0; }

.c-grid { display: grid; gap: 14px; }
.c-g2 { grid-template-columns: 1fr 1fr; }
.c-g3 { grid-template-columns: repeat(3, 1fr); }
.c-g4 { grid-template-columns: repeat(4, 1fr); }
.c-g-2-1 { grid-template-columns: 2fr 1fr; }
.c-g-1-2 { grid-template-columns: 1fr 2fr; }

/* ============================================================
 * KPI
 * ============================================================ */
.c-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.c-kpi {
  background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: 10px; padding: 14px 16px 10px;
  box-shadow: var(--c-shadow); cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
  position: relative; overflow: hidden;
}
.c-kpi:hover { border-color: rgba(15, 140, 118, 0.35); transform: translateY(-1px); }
.c-kpi-h { display: flex; align-items: center; gap: 7px; }
.c-kpi-lab { font-size: 12px; color: var(--c-ink-2); }
.c-kpi-tag {
  margin-left: auto; font-size: 10px; padding: 1px 5px; border-radius: 3px;
  background: var(--c-brand-bg); color: var(--c-brand-d);
}
.c-kpi-tag.derive { background: #F2F4F3; color: var(--c-ink-3); }
.c-kpi-v {
  white-space: nowrap;
  font-family: var(--c-num); font-size: 27px; font-weight: 500;
  letter-spacing: -0.5px; margin-top: 6px; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.c-kpi-v em { font-size: 12px; font-style: normal; color: var(--c-ink-3); margin-left: 4px; font-family: inherit; }
.c-kpi-foot { display: flex; align-items: flex-end; gap: 8px; margin-top: 6px; }
.c-kpi-sub { font-size: 11px; color: var(--c-ink-3); }
.c-kpi-delta { font-size: 11px; font-family: var(--c-num); }
.c-kpi-delta.up { color: var(--c-red); }
.c-kpi-delta.down { color: var(--c-brand); }
.c-kpi-spark { margin-top: 6px; }
.c-kpi-spark svg { width: 100%; height: 30px; }

/* ============================================================
 * 筛选条 / 表单控件
 * ============================================================ */
.c-filter {
  background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 12px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  box-shadow: var(--c-shadow);
}
.c-field { display: flex; align-items: center; gap: 6px; }
.c-field > label { font-size: 11.5px; color: var(--c-ink-3); white-space: nowrap; }

.c-input, .c-select {
  height: 32px; border: 1px solid var(--c-line-2); border-radius: 6px;
  padding: 0 10px; font-size: 12.5px; color: var(--c-ink);
  background: #fff; outline: none; font-family: inherit;
}
.c-input:focus, .c-select:focus { border-color: var(--c-brand); box-shadow: 0 0 0 3px rgba(15, 140, 118, 0.10); }
.c-input::placeholder { color: #A9B6B2; }
.c-select { cursor: pointer; padding-right: 26px; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238A9A95' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center;
}
.c-search { position: relative; }
.c-search .c-input { padding-left: 30px; width: 230px; }
.c-search svg { position: absolute; left: 9px; top: 9px; color: #A9B6B2; }

.c-btn {
  height: 32px; padding: 0 14px; border-radius: 6px; cursor: pointer;
  font-size: 12.5px; border: 1px solid var(--c-line-2); background: #fff;
  color: var(--c-ink-2); display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.15s;
}
.c-btn:hover { border-color: var(--c-brand); color: var(--c-brand); }
.c-btn.primary { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.c-btn.primary:hover { background: var(--c-brand-d); color: #fff; }
.c-btn.ghost { background: transparent; }
.c-btn.danger { color: var(--c-red); border-color: rgba(217, 59, 59, 0.3); }
.c-btn.danger:hover { background: var(--c-red-bg); }
.c-btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.c-btn.sm { height: 26px; padding: 0 10px; font-size: 11.5px; }

/* 视图切换 */
.c-tabs { display: inline-flex; background: #EFF2F1; border-radius: 7px; padding: 3px; gap: 2px; }
.c-tab {
  height: 26px; padding: 0 14px; border-radius: 5px; font-size: 12px;
  color: var(--c-ink-2); cursor: pointer; display: flex; align-items: center;
  border: none; background: none;
}
.c-tab.on { background: #fff; color: var(--c-brand-d); font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }

/* ============================================================
 * 表格
 * ============================================================ */
.c-tablewrap {
  background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: 10px; box-shadow: var(--c-shadow); overflow: hidden;
}
.c-table { width: 100%; border-collapse: collapse; }
.c-table th {
  text-align: left; font-size: 11.5px; font-weight: 400; color: var(--c-ink-3);
  padding: 11px 14px; background: #FAFBFA; border-bottom: 1px solid var(--c-line);
  white-space: nowrap;
}
.c-table td {
  padding: 12px 14px; border-bottom: 1px solid var(--c-line);
  font-size: 12.5px; color: var(--c-ink-2); vertical-align: middle;
}
.c-table tbody tr:last-child td { border-bottom: none; }
.c-table tbody tr:hover { background: #F8FBFA; }
.c-table tbody tr { cursor: pointer; }
.c-table .num { font-family: var(--c-num); font-variant-numeric: tabular-nums; color: var(--c-ink); white-space: nowrap; }
.c-table .strong { color: var(--c-ink); font-weight: 500; }
.c-table .muted { color: var(--c-ink-3); font-size: 11.5px; }
.c-table .right { text-align: right; }
.c-table .center { text-align: center; }

.c-link { color: var(--c-brand); cursor: pointer; font-size: 12px; }
.c-link:hover { text-decoration: underline; }

/* 标签 */
.c-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
  background: #F2F4F3; color: var(--c-ink-2); white-space: nowrap;
}
.c-tag.ok { background: var(--c-brand-bg); color: var(--c-brand-d); }
.c-tag.warn { background: var(--c-gold-bg); color: var(--c-gold); }
.c-tag.bad { background: var(--c-red-bg); color: var(--c-red); }
.c-tag.info { background: var(--c-blue-bg); color: var(--c-blue); }
.c-tag.dot::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* 健康分迷你条 */
.c-score { display: flex; align-items: center; gap: 7px; }
.c-score-bar { width: 52px; height: 5px; border-radius: 3px; background: rgba(15, 140, 118, 0.10); overflow: hidden; }
.c-score-bar i { display: block; height: 100%; border-radius: 3px; background: var(--c-brand); }
.c-score-bar i.mid { background: var(--c-gold); }
.c-score-bar i.low { background: var(--c-red); }

/* 分页 */
.c-pager {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-top: 1px solid var(--c-line);
  font-size: 12px; color: var(--c-ink-3); background: #fff;
}
.c-pager .pg { display: flex; gap: 4px; margin-left: auto; }
.c-pg-btn {
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: 5px;
  border: 1px solid var(--c-line-2); background: #fff; color: var(--c-ink-2);
  font-size: 12px; cursor: pointer; font-family: var(--c-num);
}
.c-pg-btn:hover:not([disabled]) { border-color: var(--c-brand); color: var(--c-brand); }
.c-pg-btn.on { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.c-pg-btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* 空态 */
.c-empty { padding: 48px 20px; text-align: center; color: var(--c-ink-3); font-size: 12.5px; }

/* ============================================================
 * 详情页
 * ============================================================ */
.c-detail-hd {
  background: var(--c-card); border: 1px solid var(--c-line); border-radius: 10px;
  padding: 18px 20px; display: flex; gap: 16px; align-items: center;
  box-shadow: var(--c-shadow); margin-bottom: 14px;
}
.c-detail-ava {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: linear-gradient(140deg, #14A98E, #0B6E5C);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.c-detail-name { font-size: 17px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.c-detail-meta { font-size: 12px; color: var(--c-ink-3); margin-top: 5px; display: flex; gap: 14px; flex-wrap: wrap; }
.c-detail-r { margin-left: auto; display: flex; gap: 22px; text-align: right; }
.c-detail-stat .k { font-size: 11px; color: var(--c-ink-3); }
.c-detail-stat .v { font-family: var(--c-num); font-size: 22px; font-weight: 500; margin-top: 3px; }
.c-detail-stat .v em { font-size: 11px; font-style: normal; color: var(--c-ink-3); }

/* 指标格 */
.c-mgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.c-mcell {
  border: 1px solid var(--c-line); border-radius: 8px; padding: 11px 12px;
  background: #fff; position: relative;
}
.c-mcell.bad { border-color: rgba(217, 59, 59, 0.35); background: #FFFBFB; }
.c-mcell-k { font-size: 11.5px; color: var(--c-ink-3); }
.c-mcell-v { font-family: var(--c-num); font-size: 19px; font-weight: 500; margin-top: 4px; }
.c-mcell-v em { font-size: 11px; font-style: normal; color: var(--c-ink-3); margin-left: 3px; }
.c-mcell-r { font-size: 10.5px; color: var(--c-ink-3); margin-top: 3px; }
.c-mcell-flag {
  position: absolute; right: 9px; top: 9px; font-size: 10px;
  color: var(--c-red); background: var(--c-red-bg); padding: 1px 5px; border-radius: 3px;
}

/* ============================================================
 * 表单（配置下发）
 * ============================================================ */
.c-form-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0; border-bottom: 1px dashed var(--c-line);
}
.c-form-row:last-child { border-bottom: none; }
.c-form-label { width: 130px; flex: none; font-size: 12.5px; color: var(--c-ink); }
.c-form-ctl { flex: 1; display: flex; align-items: center; gap: 8px; }
.c-form-note { font-size: 11px; color: var(--c-ink-3); margin-left: auto; text-align: right; max-width: 200px; line-height: 1.5; }

.c-switch {
  width: 38px; height: 21px; border-radius: 11px; background: #D9DFDD;
  position: relative; cursor: pointer; transition: background 0.18s; flex: none;
}
.c-switch::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 17px; height: 17px; border-radius: 50%; background: #fff;
  transition: left 0.18s; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.c-switch.on { background: var(--c-brand); }
.c-switch.on::after { left: 19px; }

.c-num-in {
  width: 88px; height: 32px; border: 1px solid var(--c-line-2); border-radius: 6px;
  padding: 0 9px; font-family: var(--c-num); font-size: 13px; outline: none;
  text-align: right;
}
.c-num-in:focus { border-color: var(--c-brand); box-shadow: 0 0 0 3px rgba(15, 140, 118, 0.10); }
.c-num-in.err { border-color: var(--c-red); background: #FFF8F8; }
.c-unit { font-size: 11.5px; color: var(--c-ink-3); }
.c-range-hint { font-size: 11px; color: var(--c-ink-3); }
.c-range-hint.err { color: var(--c-red); }

.c-diff-add { background: #F2FBF8; }
.c-diff-old { color: var(--c-ink-3); text-decoration: line-through; font-family: var(--c-num); }
.c-diff-new { color: var(--c-brand-d); font-weight: 500; font-family: var(--c-num); }

/* 记录时间线 */
.c-tl { position: relative; padding-left: 18px; }
.c-tl::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 8px; width: 1px; background: var(--c-line-2); }
.c-tl-i { position: relative; padding-bottom: 16px; }
.c-tl-i::before {
  content: ''; position: absolute; left: -17px; top: 5px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--c-brand);
  box-shadow: 0 0 0 3px rgba(15, 140, 118, 0.12);
}
.c-tl-t { font-size: 12px; color: var(--c-ink-3); font-family: var(--c-num); }
.c-tl-c { font-size: 12.5px; margin-top: 3px; color: var(--c-ink); }

/* ============================================================
 * 弹窗 / Toast
 * ============================================================ */
.c-mask {
  position: fixed; inset: 0; background: rgba(12, 28, 24, 0.42);
  z-index: 90; display: flex; align-items: center; justify-content: center;
  animation: cFade 0.16s ease;
}
@keyframes cFade { from { opacity: 0 } to { opacity: 1 } }
.c-modal {
  background: #fff; border-radius: 12px; width: 520px; max-width: 92vw;
  max-height: 82vh; display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(12, 28, 24, 0.24);
  animation: cPop 0.18s ease;
}
@keyframes cPop { from { transform: scale(0.97); opacity: 0 } to { transform: scale(1); opacity: 1 } }
.c-modal-hd {
  padding: 16px 20px; border-bottom: 1px solid var(--c-line);
  font-size: 14.5px; font-weight: 500; display: flex; align-items: center;
}
.c-modal-hd span { margin-left: auto; cursor: pointer; color: var(--c-ink-3); font-size: 18px; line-height: 1; }
.c-modal-bd { padding: 16px 20px; overflow-y: auto; font-size: 12.5px; color: var(--c-ink-2); line-height: 1.75; }
.c-modal-ft { padding: 12px 20px; border-top: 1px solid var(--c-line); display: flex; gap: 8px; justify-content: flex-end; }

.c-toast {
  position: fixed; left: 50%; top: 22px; transform: translateX(-50%);
  background: #1F2B28; color: #fff; padding: 9px 18px; border-radius: 8px;
  font-size: 12.5px; z-index: 120; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: cPop 0.16s ease;
}
.c-toast.ok { background: var(--c-brand-d); }
.c-toast.err { background: #A32D2D; }

/* ============================================================
 * 内容/协议
 * ============================================================ */
.c-article-list { display: flex; flex-direction: column; }
.c-art-row {
  display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--c-line);
  cursor: pointer; align-items: flex-start;
}
.c-art-row:hover .c-art-t { color: var(--c-brand); }
.c-art-t { font-size: 13px; font-weight: 500; transition: color 0.15s; }
.c-art-s { font-size: 11.5px; color: var(--c-ink-3); margin-top: 4px; line-height: 1.6; }
.c-art-m { font-size: 11px; color: var(--c-ink-3); margin-top: 6px; display: flex; gap: 12px; }

.c-proto-doc { font-size: 13px; line-height: 1.9; color: var(--c-ink); }
.c-proto-doc h4 { font-size: 13.5px; margin: 20px 0 8px; font-weight: 500; color: var(--c-ink); }
.c-proto-doc h4:first-child { margin-top: 0; }
.c-proto-doc p { margin: 0 0 10px; color: #3C4C48; }

/* 滚动条 */
.c-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.c-scroll::-webkit-scrollbar-thumb { background: rgba(16, 40, 35, 0.16); border-radius: 4px; }
.c-scroll::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 1500px) {
  .c-kpis { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1200px) {
  .c-g4, .c-mgrid { grid-template-columns: repeat(2, 1fr); }
  .c-kpis { grid-template-columns: repeat(2, 1fr); }
  .c-g3 { grid-template-columns: 1fr 1fr; }
  .c-g-2-1, .c-g-1-2 { grid-template-columns: 1fr; }
}

/* ============================================================
 * 设备绑定（用户 ⇄ 手表）
 * ============================================================ */
.c-cell-sub {
  font-size: 10.5px; color: var(--c-ink-3);
  margin-top: 2px; line-height: 1.4; font-weight: 400;
}
.c-modal.wide { width: 760px; }

.c-bind-hd {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 15px; margin-bottom: 18px;
  border-bottom: 1px solid var(--c-line);
}
.c-bind-model {
  font-size: 15px; font-weight: 600; color: var(--c-ink); letter-spacing: 0.3px;
}
.c-bind-meta {
  font-size: 11.5px; color: var(--c-ink-3);
  margin-top: 4px; font-family: var(--c-num); letter-spacing: 0.2px;
}
.c-bind-hd > div:last-child { margin-left: auto; }

.c-tl-h2 {
  font-size: 12px; font-weight: 600; color: var(--c-ink);
  letter-spacing: 0.4px; margin: 20px 0 13px;
  display: flex; align-items: center; gap: 7px;
}
.c-tl-h2::before {
  content: ''; width: 3px; height: 12px; border-radius: 2px;
  background: var(--c-brand); display: inline-block;
}
.c-bind-hd + .c-tl-h2 { margin-top: 0; }

/* 绑定生命周期时间轴 */
.c-tl { position: relative; padding-left: 20px; }
.c-tl::before {
  content: ''; position: absolute; left: 5px; top: 9px; bottom: 9px;
  width: 1px; background: var(--c-line-2);
}
.c-tl-i { position: relative; padding-bottom: 18px; }
.c-tl-i:last-child { padding-bottom: 0; }
.c-tl-dot {
  position: absolute; left: -19px; top: 4px; width: 9px; height: 9px;
  border-radius: 50%; background: #fff; border: 2px solid #C9D8D4;
}
.c-tl-dot.on {
  border-color: var(--c-brand); background: var(--c-brand);
  box-shadow: 0 0 0 3px rgba(15, 140, 118, 0.14);
}
.c-tl-h {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 12.5px; color: var(--c-ink);
}
.c-tl-h b { font-weight: 600; }
.c-tl-h span { font-family: var(--c-num); font-size: 11.5px; color: var(--c-ink-3); }
.c-tl-b { font-size: 11.5px; color: var(--c-ink-2); line-height: 1.75; margin-top: 3px; }

.c-bind-row {
  font-size: 11.5px; color: var(--c-ink-2);
  padding: 9px 12px; background: #FAFBFA;
  border: 1px solid var(--c-line); border-radius: 6px;
  margin-bottom: 7px; display: flex; align-items: center; gap: 8px;
}
.c-bind-row .c-tag { margin-left: auto; }

.c-bind-note {
  font-size: 11px; color: var(--c-ink-3);
  margin: -2px 0 12px 2px; letter-spacing: 0.2px;
}

/* 用户详情里的绑定卡：左档案 + 右时间轴 */
.c-bind-two { display: grid; grid-template-columns: 300px 1fr; gap: 28px; }
.c-bind-info {
  background: #FAFBFA; border: 1px solid var(--c-line);
  border-radius: 8px; padding: 15px 17px 12px; align-self: start;
}
.c-bind-info-k { font-size: 10.5px; color: var(--c-ink-3); letter-spacing: 0.8px; }
.c-bind-info-m {
  font-size: 16px; font-weight: 600; color: var(--c-ink);
  margin: 5px 0 13px; letter-spacing: 0.2px;
}
.c-bind-info-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  font-size: 11.5px; padding: 6px 0;
  border-top: 1px dashed rgba(16, 40, 35, 0.08);
}
.c-bind-info-row span { color: var(--c-ink-3); flex: none; }
.c-bind-info-row b {
  font-family: var(--c-num); font-weight: 400; color: var(--c-ink-2);
  text-align: right; word-break: break-all;
}

.c-tl-dot.warn {
  border-color: var(--c-gold); background: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(197, 143, 0, 0.14);
}
.c-tl-dot.bad {
  border-color: var(--c-red); background: var(--c-red);
  box-shadow: 0 0 0 3px rgba(217, 59, 59, 0.14);
}

/* ============================================================
 * 表单（编辑资料弹窗）
 * ============================================================ */
.c-modal.wide { width: 880px; max-height: 90vh; }

.c-form-sec { margin-bottom: 12px; }
.c-form-sec:last-child { margin-bottom: 4px; }
.c-form-sec-t {
  font-size: 12px; font-weight: 600; color: var(--c-ink-2);
  padding: 0 0 7px 9px; margin-bottom: 9px;
  border-bottom: 1px solid var(--c-line); position: relative;
}
.c-form-sec-t::before {
  content: ''; position: absolute; left: 0; top: 1px;
  width: 3px; height: 11px; border-radius: 2px; background: var(--c-brand);
}
.c-form2 { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 16px; }

.c-f { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.c-modal .c-input, .c-modal .c-select { height: 30px; }
.c-modal .c-check, .c-modal .c-bmi { height: 30px; }
.c-f > label { font-size: 11.5px; color: var(--c-ink-3); }
.c-f-note { font-size: 10.5px; color: var(--c-ink-3); line-height: 1.4; }
.c-f .c-input { width: 100%; }
.c-f input[type="date"] { font-family: var(--c-num); }

.c-phone-row { display: flex; gap: 8px; align-items: center; }
.c-phone-row .c-input { flex: 1; min-width: 0; background: #F7F9F8; color: var(--c-ink-2); }

.c-rebind {
  grid-column: 1 / -1; margin-top: 2px; padding: 12px 13px;
  background: var(--c-gold-bg); border: 1px solid rgba(197, 143, 0, 0.28);
  border-radius: 8px;
}
.c-rebind.hide { display: none; }
.c-rebind-t { font-size: 11.5px; font-weight: 600; color: #8A6600; margin-bottom: 10px; }
.c-rebind .c-form2 { gap: 9px 14px; }
.c-rebind .c-f-note { color: #9A7A22; }

.c-bmi { display: flex; align-items: center; gap: 6px; height: 32px; font-size: 13px; }
.c-bmi .num { font-family: var(--c-num); font-weight: 600; }

.c-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.c-chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 10px; border-radius: 13px;
  border: 1px solid var(--c-line-2); background: #fff;
  font-size: 11.5px; color: var(--c-ink-2); cursor: pointer;
  transition: all 0.14s; user-select: none;
}
.c-chip:hover { border-color: var(--c-brand); color: var(--c-brand); }
.c-chip.on {
  background: var(--c-brand-bg); border-color: var(--c-brand);
  color: var(--c-brand-d); font-weight: 500;
}
.c-chip input { display: none; }

.c-check {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; font-size: 12px; color: var(--c-ink-2); cursor: pointer;
}
.c-check input { accent-color: var(--c-brand); }

/* 可点击的小标签（指标异常率下钻） */
.c-chip-btn {
  display: inline-flex; align-items: center; gap: 4px;
  height: 24px; padding: 0 9px; border-radius: 12px;
  background: #F1F5F4; border: 1px solid transparent;
  font-size: 11px; color: var(--c-ink-2); cursor: pointer; transition: all 0.14s;
}
.c-chip-btn:hover { background: var(--c-brand-bg); color: var(--c-brand-d); border-color: var(--c-brand); }
.c-chip-btn b { font-family: var(--c-num); font-weight: 600; }

/* ============================================================
 * 个人信息卡
 * ============================================================ */
.c-info-top {
  display: flex; align-items: center; gap: 16px;
  padding: 11px 13px; margin-bottom: 13px;
  background: linear-gradient(180deg, #F5FAF8 0%, #FAFCFB 100%);
  border: 1px solid var(--c-line); border-radius: 8px;
}
.c-info-comp { display: flex; align-items: center; gap: 9px; flex: none; }
.c-info-comp > span:first-child { font-size: 11.5px; color: var(--c-ink-3); }
.c-info-comp b { font-family: var(--c-num); font-size: 17px; color: var(--c-brand-d); line-height: 1; }
.c-info-bar {
  width: 108px; height: 5px; border-radius: 3px;
  background: rgba(15, 140, 118, 0.13); overflow: hidden; display: block;
}
.c-info-bar i { display: block; height: 100%; border-radius: 3px; background: var(--c-brand); }
.c-info-note { font-size: 10.5px; color: var(--c-ink-3); line-height: 1.4; }

.c-info-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--c-line); border-radius: 8px; overflow: hidden;
}
.c-info-g {
  padding: 12px 14px 13px;
  border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
  min-width: 0;
}
.c-info-g:nth-child(4n) { border-right: none; }
.c-info-g:nth-last-child(-n+4) { border-bottom: none; }
.c-info-gt {
  font-size: 11px; font-weight: 600; color: var(--c-brand-d);
  margin-bottom: 9px; display: flex; align-items: center; gap: 5px;
}
.c-info-gt::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--c-brand); display: block;
}
.c-info-row {
  display: flex; align-items: baseline; gap: 8px;
  padding: 3.5px 0; font-size: 12px; min-width: 0;
}
.c-info-k { flex: none; width: 74px; color: var(--c-ink-3); font-size: 11.5px; white-space: nowrap; }
.c-info-v {
  flex: 1; min-width: 0; color: var(--c-ink);
  word-break: break-word; line-height: 1.5;
}
.c-info-v .num { font-family: var(--c-num); }
.c-info-empty { color: var(--c-ink-3); font-style: normal; font-size: 11.5px; }
.c-info-empty::before { content: '— '; }

/* 变更记录 */
.c-info-log {
  margin-top: 12px; border: 1px solid var(--c-line);
  border-radius: 8px; overflow: hidden;
}
.c-info-log-h {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 13px; background: #F7F9F8; cursor: pointer;
  font-size: 11.5px; color: var(--c-ink-2); user-select: none;
}
.c-info-log-h:hover { background: #F1F5F4; }
.c-info-log-h b { font-family: var(--c-num); color: var(--c-brand-d); }

.c-log-wrap { padding: 4px 13px 10px; }
.c-log-i { padding: 10px 0; border-top: 1px dashed var(--c-line); }
.c-log-i:first-child { border-top: none; }
.c-log-t {
  display: flex; align-items: center; gap: 9px;
  font-size: 11px; color: var(--c-ink-3); margin-bottom: 6px;
}
.c-log-t b { font-family: var(--c-num); font-weight: 500; color: var(--c-ink-2); }
.c-log-t span { padding: 1px 6px; border-radius: 3px; background: #EFF2F1; font-size: 10.5px; }
.c-log-b { display: flex; flex-direction: column; gap: 4px; }
.c-log-c {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--c-ink-2);
}
.c-log-c em { font-style: normal; color: var(--c-ink-3); min-width: 62px; font-size: 11px; }
.c-log-c.bad em { color: var(--c-red); }
.c-log-arrow { color: var(--c-ink-3); font-size: 11px; }
.c-log-c.bad .c-diff-new { color: var(--c-red); }

/* ============================================================
 * 图表容器
 * ============================================================ */
.c-chart-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-bottom: 14px;
}
.c-chart-grid > .c-card:nth-child(1),
.c-chart-grid > .c-card:nth-child(4) { grid-column: 1 / -1; }

.c-chart-legend {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 9px; margin-top: 7px;
  border-top: 1px dashed var(--c-line);
  font-size: 11px; color: var(--c-ink-2);
}

/* 双图叠放时的分图小标题：说明这两条线各自一套纵轴，不能直接比高低 */
.c-sub {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--c-ink-2); font-weight: 500;
  margin: 2px 0 3px;
}
.c-sub i { width: 7px; height: 7px; border-radius: 2px; display: block; flex: none; }
.c-sub em { font-style: normal; font-weight: 400; color: var(--c-ink-3); margin-left: 2px; }
.c-chart-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.c-chart-legend i {
  width: 8px; height: 8px; border-radius: 2px; display: block; flex: none;
}

.c-donut-row { display: flex; align-items: center; gap: 18px; }
.c-donut-row > svg { flex: none; }
.c-legend { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.c-legend-i {
  display: flex; align-items: center; gap: 7px;
  padding: 5.5px 0; font-size: 11.5px; color: var(--c-ink-2);
  border-bottom: 1px dashed var(--c-line);
}
.c-legend-i:last-child { border-bottom: none; }
.c-legend-i i { width: 7px; height: 7px; border-radius: 2px; flex: none; display: block; }
.c-legend-i b { margin-left: auto; font-size: 13px; color: var(--c-ink); }
.c-legend-i span.muted { min-width: 32px; text-align: right; font-size: 11px; }

/* 用户详情：趋势双栏 */
.c-trend-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.c-trend-two > div { min-width: 0; }
.c-trend-t {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 11.5px; color: var(--c-ink-2); margin-bottom: 4px;
}
.c-trend-legend {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; color: var(--c-ink-3); font-weight: 400;
}
.c-trend-legend i {
  width: 8px; height: 8px; border-radius: 2px; display: block;
}
.c-trend-legend i.dash {
  width: 12px; height: 0; border-radius: 0;
  border-top: 1.4px dashed #A9B6B2; background: none;
}
.c-trend-two svg { display: block; width: 100%; height: auto; }

.c-tabs.sm { padding: 2px; border-radius: 6px; }
.c-tabs.sm .c-tab { height: 22px; padding: 0 10px; font-size: 11px; border-radius: 4px; }

.c-trend-abn {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  margin-top: 6px; font-size: 11px; color: var(--c-ink-2);
}
.c-trend-abn .c-tag { font-size: 10.5px; }

/* ============================================================
 * 报告详情
 * ============================================================ */
.c-rpt-hd {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 16px 18px; border-radius: 10px;
  background: linear-gradient(135deg, #0B2B26 0%, #10453C 100%);
  color: #E6F2EE; box-shadow: var(--c-shadow);
}
.c-rpt-hd-l { flex: 1; min-width: 0; }
.c-rpt-hd-r { flex: none; text-align: right; }
.c-rpt-id {
  display: flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.4px; color: #fff;
}
.c-rpt-id .c-tag { font-size: 10.5px; font-weight: 500; }
.c-rpt-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 9px; font-size: 11.5px; color: #9FC0B7;
}
.c-rpt-meta span { position: relative; }
.c-rpt-meta span + span { padding-left: 14px; }
.c-rpt-meta span + span::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 9px; background: rgba(255, 255, 255, 0.16);
}
.c-rpt-meta a { color: #7FE3C9; }
.c-rpt-meta a:hover { color: #fff; }
.c-rpt-score b {
  font-family: var(--c-num); font-size: 34px; font-weight: 600;
  color: #7FE3C9; line-height: 1; display: block; text-align: right;
}
.c-rpt-score span { font-size: 11px; color: #9FC0B7; display: block; margin-top: 5px; }
.c-rpt-diff {
  margin-top: 7px; font-size: 11px; font-family: var(--c-num);
  color: #9FC0B7;
}
.c-rpt-diff.up { color: #FF8A8A; }
.c-rpt-diff.down { color: #7FE3C9; }

.c-rpt-list { list-style: none; margin: 0; padding: 0; }
.c-rpt-list li {
  display: flex; gap: 9px; padding: 9px 0;
  border-bottom: 1px dashed var(--c-line); font-size: 12.5px; line-height: 1.62;
}
.c-rpt-list li:first-child { padding-top: 2px; }
.c-rpt-list li:last-child { border-bottom: none; }
.c-rpt-list li i {
  flex: none; width: 17px; height: 17px; border-radius: 50%; margin-top: 2px;
  background: var(--c-brand-bg); color: var(--c-brand-d);
  font-style: normal; font-size: 10.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.c-rpt-list.sug li i { background: var(--c-gold-bg); color: #8A6600; }
.c-rpt-list li span { flex: 1; min-width: 0; color: var(--c-ink); }
.c-rpt-tip {
  margin-top: 10px; padding: 8px 10px; border-radius: 6px;
  background: #F7F9F8; font-size: 11px; color: var(--c-ink-3); line-height: 1.5;
}
.c-rpt-ai {
  font-size: 12.5px; line-height: 1.85; color: var(--c-ink);
  padding: 12px 14px; border-radius: 8px;
  background: linear-gradient(180deg, #F5FAF8 0%, #FAFCFB 100%);
  border-left: 3px solid var(--c-brand);
}
.c-rpt-disc {
  margin-top: 10px; font-size: 10.5px; line-height: 1.6; color: var(--c-ink-3);
}
.c-rpt-stats { display: flex; align-items: stretch; gap: 0; }
.c-rpt-stat {
  flex: 1; padding: 2px 16px; border-left: 1px solid var(--c-line);
}
.c-rpt-stat:first-child { padding-left: 0; border-left: none; }
.c-rpt-stat .k { font-size: 11px; color: var(--c-ink-3); }
.c-rpt-stat .v {
  font-size: 22px; font-weight: 600; color: var(--c-ink); margin-top: 5px; line-height: 1;
}
.c-rpt-stat .v em {
  font-style: normal; font-size: 11px; font-weight: 400;
  color: var(--c-ink-3); margin-left: 3px;
}
.c-rpt-stat .v.bad { color: var(--c-red); }
.c-rpt-stat-link {
  flex: none; display: flex; align-items: center; padding-left: 16px;
  border-left: 1px dashed var(--c-line); font-size: 11.5px;
}

/* 参考区间标尺 */
.c-devbar {
  position: relative; height: 6px; border-radius: 3px;
  background: #EDF1F0;
}
.c-devbar-band {
  position: absolute; top: 0; height: 100%; border-radius: 3px;
  background: rgba(15, 140, 118, 0.3);
}
.c-devbar-dot {
  position: absolute; top: 50%; width: 9px; height: 9px; border-radius: 50%;
  background: var(--c-brand); border: 2px solid #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(15, 140, 118, 0.35);
}
.c-devbar-dot.bad {
  background: var(--c-red);
  box-shadow: 0 0 0 1px rgba(217, 59, 59, 0.4);
}

/* 异常行 */
.c-table tr.c-row-bad > td { background: var(--c-red-bg); }
.c-table tr.c-row-bad:hover > td { background: #F8E2E2; }

/* ============================================================
 * 报告删除 / 回收站 / 设备解绑（2026-11 增强）
 * ============================================================ */

/* 实心危险按钮：弹窗里的"确认删除 / 确认解绑" */
.c-btn.primary.danger { background: var(--c-red); border-color: var(--c-red); color: #fff; }
.c-btn.primary.danger:hover { background: #C22F2F; border-color: #C22F2F; color: #fff; }
.c-btn.danger-ghost { color: var(--c-red); border-color: rgba(217, 59, 59, 0.28); background: transparent; }
.c-btn.danger-ghost:hover { background: var(--c-red-bg); border-color: var(--c-red); color: var(--c-red); }

.c-link.danger { color: var(--c-red); }
.c-link.danger:hover { color: #B92F2F; }

/* 表格操作列：多个文字链并排 */
.c-table td.c-ops { white-space: nowrap; }
.c-table td.c-ops .c-link + .c-link { margin-left: 10px; }

/* 勾选列 */
.c-table th.c-chk, .c-table td.c-chk { width: 34px; padding-left: 14px; padding-right: 0; }
.c-table input[type="checkbox"] { width: 13px; height: 13px; accent-color: var(--c-brand); cursor: pointer; }
.c-table tr.c-row-sel > td { background: rgba(15, 140, 118, 0.05); }
.c-table tr.c-row-sel:hover > td { background: rgba(15, 140, 118, 0.08); }

/* 报告管理：全部 / 回收站 切换 */
.c-rpt-tabs { margin-bottom: 12px; }
.c-rpt-tabs .c-tab b {
  margin-left: 6px; font-family: var(--c-num); font-size: 11px;
  font-weight: 500; color: var(--c-ink-3);
}
.c-rpt-tabs .c-tab.on b { color: var(--c-brand); }

/* 批量操作条 */
.c-bulk {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 10px; padding: 9px 14px;
  background: var(--c-brand-bg); border: 1px solid rgba(15, 140, 118, 0.18);
  border-radius: 8px; font-size: 12.5px; color: var(--c-brand-d);
}
.c-bulk b { font-family: var(--c-num); font-size: 13px; }

/* 回收站说明条 */
.c-trash-tip {
  margin: 0 0 12px; padding: 10px 14px;
  background: var(--c-gold-bg); border-radius: 8px;
  font-size: 12px; line-height: 1.7; color: #7A5C00;
}

.c-warn-t { color: var(--c-red); font-weight: 600; }

/* 报告详情顶部工具条 */
.c-rpt-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.c-rpt-bar-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.c-bar-note { font-size: 11.5px; color: var(--c-ink-3); }

/* 已删除横幅 */
.c-rpt-deleted {
  margin-bottom: 12px; padding: 13px 16px;
  background: var(--c-red-bg); border-radius: 10px;
  border-left: 3px solid var(--c-red);
}
.c-rpt-deleted-t { font-size: 13.5px; font-weight: 600; color: var(--c-red); margin-bottom: 5px; }
.c-rpt-deleted-b { font-size: 12px; line-height: 1.9; color: #8A3A3A; }
.c-rpt-deleted-b b { color: #6E2A2A; font-weight: 600; }

/* 删除 / 解绑弹窗共用：影响提示 */
.c-del-warn {
  padding: 12px 14px; margin-bottom: 14px;
  background: #FFF7F7; border: 1px solid rgba(217, 59, 59, 0.14);
  border-radius: 8px;
}
.c-del-warn-t { font-size: 12.5px; font-weight: 600; color: var(--c-red); margin-bottom: 4px; }
.c-del-warn-b { font-size: 12px; line-height: 1.85; color: #8A5050; }

/* 单条报告卡 */
.c-del-one { padding: 12px 14px; margin-bottom: 14px; background: #F7F9F8; border-radius: 8px; }
.c-del-one-t { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.c-del-one-b { font-size: 11.5px; color: var(--c-ink-3); line-height: 1.7; }

/* 批量删除清单 */
.c-del-list {
  border: 1px solid var(--c-line); border-radius: 8px;
  overflow: hidden; margin-bottom: 14px;
}
.c-del-row {
  display: grid; grid-template-columns: 1.3fr 1fr 0.7fr 0.8fr;
  gap: 8px; padding: 8px 12px;
  font-size: 12px; border-bottom: 1px solid var(--c-line);
}
.c-del-row:last-child { border-bottom: none; }
.c-del-more { padding: 7px 12px; font-size: 11.5px; color: var(--c-ink-3); background: #FAFBFA; }

.c-req { color: var(--c-red); margin-left: 2px; }

/* 弹窗底部的确认勾选 */
.c-check.c-del-ok {
  display: flex; align-items: flex-start; height: auto;
  margin-top: 4px; padding: 10px 12px;
  background: #F7F9F8; border-radius: 7px;
  font-size: 12px; line-height: 1.7; color: var(--c-ink-2);
}
.c-check.c-del-ok input { margin-top: 2px; }

/* 恢复确认卡 */
.c-restore-box { padding: 14px 16px; background: #F7F9F8; border-radius: 9px; }
.c-restore-t { font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.c-restore-b { font-size: 12px; color: var(--c-ink-3); line-height: 1.7; }
.c-restore-note { margin-top: 10px; font-size: 12px; color: var(--c-brand-d); }

/* ---------- 设备解绑 ---------- */
.c-ub-hd { padding-bottom: 12px; border-bottom: 1px solid var(--c-line); margin-bottom: 12px; }
.c-ub-dev { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.c-ub-meta { font-size: 11.5px; color: var(--c-ink-3); margin-top: 6px; line-height: 1.6; }

.c-ub-user {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 12px 14px; margin-bottom: 12px;
  background: #F7F9F8; border-radius: 9px;
}
.c-ub-ava {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--c-brand-bg); color: var(--c-brand-d);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
}
.c-ub-name { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.c-ub-sub { font-size: 11.5px; color: var(--c-ink-3); line-height: 1.75; }

.c-ub-other {
  padding: 8px 12px; margin-bottom: 12px;
  background: var(--c-gold-bg); border-radius: 7px;
  font-size: 11.5px; color: #7A5C00;
}
.c-ub-other b { font-family: var(--c-num); }

/* 绑定详情弹窗底部操作区 */
.c-bind-act {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--c-line);
}
.c-bind-act .c-note { font-size: 11px; line-height: 1.65; color: var(--c-ink-3); }

/* 解绑结果 */
.c-ub-done { text-align: center; padding: 8px 4px 2px; }
.c-ub-done-ic {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--c-brand-bg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.c-ub-done-t { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.c-ub-done-b { font-size: 12px; color: var(--c-ink-3); line-height: 1.85; margin-bottom: 16px; }
.c-ub-steps { text-align: left; background: #F7F9F8; border-radius: 9px; padding: 12px 14px; }
.c-ub-step {
  display: flex; gap: 10px;
  font-size: 12px; line-height: 1.7; color: var(--c-ink-2);
  padding: 5px 0;
}
.c-ub-step i {
  flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px;
  border-radius: 50%; background: #fff; border: 1px solid var(--c-line-2);
  font-style: normal; font-size: 10.5px; color: var(--c-brand-d);
  display: flex; align-items: center; justify-content: center;
}
.c-ub-done-n { font-size: 11.5px; color: var(--c-ink-3); margin-top: 12px; }

/* ============================================================
 * 报告详情 · 体质维度 / 生活建议（2026-11 按真实报告改版）
 * ============================================================ */
.c-dim-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px; align-items: stretch;
}
.c-dim-grp {
  border: 1px solid var(--c-line); border-radius: 10px;
  background: #FBFDFC; overflow: hidden;
  display: flex; flex-direction: column;   /* 五列等高，内容顶部对齐 */
}
.c-dim-grp-t {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; background: var(--c-brand-bg);
  font-size: 12px; font-weight: 600; color: var(--c-brand-d);
}
.c-dim-grp-t .num { font-size: 13px; color: var(--c-brand-d); }
.c-dim-i { padding: 10px 12px 11px; }
.c-dim-i + .c-dim-i { border-top: 1px dashed var(--c-line); }
.c-dim-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.c-dim-n { font-size: 12.5px; font-weight: 600; color: var(--c-ink); }
.c-dim-v { font-family: var(--c-num); font-size: 15px; font-weight: 600; color: var(--c-brand); }
.c-dim-v.mid { color: var(--c-gold); }
.c-dim-v.bad { color: var(--c-red); }
.c-dim-note { margin-top: 3px; font-size: 10.5px; color: var(--c-ink-3); line-height: 1.45; }
.c-dim-txt { margin-top: 4px; font-size: 11.5px; color: var(--c-ink-2); line-height: 1.55; }

.c-rpt-warn {
  font-size: 12.5px; line-height: 1.85; color: #7A4E12;
  padding: 12px 14px; border-radius: 8px;
  background: linear-gradient(180deg, #FDF7EC 0%, #FEFBF6 100%);
  border-left: 3px solid var(--c-gold);
}

.c-life { padding-top: 2px; }
.c-life-row {
  display: flex; gap: 10px; padding: 7px 0;
  border-bottom: 1px dashed var(--c-line);
  font-size: 12.5px; line-height: 1.65;
}
.c-life-row:last-child { border-bottom: none; }
.c-life-k { flex: none; width: 30px; font-size: 12px; font-weight: 600; color: var(--c-brand-d); }
.c-life-v { flex: 1; min-width: 0; color: var(--c-ink); }

/* ============================================================
 * 预警阈值配置（25 项，按指标分组）
 * ============================================================ */
.c-thr-wrap {
  /* 7 个指标组固定 4 列：第一行 4 组、第二行 3 组，
   * auto-fill 会按容器宽度排出 5+2，第二行右侧留一大块空洞，反而不整齐 */
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; align-items: stretch;
}
.c-thr-grp {
  border: 1px solid var(--c-line); border-radius: 10px;
  background: #fff; box-shadow: var(--c-shadow); overflow: hidden;
  display: flex; flex-direction: column;
}
.c-thr-items { flex: 1; }
.c-thr-grp.wide { grid-column: span 2; }
.c-thr-grp.wide .c-thr-items {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px;
}
.c-thr-grp.wide .c-thr-i { border-bottom: none; }
.c-thr-grp.wide .c-thr-i:nth-child(n+3) { border-top: 1px dashed var(--c-line); }
.c-thr-gt {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; background: var(--c-brand-bg);
  font-size: 12px; font-weight: 600; color: var(--c-brand-d);
}
.c-thr-gt span { font-size: 10.5px; font-weight: 400; color: #5A8C80; }
.c-thr-items { padding: 4px 12px 8px; }
.c-thr-i { padding: 8px 0; border-bottom: 1px dashed var(--c-line); }
.c-thr-i:last-child { border-bottom: none; }
.c-thr-k { font-size: 11.5px; color: var(--c-ink-2); margin-bottom: 5px; }
.c-thr-ctl { display: flex; align-items: center; gap: 6px; }
.c-thr-ctl .c-num-in { flex: 1; min-width: 0; max-width: 150px; text-align: left; }
.c-thr-i .c-range-hint { margin-top: 4px; font-size: 10px; }
.c-thr-gn {
  margin: 0 12px 11px; padding-top: 9px;
  border-top: 1px dashed var(--c-line);
  font-size: 10.5px; line-height: 1.65; color: var(--c-ink-3);
}
.c-thr-note {
  margin-top: 12px; padding: 9px 12px; border-radius: 6px;
  background: #F7F9F8; font-size: 11px; color: var(--c-ink-3); line-height: 1.6;
}
.c-range-hint:empty { display: none; }

/* ============================================================
 * 五藏评估 · 横条（支持「待测量」灰态）
 * ============================================================ */
.c-organ-list { padding: 4px 0 2px; }
.c-organ-row {
  display: grid; grid-template-columns: 52px 1fr 56px;
  align-items: center; gap: 12px; padding: 9px 0;
}
.c-organ-row + .c-organ-row { border-top: 1px dashed var(--c-line); }
.c-organ-name { font-size: 12.5px; color: var(--c-ink-2); }
.c-organ-track {
  position: relative; display: block; height: 9px; border-radius: 5px;
  background: #E6EDEB; overflow: hidden;
}
.c-organ-track > i {
  display: block; height: 100%; border-radius: 5px;
  transition: width .5s cubic-bezier(.4,0,.2,1);
}
.c-organ-track > i.ok { background: linear-gradient(90deg, #12A98D, #0F8C76); }
.c-organ-track > i.mid { background: linear-gradient(90deg, #E0B23C, #C58F00); }
.c-organ-track > i.bad { background: linear-gradient(90deg, #E06060, #D93B3B); }
.c-organ-val {
  text-align: right; font-family: var(--c-num);
  font-size: 15px; font-weight: 600; color: var(--c-brand);
}
.c-organ-val.mid { color: var(--c-gold); }
.c-organ-val.bad { color: var(--c-red); }
.c-organ-val.pend { font-size: 11.5px; font-weight: 500; color: #A6B4B0; }
.c-organ-row.pend .c-organ-name { color: #A6B4B0; }

/* ============================================================
 * 体质维度 · 无出分藏 / 待测量灰态区
 * ============================================================ */
.c-dim-i.none {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 16px 12px; font-size: 11.5px; color: #A6B4B0;
  text-align: center; line-height: 1.6;
}
.c-dim-pend {
  margin-top: 12px; padding: 12px 14px 14px;
  border: 1px dashed var(--c-line); border-radius: 10px; background: #FAFCFB;
}
.c-dim-pend-t {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--c-ink-2); margin-bottom: 10px;
}
.c-dim-pend-t span { font-size: 11px; font-weight: 400; color: var(--c-ink-3); }
.c-dim-pend-l {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(296px, 1fr));
  gap: 8px;
}
.c-dim-chip {
  display: flex; align-items: baseline; gap: 8px;
  padding: 7px 11px; border-radius: 6px; background: #F1F5F4;
  border: 1px solid #E6ECEA; min-width: 0;
}
.c-dim-chip b { flex: none; }
.c-dim-chip em { flex: 1; min-width: 0; }
.c-dim-chip b { font-size: 11.5px; font-weight: 600; color: #7B8C87; }
.c-dim-chip em { font-size: 10.5px; font-style: normal; color: #A6B4B0; }

/* 健康预警 · 越界指标明细 */
.c-warn-list { margin-top: 10px; }
.c-warn-li {
  display: grid; grid-template-columns: 1fr auto auto;
  align-items: baseline; gap: 12px;
  padding: 6px 0; font-size: 12px; color: var(--c-ink-2);
  border-bottom: 1px dashed var(--c-line);
}
.c-warn-li:last-child { border-bottom: none; }
.c-warn-li b { font-family: var(--c-num); font-weight: 600; color: var(--c-red); }
.c-warn-li b em { font-style: normal; font-size: 10.5px; font-weight: 400; color: var(--c-ink-3); }
.c-warn-li i { font-style: normal; font-size: 10.5px; }

/* 设备配置 · 单项配置说明 */
.c-dev-note {
  margin-top: 16px; padding: 12px 14px; border-radius: 8px;
  background: #F7FAF9; border: 1px solid var(--c-line);
}
.c-dev-note-t { font-size: 12px; font-weight: 600; color: var(--c-ink-2); margin-bottom: 7px; }
.c-dev-note-b { font-size: 11.5px; line-height: 1.9; color: var(--c-ink-3); }
