/* 第四期 AI 数智沙龙 · 签到大屏 — 蓝图工程风（与主控 PPT 同源）
   画布 1920×1080，按视口等比缩放。只有一个强调色：图纸金 --acc */
:root {
  --bg: #0f3a66;
  --bg-deep: #0a2a4c;
  --panel: rgba(9, 37, 68, 0.78);
  --ink: #f2f6fa;
  --muted: #a9c1da;
  --faint: #7895b6;
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.07);
  --acc: #f2c14e;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --sans: "MiSans", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  --num: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Segoe UI", "Roboto", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  margin: -540px 0 0 -960px;
  transform-origin: 50% 50%;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 200px 200px, 200px 200px, 40px 40px, 40px 40px;
  background-position: -1px -1px;
  overflow: hidden;
}

/* 主控 PPT 封面的蓝图港口，压暗后铺在底部右侧，作为整张图纸的底稿 */
.sheet {
  position: absolute;
  inset: 0;
  background: url(/img/blueprint.webp) right bottom / 1920px auto no-repeat;
  opacity: 0.26;
  -webkit-mask-image: linear-gradient(180deg, transparent 20%, #000 75%);
  mask-image: linear-gradient(180deg, transparent 20%, #000 75%);
  pointer-events: none;
}

/* ---------- 页眉 ---------- */
.hd {
  position: absolute;
  left: 64px;
  right: 64px;
  top: 48px;
  height: 152px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
}

.meta {
  display: flex;
  gap: 24px;
  font: 500 18px/1 var(--num);
  color: var(--acc);
  letter-spacing: 0.08em;
}
.meta span + span { color: var(--muted); }

.hd h1 {
  margin-top: 20px;
  font-size: 56px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0;
}

.hd p {
  margin-top: 12px;
  font-size: 24px;
  color: var(--muted);
}

.hd-r {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 28px;
}

.logos { display: flex; gap: 32px; align-items: center; height: 44px; }
.logos img { height: 44px; width: auto; display: block; }

.clock { display: flex; align-items: baseline; gap: 16px; color: var(--muted); font-size: 20px; }
.clock b {
  font: 500 40px/1 var(--num);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------- 三栏 ---------- */
.col { position: absolute; top: 232px; height: 776px; display: flex; flex-direction: column; gap: 24px; }
.col-l { left: 64px; width: 360px; }
.col-c { left: 464px; width: 992px; gap: 0; }
.col-r { left: 1496px; width: 360px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}

.ph { display: flex; justify-content: space-between; align-items: baseline; height: 32px; margin-bottom: 16px; }
.ph h2 { font-size: 24px; font-weight: 500; }
.ph .unit { font-size: 16px; color: var(--faint); }

/* 部门排行：一条强调（第一名），其余中性 */
.rank { height: 412px; }
.bars { display: flex; flex-direction: column; }
.bar {
  display: grid;
  grid-template-columns: 124px 1fr 44px;
  align-items: center;
  gap: 12px;
  height: 32px;
}
.bar .nm { font-size: 18px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .tk { height: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 3px; overflow: hidden; }
.bar .fl {
  height: 100%;
  width: 0;
  background: rgba(242, 246, 250, 0.5);
  border-radius: 3px;
  transition: width 0.8s var(--ease);
}
.bar.lead .fl { background: var(--acc); }
.bar .vl {
  text-align: right;
  font: 500 22px/1 var(--num);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.bar.lead .vl { color: var(--acc); }
.bar.zero .nm, .bar.zero .vl { color: var(--faint); }
.rest { margin-top: 4px; height: 24px; font-size: 15px; color: var(--faint); }

/* 最新签到 */
.feed { flex: 1; }
.feed ol { list-style: none; }
.feed li {
  display: grid;
  grid-template-columns: 64px 96px 1fr;
  align-items: center;
  height: 40px;
  border-top: 1px solid var(--line-soft);
  font-size: 19px;
}
.feed li:first-child { border-top: 0; }
.feed .tm { font: 500 18px/1 var(--num); color: var(--faint); font-variant-numeric: tabular-nums; }
.feed .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .dp { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 17px; }
.feed li.empty { grid-template-columns: 1fr; color: var(--faint); font-size: 18px; }
.feed li.fresh { animation: rise 0.5s var(--ease); }

/* ---------- 中栏：暖场视频 ---------- */
.screen {
  position: relative;
  width: 992px;
  height: 558px;
  background: #06192e;
  border: 1px solid var(--line);
}
.screen video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 图纸角标：视频和二维码的四角各一个金色直角 */
.cn { position: absolute; width: 24px; height: 24px; border: 0 solid var(--acc); pointer-events: none; }
.cn.tl { left: -9px; top: -9px; border-left-width: 2px; border-top-width: 2px; }
.cn.tr { right: -9px; top: -9px; border-right-width: 2px; border-top-width: 2px; }
.cn.bl { left: -9px; bottom: -9px; border-left-width: 2px; border-bottom-width: 2px; }
.cn.br { right: -9px; bottom: -9px; border-right-width: 2px; border-bottom-width: 2px; }

.snd {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 25, 46, 0.82);
  color: var(--ink);
  font: 500 17px/1 var(--sans);
  cursor: pointer;
  transition: opacity 0.4s var(--ease), background-color 0.2s var(--ease);
}
.snd:hover { background: rgba(6, 25, 46, 0.95); }
.snd svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.snd #sndWave { display: none; }
.snd.on #sndWave { display: inline; }
.snd.on #sndOff { display: none; }
.snd.gone { opacity: 0; pointer-events: none; }

/* 尺寸标注线：本场的签名细节 */
.dim {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 24px;
  margin: 16px 0 24px;
  color: var(--faint);
  font-size: 16px;
}
.dim i { position: relative; flex: 1; height: 1px; background: rgba(242, 193, 78, 0.55); }
.dim i::before { content: ""; position: absolute; top: -6px; width: 1px; height: 13px; background: rgba(242, 193, 78, 0.8); }
.dim i:first-child::before { left: 0; }
.dim i:last-child::before { right: 0; }

/* 欢迎条：每来一位同事，这里换成他的名字 */
.welcome {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--acc);
  border-radius: 6px;
  transition: border-color 1.2s var(--ease), background-color 1.2s var(--ease);
}
.welcome .w-k { font-size: 22px; color: var(--muted); }
.welcome b { font-size: 44px; font-weight: 500; white-space: nowrap; }
.welcome .w-d { font-size: 24px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.welcome .w-no { margin-left: auto; font-size: 22px; color: var(--muted); white-space: nowrap; }
.welcome .w-no b { font: 500 40px/1 var(--num); color: var(--acc); margin: 0 6px; font-variant-numeric: tabular-nums; }
.welcome.idle b { font-size: 30px; color: var(--ink); }
.welcome.hit { border-color: rgba(242, 193, 78, 0.85); background-color: rgba(9, 37, 68, 0.95); }
.welcome.swap b, .welcome.swap .w-d { animation: rise 0.5s var(--ease); }

/* ---------- 右栏 ---------- */
.kpi { height: 340px; }
.big { display: flex; align-items: baseline; gap: 12px; height: 200px; }
.big b {
  font: 600 208px/1 var(--num);
  color: var(--acc);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.big span { font-size: 40px; color: var(--muted); }
.big.pop b { animation: pop 0.6s var(--ease); }
.kpi .sub { margin-top: 12px; font-size: 18px; color: var(--muted); }
.kpi .sub span { font: 500 22px/1 var(--num); color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi .sub em { font-style: normal; margin: 0 10px; color: var(--faint); }

.qr { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.qr-card { position: relative; padding: 12px; background: #fff; border-radius: 4px; line-height: 0; }
.qr-t { margin-top: 20px; font-size: 28px; font-weight: 500; letter-spacing: 0.2em; }
.qr-u { margin-top: 8px; font: 400 18px/1 var(--num); color: var(--faint); }


@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.04); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
