/* ==========================================================================
   治理指标驾驶舱 · 科技感大屏视觉令牌（需求文档 6.5 节）
   设计意图：
   1. 所有颜色集中在 .ck-root 作用域，组件与图表配置内不硬编码色值；
   2. 同时覆盖图表库（charts.js）依赖的平台变量（--border/--text-3/...），
      使 SVG 图表自动继承大屏配色，无需改动图表库；
   3. 风险三色固定不变，不随平台主题切换；
   4. 开启「减少动态效果」时仅关闭动画，静态配色 / 角标 / 网格保留。
   ========================================================================== */
.ck-root {
  /* ---- 配色令牌（6.5.1） ---- */
  --ck-bg: radial-gradient(ellipse at 50% 0%, #0E1E38 0%, #060B18 70%);
  --ck-panel: rgba(14, 30, 56, 0.72);
  --ck-border-c: rgba(64, 158, 255, 0.22);
  --ck-primary: #00D4FF;
  --ck-secondary: #3B9DFF;
  --ck-accent: #7B6CFF;
  --ck-text: #E6F1FF;
  --ck-text-sub: #93AECF;
  --ck-text-mute: #5C7799;
  --ck-grid: rgba(90, 150, 220, 0.12);
  --ck-risk-high: #FF4D5A;
  --ck-risk-mid: #FFA940;
  --ck-risk-low: #2BD9A0;
  /* 图表 SVG 内文字放大倍率（charts.js 读取，仅在大屏作用域生效） */
  --ck-chart-fs: 1.15;

  /* ---- 覆盖图表库依赖的平台语义变量 ---- */
  --border: rgba(90, 150, 220, 0.18);
  --border-color: rgba(90, 150, 220, 0.18);
  --surface: rgba(14, 30, 56, 0.72);
  --surface-2: rgba(20, 40, 70, 0.60);
  --surface-3: rgba(90, 150, 220, 0.14);
  --text: #E6F1FF;
  --text-2: #93AECF;
  --text-3: #7C97B8;
  --text-inverse: #060B18;
  --brand: #00D4FF;
  --brand-weak: rgba(0, 212, 255, 0.12);
  --success: #2BD9A0;
  --success-weak: rgba(43, 217, 160, 0.14);
  --warning: #FFA940;
  --warning-weak: rgba(255, 169, 64, 0.14);
  --danger: #FF4D5A;
  --danger-weak: rgba(255, 77, 90, 0.14);
  --info: #3B9DFF;
  --info-weak: rgba(59, 157, 255, 0.14);
}

/* 视图容器：去掉平台内边距与滚动，交给大屏自行等比缩放 */
.view.ck-view {
  padding: 0;
  overflow: hidden;
  background: #060B18;
}

.ck-root {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--ck-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ck-text);
  -webkit-font-smoothing: antialiased;
}

/* 全屏装饰层：细线网格 + 顶部光晕（6.5.3 #3/#4） */
.ck-gridbg,
.ck-topglow {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.ck-gridbg {
  inset: 0;
  background-image:
    linear-gradient(to right, var(--ck-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ck-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.9;
}
.ck-topglow {
  left: 50%;
  top: -180px;
  width: 1280px;
  height: 460px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 50%, var(--ck-secondary) 0%, transparent 70%);
  opacity: 0.08;
}

/* 1920×1080 舞台：等比缩放 */
.ck-stage {
  position: relative;
  width: 1920px;
  height: 1080px;
  flex: none;
  transform-origin: center center;
  display: grid;
  grid-template-rows: 66px 1fr;
  gap: 8px;
  padding: 0 18px 12px;
  box-sizing: border-box;
  z-index: 1;
}

/* ---------------- 顶部标题栏（6.5.3 #7） ---------------- */
.ck-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ck-head-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  white-space: nowrap;
}
.ck-head-title h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--ck-text);
  text-shadow: 0 0 18px rgba(0, 212, 255, 0.5);
}
.ck-head-title .sub {
  margin-top: 2px;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--ck-text-mute);
}
.ck-head-title .line {
  position: absolute;
  top: 50%;
  width: 220px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ck-primary));
}
.ck-head-title .line.l { right: 100%; margin-right: 18px; }
.ck-head-title .line.r { left: 100%; margin-left: 18px; transform: scaleX(-1); }

