/* 《未来工坊》全局倒计时组件样式 - 全屏投屏、高压迫感 */
.fw-timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-width: 100vw;
  background: #0a0a0a;
  color: #fff;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  padding: 1rem;
  box-sizing: border-box;
}

.fw-timer__label {
  font-size: clamp(1rem, 3vw, 1.5rem);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.fw-timer__display {
  font-size: clamp(4rem, 25vw, 12rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.05em;
  color: #fff;
  transition: color 0.3s ease, transform 0.15s ease;
}

.fw-timer__display--warn {
  color: #ff4444;
}

.fw-timer__display--flash {
  animation: fw-timer-flash 0.8s ease-in-out infinite;
}

.fw-timer__display--end {
  color: #ff0000;
  animation: fw-timer-pulse 0.5s ease-in-out 3;
}

@keyframes fw-timer-flash {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}

@keyframes fw-timer-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

/* 步骤内嵌倒计时（显目、可点击） */
.fw-step-timer {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.fw-step-timer__label { opacity: 0.95; }
.fw-step-timer__display {
  font-variant-numeric: tabular-nums;
  min-width: 3.2em;
  text-align: center;
  font-size: 1.25em;
  letter-spacing: 0.05em;
}

.fw-step-timer--pending {
  background: #e5e7eb;
  color: #6b7280;
  opacity: 0.75;
}
.fw-step-timer--pending .fw-step-timer__pulse { display: none !important; }
.fw-step-timer--active {
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
  color: #fff;
  opacity: 1;
  box-shadow: 0 2px 8px rgba(13, 71, 161, 0.4);
  border: 2px solid rgba(255,255,255,0.3);
}
.fw-step-timer--active .fw-step-timer__display { color: #fff; font-size: 1.35em; }
.fw-step-timer--active.fw-step-timer--clickable:hover {
  transform: scale(1.02);
  box-shadow: 0 3px 12px rgba(13, 71, 161, 0.5);
}
.fw-step-timer--active .fw-step-timer__pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  margin-right: 0.25rem;
  animation: fw-step-timer-pulse 1s ease-in-out infinite;
}
.fw-step-timer--completed {
  background: #d1fae5;
  color: #065f46;
  opacity: 1;
  border: 2px solid #10b981;
}
.fw-step-timer--completed .fw-step-timer__display { font-size: 1.2em; }
.fw-step-timer--completed .fw-step-timer__hint,
.fw-step-timer--completed .fw-step-timer__pulse { display: none !important; }

.fw-step-timer--clickable { cursor: pointer; }
.fw-step-timer--clickable:hover { opacity: 0.95; }
.fw-step-timer__hint {
  font-size: 0.8em;
  font-weight: 600;
  opacity: 0.95;
  margin-left: 0.35rem;
  padding: 0.15rem 0.4rem;
  background: rgba(255,255,255,0.25);
  border-radius: 4px;
}
.fw-step-timer--pending .fw-step-timer__hint { display: none; }

@keyframes fw-step-timer-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* 大计时器：放在第一步前，按阶段倒计时 */
.fw-phase-timer-wrap {
  margin-bottom: 1.5rem;
}
.fw-phase-timer {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(13, 71, 161, 0.35);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
.fw-phase-timer__label {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  opacity: 0.95;
}
.fw-phase-timer__display {
  font-size: 2.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  line-height: 1.2;
}
.fw-phase-timer__hint {
  font-size: 0.85rem;
  margin-top: 0.6rem;
  opacity: 0.9;
}
.fw-phase-timer--clickable {
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
.fw-phase-timer--clickable:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(13, 71, 161, 0.45);
}
