/* 拍立得 / 全屏相片 / 心动回忆录
   —— 由 styles.css 第 4364–4475 行原样切分，规则与顺序未改动。 */
/* ====== 拍立得相纸 ====== */
.polaroid-card {
  background: #fff;
  padding: 12px 12px 20px 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
  border-radius: 4px;
  position: relative;
  width: 220px;
  transform: rotate(-2deg);
  transition: transform 0.2s;
  cursor: pointer;
}
.polaroid-card:active { transform: scale(0.98) rotate(0deg); }
.polaroid-tape {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%) rotate(2deg);
  width: 80px; height: 24px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(2px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border-left: 1px dashed rgba(0,0,0,0.1);
  border-right: 1px dashed rgba(0,0,0,0.1);
}
.polaroid-image {
  width: 100%; height: 180px;
  background-size: cover; background-position: center;
  border-radius: 2px;
  margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  background-color: #f5f5f5;
}
.polaroid-text {
  text-align: center;
  font-family: "Georgia", "KaiTi", serif;
}
.polaroid-title {
  font-size: 15px; font-weight: 600; color: #333;
  margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.polaroid-date {
  font-size: 11px; color: #999;
}

/* ====== 全屏放大相片 ====== */
.polaroid-fullscreen {
  position: absolute; inset: 0; z-index: 10025;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  overflow: hidden;
}
.polaroid-fullscreen .polaroid-card {
  width: 100%; max-width: 340px;
  transform: rotate(0deg);
  padding: 16px 16px 28px 16px;
}
.polaroid-fullscreen .polaroid-image {
  height: 240px;
}
.polaroid-highlight {
  background: #FFF0F5; color: #FF9CB9;
  padding: 8px 12px; border-radius: 8px;
  font-style: italic; font-weight: 600;
  margin: 12px 0; text-align: center;
}

/* ====== 心动回忆录（卡片夹） ====== */
.encounters-book-mask {
  position: absolute; inset: 0; z-index: 10026;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.encounters-book {
  width: 90%; max-width: 400px;
  height: 80vh;
  background: linear-gradient(135deg, #fdfbf7 0%, #f4eee1 100%);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.book-header {
  padding: 20px; text-align: center;
  font-size: 18px; font-weight: 600; color: #8a7b6b;
  border-bottom: 1px dashed #e0d6c8;
  position: relative;
}
.book-header .notice-close-btn {
  position: absolute; right: 16px; top: 16px;
}
.book-body {
  flex: 1; overflow-y: auto; padding: 24px;
  display: flex; justify-content: center; align-items: flex-start;
}
.polaroid-stack {
  display: flex; flex-direction: column; gap: 16px;
  width: 100%; align-items: center;
}
.polaroid-card.stack-item {
  transform: rotate(calc((var(--i) - 5) * 1deg)) translateY(calc(var(--i) * -10px));
  transition: all 0.3s;
}
.polaroid-card.stack-item:hover {
  transform: scale(1.05) rotate(0deg) translateY(-20px);
  z-index: 999 !important;
}