.ck-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}
.ck-tools .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ck-sel {
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--ck-border-c);
  border-radius: 3px;
  background: rgba(10, 24, 44, 0.9);
  color: var(--ck-text);
  font-size: 14.5px;
  outline: none;
  max-width: 360px;
}
.ck-sel:focus { border-color: var(--ck-primary); }
.ck-btn {
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--ck-border-c);
  border-radius: 3px;
  background: rgba(0, 212, 255, 0.08);
  color: var(--ck-primary);
  font-size: 14.5px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.ck-btn:hover { background: rgba(0, 212, 255, 0.18); border-color: var(--ck-primary); }
.ck-clock {
  font-family: "DIN Alternate", "Roboto Mono", "JetBrains Mono", monospace;
  font-size: 17px;
  color: var(--ck-text-sub);
  font-variant-numeric: tabular-nums;
}

/* 任务信息条 */
.ck-taskmeta {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 14px;
  color: var(--ck-text-mute);
  position: relative;
  z-index: 2;
}
.ck-taskmeta b { color: var(--ck-text-sub); font-weight: 500; }

/* ---------------- 七区块网格（6.1） ---------------- */
.ck-body {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 45% 1fr;
  gap: 10px;
  min-height: 0;
}
/* 每块一个主色，形成分区色阶（青 / 蓝 / 紫 / 青绿 / 绿 / 靛 / 琥珀） */
.ck-p1 { grid-column: span 3; --pk: #00D4FF; --pk-rgb: 0, 212, 255; }
.ck-p2 { grid-column: span 5; --pk: #3B9DFF; --pk-rgb: 59, 157, 255; }
.ck-p3 { grid-column: span 4; --pk: #7B6CFF; --pk-rgb: 123, 108, 255; }
.ck-p4 { grid-column: span 4; grid-row: 2; --pk: #1FC8C8; --pk-rgb: 31, 200, 200; }
.ck-p5 { grid-column: span 2; grid-row: 2; --pk: #2BD9A0; --pk-rgb: 43, 217, 160; }
.ck-p6 { grid-column: span 3; grid-row: 2; --pk: #6E8BFF; --pk-rgb: 110, 139, 255; }
.ck-p7 { grid-column: span 3; grid-row: 2; --pk: #FFA940; --pk-rgb: 255, 169, 64; }

.ck-panel {
  position: relative;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(var(--pk-rgb), 0.13) 0%, rgba(var(--pk-rgb), 0.02) 46%, transparent 66%),
    linear-gradient(160deg, rgba(19, 42, 74, 0.88) 0%, rgba(9, 20, 38, 0.92) 72%);
  border: 1px solid rgba(var(--pk-rgb), 0.26);
  border-radius: 4px;
  padding: 10px 12px 9px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(var(--pk-rgb), 0.16);
  animation: ckBreath 5.5s ease-in-out infinite;
}
/* 区块依次入场（6.5.4）：只播一次，刷新不重播 */
.ck-enter .ck-panel {
  animation: ckFadeUp 0.5s ease both, ckBreath 5.5s ease-in-out infinite;
}
.ck-enter .ck-panel:nth-child(1) { animation-delay: 0s, 0s; }
.ck-enter .ck-panel:nth-child(2) { animation-delay: 0.08s, 0s; }
.ck-enter .ck-panel:nth-child(3) { animation-delay: 0.16s, 0s; }
.ck-enter .ck-panel:nth-child(4) { animation-delay: 0.24s, 0s; }
.ck-enter .ck-panel:nth-child(5) { animation-delay: 0.32s, 0s; }
.ck-enter .ck-panel:nth-child(6) { animation-delay: 0.40s, 0s; }
.ck-enter .ck-panel:nth-child(7) { animation-delay: 0.48s, 0s; }

/* 四角角标（6.5.3 #1）：::before/::after 做左上/右下，子元素补另外两角 */
.ck-panel::before,
.ck-panel::after,
.ck-panel > .ck-c {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--pk);
  pointer-events: none;
  z-index: 3;
}
.ck-panel::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.ck-panel::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.ck-panel > .ck-c.ck-c-tr { right: -1px; top: -1px; border-left: 0; border-bottom: 0; }
.ck-panel > .ck-c.ck-c-bl { left: -1px; bottom: -1px; border-right: 0; border-top: 0; }

/* 区块标题 + 装饰条（6.5.3 #2） */
.ck-ptitle {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 7px 11px;
  margin-bottom: 8px;
  font-size: 18.5px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--ck-text);
  border-bottom: 1px solid transparent;
}
.ck-ptitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 20px;
  background: var(--pk);
  box-shadow: 0 0 8px var(--pk);
}
.ck-ptitle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--pk), transparent 75%);
}
.ck-ptitle .tag {
  margin-left: auto;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ck-text-mute);
}
.ck-ptitle .tabs {
  margin-left: auto;
  display: flex;
  gap: 5px;
}
.ck-tab {
  padding: 3px 10px;
  border: 1px solid rgba(90, 150, 220, 0.28);
  border-radius: 2px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ck-text-sub);
  cursor: pointer;
  transition: all 0.2s;
}
.ck-tab:hover { border-color: var(--ck-secondary); color: var(--ck-text); }
.ck-tab.on {
  background: rgba(0, 212, 255, 0.16);
  border-color: var(--ck-primary);
  color: var(--ck-primary);
}

