/* 一周执行小结 · 弹层 */
.week-recap-overlay {
  position: fixed;
  inset: 0;
  z-index: 64;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px 16px 28px;
  background: rgba(8, 10, 22, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
}
.week-recap-overlay.show { display: flex !important; }
body.week-recap-open { overflow: hidden; }

.week-recap-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: min(380px, 100%);
  max-height: min(94vh, 880px);
  position: relative;
}
.week-recap-close-fab {
  position: absolute;
  top: -6px;
  right: -4px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: #f1f5f9;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: background 0.2s, transform 0.15s;
}
.week-recap-close-fab:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.05);
}
.week-recap-stage {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 4px 0;
  filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.45));
}
.week-recap-preview-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}
.week-recap-canvas {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  aspect-ratio: 360 / 640;
  border-radius: 22px;
  outline: 1px solid rgba(255, 255, 255, 0.08);
}
/* 预览：外框严格 360:640（9:16），内层 360×640 等比缩放，避免高度被裁切 */
.week-recap-stage .wk-poster-wrap {
  container-type: inline-size;
  width: min(360px, 100%);
  aspect-ratio: 360 / 640;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  position: relative;
}
.week-recap-stage .wk-poster-scale {
  position: absolute;
  left: 0;
  top: 0;
  width: 360px;
  height: 640px;
  transform: scale(calc(100cqw / 360));
  transform-origin: top left;
}
.week-recap-stage .wk-poster-scale .wk-poster {
  width: 360px;
  height: 640px;
  margin: 0;
  border-radius: inherit;
  box-shadow: none;
}
.week-recap-save-btn {
  width: 100%;
  max-width: 340px;
  padding: 14px 20px;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 48%, #2563eb 100%);
  box-shadow: 0 8px 28px rgba(79, 70, 229, 0.45);
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}
.week-recap-save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.55);
}
.week-recap-save-btn:active { transform: translateY(0); }
.week-recap-save-btn.week-recap-saving {
  opacity: 0.65;
  pointer-events: none;
}
@media (max-width: 480px) {
  .week-recap-overlay { padding: 12px 10px 20px; }
  .week-recap-close-fab { top: 0; right: 0; }
  .week-recap-save-btn { padding: 12px 16px; font-size: 14px; }
}
