/* ===== 大屏整体布局 ===== */
.screen {
  height: 100vh;
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 1180px;
}

/* ----- 顶部 ----- */
.header {
  flex: none;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 10px;
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.08), rgba(59, 130, 246, 0.18), rgba(34, 211, 238, 0.08));
  border-bottom: 1px solid var(--line-strong);
  position: relative;
}
.header::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.6;
}
.h-left { display: flex; align-items: center; gap: 18px; font-size: 12px; color: var(--text-dim); }
.h-left .proj { font-size: 16px; font-weight: 700; color: #eaf3ff; letter-spacing: 2px; }
.h-left .dot { color: var(--cyan); }

.h-title {
  text-align: center;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 800;
  letter-spacing: 8px;
  background: linear-gradient(180deg, #ffffff 30%, #7dd3fc 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 24px rgba(34, 211, 238, 0.25);
  white-space: nowrap;
}

.h-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.gran-tabs { display: flex; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; }
.gran-tabs button {
  appearance: none;
  border: 0;
  background: rgba(13, 30, 60, 0.6);
  color: var(--text-dim);
  font-size: 12px;
  padding: 6px 14px;
  cursor: pointer;
  letter-spacing: 2px;
  border-right: 1px solid var(--line);
  transition: all 0.15s;
}
.gran-tabs button:last-child { border-right: 0; }
.gran-tabs button:hover { color: #fff; }
.gran-tabs button.active {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.28), rgba(59, 130, 246, 0.28));
  color: #fff;
  box-shadow: inset 0 0 12px rgba(34, 211, 238, 0.35);
  font-weight: 700;
}
.period-select {
  background: rgba(13, 30, 60, 0.8);
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 12px;
  outline: none;
  cursor: pointer;
}
.clock { text-align: right; font-family: var(--num-font); color: var(--cyan); font-size: 13px; line-height: 1.35; min-width: 118px; }
.clock .time { font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.clock .date { color: var(--text-dim); font-size: 11px; }

/* ----- KPI ----- */
.kpis {
  flex: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.kpi {
  position: relative;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.10), rgba(59, 130, 246, 0.06));
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.kpi::after {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 70%);
}
.kpi .ico {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: rgba(34, 211, 238, 0.10);
  border: 1px solid rgba(34, 211, 238, 0.3);
}
.kpi .val { font-family: var(--num-font); font-size: 26px; font-weight: 700; color: #fff; line-height: 1.1; }
.kpi .val em { font-style: normal; font-size: 12px; color: var(--text-dim); font-weight: 400; margin-left: 3px; }
.kpi .name { font-size: 12px; color: var(--text-dim); margin-top: 2px; letter-spacing: 1px; }
.kpi .extra { font-size: 11px; color: var(--text-faint); margin-top: 1px; }
.kpi.c-green .ico { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.35); }
.kpi.c-green .val { color: #d5fff0; }
.kpi.c-orange .ico { background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.35); }
.kpi.c-orange .val { color: #fff1d6; }
.kpi.c-purple .ico { background: rgba(167, 139, 250, 0.12); border-color: rgba(167, 139, 250, 0.35); }
.kpi.c-purple .val { color: #ede7fe; }
.kpi.c-red .ico { background: rgba(248, 113, 113, 0.10); border-color: rgba(248, 113, 113, 0.3); }

/* ----- 主体三列 ----- */
.main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 23.5% 1fr 23.5%;
  gap: 10px;
}
.col { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.col .panel { flex: 1; }

/* 中间列分区 */
.center-progress { flex: 0 0 34%; }
.center-mini { flex: 0 0 150px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.center-feed { flex: 1; }

/* 进度条列表 */
.progress-list { overflow: auto; padding-right: 4px; display: flex; flex-direction: column; gap: 9px; }
.progress-item .p-head { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
.progress-item .p-head .p-name { color: #cfe0ff; font-weight: 600; }
.progress-item .p-head .p-val { font-family: var(--num-font); color: var(--cyan); }
.progress-item .p-task { font-size: 11px; color: var(--text-faint); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-bar { height: 6px; border-radius: 3px; background: rgba(59, 130, 246, 0.14); overflow: hidden; }
.p-bar i {
  display: block; height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
}

/* 迷你安全/验收卡 */
.mini-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mini-card .m-val { font-family: var(--num-font); font-size: 28px; font-weight: 700; color: var(--green); }
.mini-card.alt .m-val { color: var(--orange); }
.mini-card .m-name { font-size: 12px; color: var(--text-dim); }
.mini-card .m-extra { font-size: 11px; color: var(--text-faint); }
.mini-chart { width: 78px; height: 52px; flex: none; }

/* 日志流水 */
.feed { overflow: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 4px; }
.feed-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(64, 140, 255, 0.15);
  border-radius: 5px;
  background: rgba(8, 20, 42, 0.55);
  cursor: pointer;
  transition: all 0.15s;
}
.feed-item:hover { border-color: var(--line-strong); background: rgba(20, 45, 85, 0.7); transform: translateX(2px); }
.feed-date { text-align: center; font-family: var(--num-font); }
.feed-date .d { font-size: 20px; font-weight: 700; color: var(--cyan); line-height: 1; }
.feed-date .m { font-size: 10px; color: var(--text-faint); }
.feed-main .f-line1 { font-size: 12.5px; color: #dbeafe; font-weight: 600; }
.feed-main .f-line2 { font-size: 11px; color: var(--text-faint); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 460px; }
.feed-right { text-align: right; }
.feed-right .f-workers { font-family: var(--num-font); font-size: 16px; color: #fff; }
.feed-right .f-workers em { font-style: normal; font-size: 10px; color: var(--text-faint); }
.feed-right .f-wx { font-size: 10px; color: #07c160; margin-top: 2px; }

/* 数据管道 */
.pipeline { display: flex; flex-direction: column; gap: 8px; }
.pipe-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-dim); }
.pipe-row .p-num { font-family: var(--num-font); font-size: 16px; color: #fff; font-weight: 700; }
.pipe-row .p-num.ok { color: var(--green); }
.pipe-row .p-num.wait { color: var(--orange); }
.pipe-steps { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 4px; }
.pipe-step { flex: 1; text-align: center; font-size: 10.5px; color: var(--text-dim); position: relative; }
.pipe-step .s-dot {
  width: 22px; height: 22px;
  margin: 0 auto 3px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.5);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
}
.pipe-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 11px; left: 60%; right: -40%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), rgba(34, 211, 238, 0.2));
}

/* 天气图例小色块 */
.w-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11px; color: var(--text-dim); }
.w-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