.ck-pbody {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---------------- 等宽数字（6.5.2） ---------------- */
.ck-num {
  font-family: "DIN Alternate", "Roboto Mono", "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* ---------------- ① 成熟度总分 ---------------- */
.ck-score-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 0;
}
.ck-gauge { position: relative; width: 100%; max-width: 380px; height: 176px; }
.ck-gauge svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ck-score-num {
  font-family: "DIN Alternate", "Roboto Mono", "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 84px;
  line-height: 1;
  font-weight: 700;
  color: var(--ck-primary);
  text-shadow: 0 0 26px rgba(0, 212, 255, 0.5);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  text-align: center;
}
.ck-score-unit {
  font-size: 17px;
  color: var(--ck-text-mute);
  margin-left: 5px;
  text-shadow: none;
}
.ck-score-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
  font-size: 15px;
  color: var(--ck-text-sub);
}
/* ① 底部补充指标：指标总数 / 类别数 / 填报率 */
.ck-score-stats {
  flex: none;
  display: flex;
  width: 100%;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(90, 150, 220, 0.18);
}
.ck-score-stats .cell {
  flex: 1;
  position: relative;
  text-align: center;
  min-width: 0;
}
.ck-score-stats .cell + .cell::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14%;
  height: 72%;
  width: 1px;
  background: rgba(90, 150, 220, 0.18);
}
.ck-score-stats .v {
  font-size: 23px;
  line-height: 1.15;
  color: var(--ck-primary);
}
.ck-score-stats .k {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ck-text-mute);
}
.ck-risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 2px;
  font-size: 15px;
  border: 1px solid currentColor;
}
.ck-risk-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.ck-risk-low { color: var(--ck-risk-low); }
.ck-risk-medium { color: var(--ck-risk-mid); }
.ck-risk-high { color: var(--ck-risk-high); }
.ck-risk-none { color: var(--ck-text-mute); }
.ck-delta { font-size: 15px; }
.ck-up { color: var(--ck-risk-low); }
.ck-down { color: var(--ck-risk-high); }
.ck-flat { color: var(--ck-text-mute); }

/* ---------------- 通用图表容器 ---------------- */
.ck-chart { flex: 1; min-height: 0; position: relative; }
.ck-chart svg { display: block; }

