﻿/* ============================================================
   宣传片：白底、大字号、少颜色。干净的产品片，不靠特效。
   ============================================================ */
.promo {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #fff;
  color: var(--ink, #1d1d1f);
  opacity: 0;
  transition: opacity .45s ease, background-color .65s ease, color .45s ease;
  font-family: var(--font, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif);
  -webkit-font-smoothing: antialiased;
}
.promo[hidden] { display: none; }
.promo.is-open { opacity: 1; }
.promo.is-dark { background: #000; color: #f5f5f7; }

.promo-stage { position: absolute; inset: 0; overflow: hidden; }

.promo-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(20px, 3vw, 40px);
  pointer-events: none;
}
.promo-top > * { pointer-events: auto; }
.promo-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  color: rgba(0, 0, 0, .48);
  white-space: nowrap;
}
.promo-brand i {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 7px;
  background: #1d1d1f;
  color: #fff;
  font-style: normal;
  font-size: 9px;
  letter-spacing: .04em;
}
.promo.is-dark .promo-brand { color: rgba(255, 255, 255, .55); }
.promo.is-dark .promo-brand i { background: #f5f5f7; color: #000; }
.promo-skip {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, .14);
  background: rgba(255, 255, 255, .6);
  color: rgba(0, 0, 0, .62);
  border-radius: 999px;
  padding: 8px 13px;
  font: inherit;
  font-size: 11px;
  letter-spacing: .04em;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.promo-skip kbd {
  font: inherit;
  font-size: 9px;
  opacity: .55;
  margin-left: 5px;
}
.promo.is-dark .promo-skip { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .7); }

.promo-scenes { position: absolute; inset: 0; }
.ps-scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(64px, 9vh, 108px) clamp(22px, 6vw, 96px) clamp(56px, 8vh, 92px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s ease, visibility .55s;
}
.ps-scene.is-active { opacity: 1; visibility: visible; }
.ps-scene.ps-center { text-align: center; }
.ps-inner { width: 100%; max-width: 1080px; }

