/* 01 首页：问候 + 日子章 / 拆开的信封（他刚说的话、记忆照片、今天的日记）/ 四张邮票 */
.home-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; padding-left: 4px; }
.hello-en { font-size: 36px; line-height: 1; margin-top: 6px; }
.hello-zh { font-size: 23px; font-weight: 600; margin: 10px 0 0; letter-spacing: 1px; }
.hello-meta { font-size: 12px; margin-top: 8px; letter-spacing: .5px; }

/* 右上角的日子章 */
.day-stamp {
  width: 96px; height: 96px; border-radius: 50%;
  border: 2px dashed var(--c-pink); background: rgba(255, 253, 248, .7);
  transform: rotate(-10deg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--c-pink-ink);
}
.day-stamp small { font-family: var(--f-mono); font-size: 10px; letter-spacing: 2px; }
.day-stamp b { font-family: var(--f-mono); font-size: 30px; line-height: 1; }
.day-stamp span { font-size: 10px; margin-top: 2px; }

/* 信封：后片（打开的口）→ 信纸 + 照片 → 前片（V 形口袋）→ 火漆 → 写在正面的日记 */
.envelope { position: relative; height: 300px; margin-top: 44px; filter: drop-shadow(0 8px 14px rgba(var(--c-shadow), .16)); }
.envelope .back, .envelope .front { position: absolute; left: 0; width: 100%; pointer-events: none; }
.envelope .back { top: 0; height: 100%; }
.envelope .front { bottom: 0; height: 190px; }
.envelope .back path { fill: var(--env-back); }
.envelope .front .body { fill: var(--env-front); }
.envelope .front .edge { fill: none; stroke: var(--env-edge); stroke-width: 1.5; }

.letter {
  position: absolute; left: 6%; top: 24px; width: 55%; height: 190px;
  padding: 10px 14px 0; transform: rotate(-2deg); display: block;
  background-color: var(--c-paper);
  background-image: repeating-linear-gradient(transparent 0 21px, var(--c-line-blue) 21px 22px);
  box-shadow: 0 2px 6px rgba(var(--c-shadow), .12);
}
.letter .head { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; line-height: 22px; }
.letter p { margin: 0; font-size: 14px; line-height: 22px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.env-photo {
  position: absolute; right: 2%; top: -8px; width: 118px; padding: 7px 7px 0;
  background: var(--c-paper); transform: rotate(6deg); display: block;
  box-shadow: 0 4px 10px rgba(var(--c-shadow), .18);
}
.env-photo img, .env-photo .blank { width: 104px; height: 104px; object-fit: cover; }
.env-photo .blank { background: var(--c-paper-blue); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--c-ink-2); }
.env-photo .cap { font-size: 11px; padding: 6px 0 8px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.env-photo .clip { position: absolute; left: 16px; top: -12px; stroke: var(--clip); }

.seal { position: absolute; left: 50%; top: 156px; width: 44px; height: 44px; margin-left: -22px; filter: drop-shadow(0 2px 3px rgba(184, 106, 124, .35)); pointer-events: none; }
.seal .disc { fill: var(--seal); }
.seal .ring { fill: none; stroke: var(--seal-ring); stroke-width: 1.5; }
.seal .heart { fill: var(--c-paper); }

.env-diary { position: absolute; left: 7%; right: 7%; bottom: 14px; height: 70px; display: block; }
.env-diary .head { display: flex; justify-content: space-between; font-size: 11px; }
.env-diary p {
  margin: 4px 0 0; font-size: 13px; line-height: 22px;
  background-image: repeating-linear-gradient(transparent 0 21px, rgba(92, 132, 177, .45) 21px 22px);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 44px;
}

/* 寄往：四张邮票 */
.post-title { display: flex; align-items: center; gap: 10px; margin: 34px 0 0 4px; font-size: 13px; letter-spacing: 3px; }
.post-title svg { stroke: var(--c-pink); }
.stamps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.stamp {
  display: block; padding: 6px; filter: drop-shadow(0 3px 5px rgba(var(--c-shadow), .18));
  background: radial-gradient(circle at 5px 5px, transparent 3px, var(--c-paper) 3.5px) -5px -5px / 10px 10px;  /* 纸边的齿孔 */
  transition: transform .2s ease;
}
.stamp:nth-child(1) { transform: rotate(-3deg); }
.stamp:nth-child(2) { transform: rotate(2deg); }
.stamp:nth-child(3) { transform: rotate(-1deg); }
.stamp:nth-child(4) { transform: rotate(3deg); }
.stamp:active { transform: scale(.94); }
.stamp > span { height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; color: var(--c-ink); }
.stamp svg { width: 34px; height: 34px; }
.stamp.s1 > span { background: var(--stamp-1-bg); } .stamp.s1 svg { stroke: var(--stamp-1-ink); }
.stamp.s2 > span { background: var(--stamp-2-bg); } .stamp.s2 svg { stroke: var(--stamp-2-ink); }
.stamp.s3 > span { background: var(--stamp-3-bg); } .stamp.s3 svg { stroke: var(--stamp-3-ink); }
.stamp.s4 > span { background: var(--stamp-4-bg); } .stamp.s4 svg { stroke: var(--stamp-4-ink); }

/* 矮屏手机：信封和邮票收一点 */
@media (max-height: 720px) {
  .envelope { margin-top: 30px; }
  .post-title { margin-top: 22px; }
  .stamp > span { height: 76px; }
}