/* ③ 评分趋势：上方折线压缩，下方同比 / 环比柱状图 */
.ck-trend-stack {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.ck-trend-stack .ck-trend-line { flex: 1.45 1 0; min-height: 0; }
.ck-trend-stack .ck-trend-bars { flex: 1 1 0; min-height: 0; }
.ck-trend-sub {
  flex: none;
  padding: 2px 0 1px;
  font-size: 12.5px;
  color: var(--ck-text-mute);
  text-align: center;
}
.ck-trend-note {
  flex: none;
  margin-top: 2px;
  text-align: right;
  font-size: 13px;
  color: var(--ck-text-mute);
}

/* ---------------- ② 分类总览图例 ---------------- */
.ck-legend {
  flex: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 10px;
  margin-top: 6px;
  font-size: 14px;
  color: var(--ck-text-sub);
}
.ck-legend .li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ck-legend .sw { width: 9px; height: 9px; flex: none; border-radius: 1px; }
/* 雷达视图：右侧类别列表使用字母序号色块 */
.ck-legend .sw.lt {
  width: 20px;
  height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #06121F;
  letter-spacing: 0;
}
.ck-legend .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-legend .vl { margin-left: auto; color: var(--ck-text); font-family: "DIN Alternate", "Roboto Mono", monospace; }

/* ② 分类总览：图例改为右侧单列，给雷达图留出完整方形区域，避免纵向挤压 */
.ck-p2 .ck-pbody { flex-direction: row; align-items: stretch; gap: 10px; }
.ck-p2 .ck-chart { flex: 1; min-width: 0; }
.ck-p2 .ck-legend {
  width: 236px;
  flex: none;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 7px;
  margin-top: 0;
  padding-right: 2px;
}

/* ---------------- 通用表格 ---------------- */
.ck-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ck-table th {
  text-align: left;
  font-weight: 400;
  color: var(--ck-text-mute);
  padding: 5px 7px;
  border-bottom: 1px solid var(--ck-grid);
  white-space: nowrap;
}
.ck-table td {
  padding: 6px 7px;
  border-bottom: 1px solid rgba(90, 150, 220, 0.10);
  color: var(--ck-text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ck-table td b { color: var(--ck-text); font-weight: 500; }
.ck-table tr:last-child td { border-bottom: 0; }

/* ---------------- ④ 重点指标 ---------------- */
.ck-rate-big {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: none;
  margin-bottom: 6px;
}
.ck-rate-big .v {
  font-family: "DIN Alternate", "Roboto Mono", "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 46px;
  font-weight: 700;
  color: var(--pk);
  line-height: 1;
  text-shadow: 0 0 18px rgba(var(--pk-rgb), 0.42);
}
/* 达标率数值按阈值着色：<60 高危、60~80 关注、≥80 达标 */
.ck-rate-big .v.bad { color: var(--ck-risk-high); text-shadow: 0 0 18px rgba(255, 77, 90, 0.4); }
.ck-rate-big .v.warn { color: var(--ck-risk-mid); text-shadow: 0 0 18px rgba(255, 169, 64, 0.4); }
.ck-rate-big .k { font-size: 14px; color: var(--ck-text-mute); }
.ck-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(90, 150, 220, 0.14);
  overflow: hidden;
  flex: none;
  margin-bottom: 9px;
}
.ck-bar > i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(var(--pk-rgb), 0.55), var(--pk));
  box-shadow: 0 0 10px rgba(var(--pk-rgb), 0.6);
  transition: width 0.8s ease;
}
.ck-bar.warn > i { background: linear-gradient(90deg, #B87A22, var(--ck-risk-mid)); box-shadow: 0 0 10px rgba(255, 169, 64, 0.5); }
.ck-bar.bad > i { background: linear-gradient(90deg, #A0303A, var(--ck-risk-high)); box-shadow: 0 0 10px rgba(255, 77, 90, 0.5); }
.ck-sub-label { font-size: 13.5px; color: var(--ck-text-mute); margin-bottom: 5px; flex: none; }

/* 无缝滚动列表（6.2） */
.ck-scroll { flex: 1; min-height: 0; overflow: hidden; position: relative; }
.ck-scroll-in { animation: ckScroll var(--ck-dur, 14s) linear infinite; }
.ck-scroll:hover .ck-scroll-in { animation-play-state: paused; }
@keyframes ckScroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
.ck-unq {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-left: 2px solid var(--ck-risk-high);
  background: rgba(255, 77, 90, 0.06);
  margin-bottom: 5px;
  font-size: 14px;
  color: var(--ck-text-sub);
}
.ck-unq .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ck-text); }
.ck-unq .sc { color: var(--ck-risk-mid); font-family: "DIN Alternate", monospace; }

/* ---------------- ⑤ 分级类得分：自适应网格（铺满区块，纵向滚动） ---------------- */
.ck-catflow {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  grid-auto-rows: minmax(96px, 1fr);
  gap: 7px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 3px;
  flex: 1;
  min-height: 0;
  scrollbar-width: thin;
}
.ck-catflow::-webkit-scrollbar { width: 4px; }
.ck-catflow::-webkit-scrollbar-thumb { background: rgba(0, 212, 255, 0.3); border-radius: 2px; }
.ck-catcard {
  border: 1px solid rgba(90, 150, 220, 0.18);
  background: linear-gradient(160deg, rgba(16, 38, 68, 0.75), rgba(9, 20, 38, 0.62));
  border-radius: 4px;
  padding: 8px 10px 7px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 0;
  min-width: 0;
}
.ck-catcard:hover {
  border-color: var(--pk);
  background: rgba(var(--pk-rgb), 0.11);
  transform: translateY(-2px);
}
.ck-catcard .nm {
  font-size: 14px;
  color: var(--ck-text-sub);
  line-height: 1.35;
  max-height: 38px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ck-catcard .sc {
  font-family: "DIN Alternate", "Roboto Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 32px;
  font-weight: 700;
  color: var(--pk);
  line-height: 1;
  margin-top: auto;
}
.ck-catcard .ft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}
.ck-catcard .lv {
  font-size: 12px;
  white-space: nowrap;
  padding: 1px 5px;
  border: 1px solid currentColor;
  border-radius: 2px;
  line-height: 16px;
}
.ck-catcard .wt { font-size: 12px; color: var(--ck-text-mute); white-space: nowrap; }

/* ---------------- ⑥ 政策 ---------------- */
.ck-ai-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(123, 108, 255, 0.28);
  background: rgba(123, 108, 255, 0.08);
  border-radius: 3px;
  margin-bottom: 8px;
  flex: none;
}
.ck-ai-row .k { font-size: 14px; color: var(--ck-text-mute); line-height: 1.5; }
.ck-ai-row .v {
  margin-left: auto;
  font-family: "DIN Alternate", "Roboto Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 32px;
  font-weight: 700;
  color: var(--ck-accent);
  text-shadow: 0 0 16px rgba(123, 108, 255, 0.5);
}
.ck-policy-li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(90, 150, 220, 0.10);
  font-size: 14px;
}
.ck-policy-li .nm {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ck-text-sub);
}
.ck-policy-li .nm b { color: var(--ck-text); font-weight: 500; }
.ck-policy-li .rt {
  font-family: "DIN Alternate", "Roboto Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 15.5px;
}