.ps-eyebrow {
  font-size: 10px;
  letter-spacing: .22em;
  font-weight: 600;
  color: var(--ink-2, #86868b);
  text-transform: uppercase;
  margin-bottom: clamp(16px, 2.4vh, 26px);
}
.ps-dark .ps-eyebrow { color: rgba(255, 255, 255, .45); }

.ps-display {
  margin: 0;
  font-size: clamp(48px, 8.2vw, 120px);
  line-height: 1.26;
  letter-spacing: -.06em;
  font-weight: 600;
}
.ps-display span { display: block; }
.ps-display span:last-child { color: var(--accent, #0071e3); }
.ps-sub {
  margin: clamp(20px, 3vh, 32px) 0 0;
  font-size: 12px;
  letter-spacing: .26em;
  color: var(--ink-2, #86868b);
}

.ps-split {
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 96px);
}
.ps-copy { min-width: 0; }
.ps-h2 {
  margin: 0;
  font-size: clamp(36px, 4.7vw, 72px);
  line-height: 1.22;
  letter-spacing: -.055em;
  font-weight: 600;
}
.ps-p {
  margin: clamp(16px, 2.4vh, 24px) 0 0;
  max-width: 30em;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2, #6e6e73);
}

/* 界面示意卡片 */
.ps-ui {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 22px;
  padding: clamp(16px, 2vw, 22px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .07), 0 2px 8px rgba(0, 0, 0, .03);
  color: #1d1d1f;
  text-align: left;
}
.ps-ui-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ps-ui-head b { font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.ps-ui-head span { font-size: 9px; letter-spacing: .08em; color: #a1a1a6; }

.ps-dash-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0 14px;
}
.ps-big {
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ps-big small { font-size: 13px; font-weight: 500; color: #86868b; margin-left: 4px; letter-spacing: 0; }
.ps-cap { margin-top: 7px; font-size: 10px; color: #86868b; letter-spacing: .06em; }
.ps-ring { width: clamp(84px, 9vw, 118px); height: auto; transform: rotate(-90deg); }
.ps-ring circle { fill: none; stroke-width: 3; }
.ps-ring-bg { stroke: #ededf0; }
.ps-ring-fg { stroke: var(--accent, #0071e3); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 26; }

.ps-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-top: 1px solid #ededf0;
  padding-top: 14px;
}
.ps-metrics b { display: block; font-size: clamp(18px, 2vw, 23px); font-weight: 600; letter-spacing: -.03em; }
.ps-metrics span { display: block; margin-top: 4px; font-size: 9px; color: #86868b; letter-spacing: .05em; }

.ps-bars { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.ps-bars i {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent, #0071e3), color-mix(in srgb, var(--accent, #0071e3) 35%, #fff));
  width: var(--w, 60%);
  opacity: .85;
}

/* 出勤名单 */
.ps-roster { padding-bottom: 16px; }
.ps-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid #f0f0f2;
  font-size: 13px;
}
.ps-row:first-of-type { border-top: 0; }
.ps-num { width: 26px; flex: 0 0 auto; text-align: center; font-size: 10px; color: #a1a1a6; font-variant-numeric: tabular-nums; }
.ps-name { flex: 1; min-width: 0; font-weight: 500; letter-spacing: -.01em; }
.ps-name small { margin-left: 7px; font-size: 9px; color: #a1a1a6; font-weight: 400; letter-spacing: .04em; }
.ps-chip {
  font-size: 9px;
  letter-spacing: .04em;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f2f2f5;
  color: #86868b;
}
.ps-chip.ok { background: rgba(52, 199, 89, .12); color: #248a3d; }
.ps-chip.warn { background: rgba(255, 149, 0, .13); color: #b25f00; }
.ps-chip.off { background: #f2f2f5; color: #86868b; }
.ps-roster-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid #ededf0;
  margin-top: 10px;
  padding-top: 14px;
  font-size: 10px;
  color: #86868b;
}
.ps-roster-foot b { font-size: 20px; font-weight: 600; color: #1d1d1f; letter-spacing: -.03em; }

/* 训练表 */
.ps-plan-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 3px 12px;
  padding: 10px 0;
  border-top: 1px solid #f0f0f2;
}
.ps-plan-row:first-of-type { border-top: 0; }
.ps-plan-row span { font-size: 9px; color: #a1a1a6; letter-spacing: .04em; padding-top: 2px; }
.ps-plan-row b { font-size: 12px; font-weight: 500; letter-spacing: -.01em; }
.ps-plan-row small { grid-column: 2; font-size: 10px; color: #86868b; line-height: 1.6; }

/* 计时 */
.ps-timer-wrap { width: 100%; max-width: 900px; }
.ps-timer {
  font-size: clamp(92px, 16vw, 208px);
  font-weight: 600;
  letter-spacing: -.075em;
  line-height: .92;
  font-variant-numeric: tabular-nums;
}
.ps-timer-wrap .ps-cap { margin-top: 14px; font-size: 11px; letter-spacing: .16em; }
.ps-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: clamp(20px, 3vh, 30px); }
.ps-pills span {
  padding: 7px 14px;
  border: 1px solid #d2d2d7;
  border-radius: 999px;
  font-size: 10px;
  color: #86868b;
}
.ps-pills span.on { background: #1d1d1f; border-color: #1d1d1f; color: #fff; }
.ps-center-p { margin-left: auto; margin-right: auto; text-align: center; }

/* 片尾 */
.ps-dark .ps-final-mark {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  margin-bottom: clamp(22px, 3.4vh, 34px);
  border-radius: 10px;
  background: #f5f5f7;
  color: #000;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.ps-final {
  margin: 0;
  font-size: clamp(42px, 6.6vw, 90px);
  line-height: 1.34;
  letter-spacing: -.06em;
  font-weight: 600;
}
.ps-final-sub { margin: 18px 0 0; font-size: 11px; letter-spacing: .22em; color: rgba(255, 255, 255, .5); }
.ps-enter {
  appearance: none;
  margin-top: clamp(28px, 4vh, 44px);
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  background: #f5f5f7;
  color: #000;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease;
}
.ps-enter:hover { transform: scale(1.035); background: #fff; }
.ps-enter span { margin-left: 6px; }

/* 进度 */
.promo-progress {
  position: absolute;
  left: clamp(20px, 3vw, 40px);
  right: clamp(20px, 3vw, 40px);
  bottom: 20px;
  z-index: 5;
  display: flex;
  gap: 6px;
}
.promo-progress i { position: relative; flex: 1; height: 2px; background: rgba(0, 0, 0, .1); overflow: hidden; }
.promo-progress i.is-done { background: #1d1d1f; }
.promo-progress i.is-active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent, #0071e3);
  transform-origin: 0 50%;
  animation: prFill var(--dur, 3s) linear forwards;
}
.promo.is-dark .promo-progress i { background: rgba(255, 255, 255, .18); }
.promo.is-dark .promo-progress i.is-done { background: #f5f5f7; }

/* 入场 */
.ps-scene.is-active .ps-eyebrow { animation: prUp .7s .04s cubic-bezier(.16, 1, .3, 1) both; }
.ps-scene.is-active .ps-display span { animation: prUp 1s .1s cubic-bezier(.16, 1, .3, 1) both; }
.ps-scene.is-active .ps-display span + span { animation-delay: .22s; }
.ps-scene.is-active .ps-h2 { animation: prUp .9s .1s cubic-bezier(.16, 1, .3, 1) both; }
.ps-scene.is-active .ps-p { animation: prUp .85s .26s cubic-bezier(.16, 1, .3, 1) both; }
.ps-scene.is-active .ps-sub { animation: prUp .8s .46s cubic-bezier(.16, 1, .3, 1) both; }
.ps-scene.is-active .ps-ui { animation: prCard 1.05s .16s cubic-bezier(.16, 1, .3, 1) both; }
.ps-scene.is-active .ps-row { animation: prRow .6s both; animation-delay: calc(.3s + var(--i) * .09s); }
.ps-scene.is-active .ps-plan-row { animation: prRow .6s both; animation-delay: calc(.24s + var(--i) * .08s); }
.ps-scene.is-active .ps-timer { animation: prTimer 1s .08s cubic-bezier(.16, 1, .3, 1) both; }
.ps-scene.is-active .ps-pills { animation: prUp .7s .42s both; }
.ps-scene.is-active .ps-final-mark { animation: prUp .8s .1s both; }
.ps-scene.is-active .ps-final { animation: prUp 1s .2s cubic-bezier(.16, 1, .3, 1) both; }
.ps-scene.is-active .ps-final-sub { animation: prUp .7s .48s both; }
.ps-scene.is-active .ps-enter { animation: prUp .7s .62s both; }

.promo.is-static .ps-scene * { animation: none !important; }
.promo.is-static .promo-progress i::after { animation: none !important; }

@keyframes prUp {
  from { opacity: 0; transform: translateY(26px); filter: blur(9px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes prCard {
  from { opacity: 0; transform: translateY(34px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes prRow {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes prTimer {
  from { opacity: 0; transform: scale(.94); letter-spacing: -.02em; filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes prFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 820px) {
  .ps-scene { padding: 78px 22px 54px; align-items: flex-start; overflow-y: auto; }
  .ps-split { grid-template-columns: 1fr; gap: 24px; }
  .ps-h2 { font-size: clamp(32px, 8vw, 46px); }
  .ps-display { font-size: clamp(42px, 11vw, 64px); }
  .ps-p { font-size: 13px; line-height: 1.7; }
  .ps-ui { border-radius: 18px; }
  .ps-big { font-size: 40px; }
  .ps-ring { width: 82px; }
  .ps-metrics b { font-size: 17px; }
  .ps-timer { font-size: clamp(76px, 20vw, 120px); }
  .ps-final { font-size: clamp(36px, 9vw, 52px); }
  .promo-progress { bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .ps-scene.is-active * { animation-duration: .01ms !important; animation-delay: 0ms !important; }
  .promo-progress i.is-active::after { animation-duration: 1ms !important; }
}