/* ---------------- ⑦ 工单 ---------------- */
.ck-wo-sum {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  flex: none;
  margin-bottom: 8px;
}
.ck-wo-sum .cell {
  border: 1px solid rgba(90, 150, 220, 0.16);
  border-radius: 3px;
  padding: 6px 4px;
  text-align: center;
}
.ck-wo-sum .k { font-size: 13px; color: var(--ck-text-mute); }
.ck-wo-sum .v {
  font-family: "DIN Alternate", "Roboto Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 26px;
  font-weight: 600;
  color: var(--ck-text);
}
.ck-wo-sum .v.hi { color: var(--ck-risk-high); }
.ck-wo-sum .v.ok { color: var(--ck-risk-low); }
.ck-wo-card { border-bottom: 1px solid rgba(90, 150, 220, 0.10); padding: 6px 0; }
.ck-wo-head {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ck-text-sub);
}
.ck-wo-head .nm {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ck-text);
}
.ck-wo-head .meta { font-size: 12.5px; color: var(--ck-text-mute); }
.ck-wo-list { padding: 5px 0 2px 10px; }
.ck-wo-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ck-text-mute);
  padding: 2px 0;
  border-left: 1px solid rgba(90, 150, 220, 0.2);
  padding-left: 8px;
}
.ck-wo-row .no { color: var(--ck-text-sub); font-family: "DIN Alternate", monospace; }
.ck-wo-row .st { margin-left: auto; }
.ck-chip {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 12.5px;
  line-height: 19px;
  white-space: nowrap;
  border: 1px solid currentColor;
}
.ck-chip.ok { color: var(--ck-risk-low); background: rgba(43, 217, 160, 0.08); }
.ck-chip.warn { color: var(--ck-risk-mid); background: rgba(255, 169, 64, 0.08); }
.ck-chip.bad { color: var(--ck-risk-high); background: rgba(255, 77, 90, 0.08); }
.ck-chip.info { color: var(--ck-secondary); background: rgba(59, 157, 255, 0.08); }
.ck-chip.mute { color: var(--ck-text-mute); background: rgba(90, 150, 220, 0.06); }

/* ---------------- 空态 / 异常态 ---------------- */
.ck-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  color: var(--ck-text-mute);
  text-align: center;
  padding: 12px;
}
.ck-empty .ico { font-size: 36px; opacity: 0.45; }
.ck-error { color: var(--ck-risk-mid); }
/* 空态占位框：用淡网格虚线框填充留白，避免大块空白 */
.ck-ghost-frame {
  margin: 2px 0 4px;
  border: 1px dashed rgba(90, 150, 220, 0.20);
  border-radius: 4px;
  background-image:
    linear-gradient(to bottom, rgba(90, 150, 220, 0.07) 1px, transparent 1px),
    linear-gradient(to right, rgba(90, 150, 220, 0.05) 1px, transparent 1px);
  background-size: 100% 25%, 16.66% 100%;
}

/* ---------------- 分类详情弹窗（居中，完整可见） ---------------- */
.ck-mask {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 18, 0.66);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 30;
}
.ck-mask.on { opacity: 1; pointer-events: auto; }
.ck-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%) scale(0.985);
  width: 1100px;
  max-width: calc(100% - 120px);
  min-height: 240px;
  max-height: 780px;
  background: linear-gradient(165deg, #10294c 0%, #0a1a32 55%, #081426 100%);
  border: 1px solid rgba(0, 212, 255, 0.32);
  border-radius: 6px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 212, 255, 0.06);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 31;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ck-dialog.on { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.ck-dialog-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.18);
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.10), transparent 65%);
}
.ck-dialog-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--ck-text);
  letter-spacing: 0.5px;
}
.ck-dialog-head .x {
  margin-left: auto;
  cursor: pointer;
  color: var(--ck-text-mute);
  font-size: 22px;
  line-height: 1;
  padding: 2px 8px;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}
.ck-dialog-head .x:hover { color: var(--ck-primary); background: rgba(0, 212, 255, 0.1); }
.ck-dialog-body { flex: 1; overflow: auto; padding: 12px 16px 14px; }
.ck-dialog-body::-webkit-scrollbar { width: 6px; }
.ck-dialog-body::-webkit-scrollbar-thumb { background: rgba(0, 212, 255, 0.3); border-radius: 3px; }

/* ---------------- 骨架屏 ---------------- */
.ck-skel {
  flex: 1;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(90, 150, 220, 0.06) 25%, rgba(90, 150, 220, 0.14) 37%, rgba(90, 150, 220, 0.06) 63%);
  background-size: 400% 100%;
  animation: ckShimmer 1.4s ease infinite;
  min-height: 40px;
}
@keyframes ckShimmer {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

/* ---------------- 动画关键帧 ---------------- */
@keyframes ckFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes ckBreath {
  0%, 100% { border-color: rgba(64, 158, 255, 0.15); }
  50% { border-color: rgba(64, 158, 255, 0.30); }
}
@keyframes ckPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
.ck-pulse { animation: ckPulse 1.6s ease-in-out infinite; }

/* 数据刷新脉冲（6.5.4）：数值变化时短暂高亮 400ms */
.ck-flash { animation: ckFlash 0.4s ease; }
@keyframes ckFlash {
  0% { color: var(--ck-primary); text-shadow: 0 0 18px rgba(0, 212, 255, 0.85); }
  100% { text-shadow: none; }
}

/* ---------------- 减少动态效果（6.2 / 6.5.5） ---------------- */
@media (prefers-reduced-motion: reduce) {
  .ck-root *,
  .ck-root *::before,
  .ck-root *::after {
    animation: none !important;
    transition: none !important;
  }
  .ck-scroll-in { transform: none !important; }
}
.ck-reduce .ck-panel,
.ck-reduce .ck-skel,
.ck-reduce .ck-pulse { animation: none !important; }
.ck-reduce .ck-scroll-in { animation: none !important; }
.ck-reduce .ck-bar > i { transition: none !important; }
