/* =========================================================================
   戎糖小记 · contact.css — 留言页
   1) 首图：卡片式（与关于页同一套机制），浅粉插画 + 深色字，
      滚动时卡片收缩、文字上移淡出
   2) Find us · 找到我们：两张二维码卡片 + 悄悄话（只给站长看）
   3) 留言墙：软木板 + 大头钉便签，手写感、随机角度、悬停转正
   ========================================================================= */

/* ============================================================ 首图 */
.ct-hero {
  position: relative;
  background: transparent;
  /* 视口很矮时（约 620px 以下）不再压缩首图，让整块按正常高度滚动 */
  --ct-hero-h: max(100svh, 620px);
}
@media (min-width: 900px) and (min-aspect-ratio: 1 / 1) {
  .ct-hero_pad { padding: 0; }
}

.ct-hero_scroll { position: relative; isolation: isolate; }
@media (min-width: 900px) and (min-aspect-ratio: 1 / 1) {
  .ct-hero_scroll {
    height: calc(var(--ct-hero-h) * 1.72);
  }
}

.ct-hero_sticky {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0;
}
.ct-hero_sticky > .shell { position: relative; z-index: 1; }
@media (min-width: 900px) and (min-aspect-ratio: 1 / 1) {
  .ct-hero_sticky {
    position: sticky;
    top: 0;
    height: var(--ct-hero-h);
  }
}

/* 背景卡片：钉在视口里，随滚动原地收缩 */
.ct-hero_card {
  position: relative;
  height: 54svh;
  min-height: 300px;
  overflow: hidden;
  /* 开场是「一张纸 + 一只小信封」，所以底色就是纸色，不是照片
     （四片遮罩用的也是同一个色 —— 改这里要一起改 .ct-hero_shut） */
  background: #fff6f8;
  pointer-events: none;
}
@media (min-width: 900px) and (min-aspect-ratio: 1 / 1) {
  .ct-hero_card {
    position: absolute;
    inset: clamp(6px, .5vw, 8px) clamp(6px, .5vw, 8px) 0;
    height: auto;
    min-height: 0;
    z-index: 0;
    border-radius: 22px;
    /* 前 38%：文字退场；之后卡片才收进画面，像一张装裱好的照片 */
    transform: scale(calc(1 - max(0, var(--progress, 0) - .38) * .55));
    box-shadow: 0 24px 60px rgba(190, 120, 135, .16);
  }
}
.ct-hero_media { position: absolute; inset: 0; }
@media (min-width: 900px) and (min-aspect-ratio: 1 / 1) {
  .ct-hero_media { transform: scale(calc(1 + var(--progress, 0) * .32)); }
}
.ct-hero_img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 76% 44%;
  z-index: 0;
}
/* 蒙版：和首页 / 小记 / 相册同一套 —— 整张压暗，字反过来用白的。
   左下角（文字这一侧）再补一团暗，字压在云上也不会糊。 */
.ct-hero_scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(110% 86% at 6% 80%,
      rgba(20, 13, 16, .74) 0%,
      rgba(20, 13, 16, .30) 46%,
      rgba(20, 13, 16, 0) 74%),
    linear-gradient(180deg,
      rgba(24, 15, 18, .58) 0%,
      rgba(24, 15, 18, .14) 34%,
      rgba(24, 15, 18, .30) 62%,
      rgba(24, 15, 18, .80) 100%);
}

/* 文字 */
.ct-hero_body {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 6vw, 34px) 0 clamp(26px, 7vw, 38px);
}
@media (min-width: 900px) and (min-aspect-ratio: 1 / 1) {
  .ct-hero_body {
    padding: 0;
    transform: translateY(calc(var(--progress, 0) * -5%));
    opacity: clamp(0, calc(1 - var(--progress, 0) * 5), 1);
  }
}
.ct-hero_text { max-width: 30rem; }
.ct-hero .eyebrow { color: var(--pink-soft); text-shadow: 0 1px 12px rgba(18, 10, 13, .45); }
.ct-hero .eyebrow::after { background: linear-gradient(90deg, #fff, var(--pink)); }
.ct-hero_title {
  margin: 0 0 18px;
  font-size: clamp(38px, 12.4vw, 56px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.015em;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .28);
  text-wrap: balance;
}
.ct-hero_title em {
  font-style: normal;
  background: linear-gradient(112deg, var(--rose), var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (min-width: 900px) and (min-aspect-ratio: 1 / 1) {
  .ct-hero_title { font-size: clamp(46px, 6.4vw, 86px); }
}
.ct-hero_lede {
  font-size: clamp(14px, 3.9vw, 16.5px);
  line-height: 1.95;
  color: rgba(255, 255, 255, .86);
  max-width: 27em;
}
.ct-hero_acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: clamp(22px, 4.4vw, 32px);
}
.ct-hero_down {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em;
  color: rgba(255, 255, 255, .82);
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, .42);
  transition: color .25s, border-color .25s;
}
.ct-hero_down:hover { color: #fff; border-color: #fff; }
.ct-hero_down svg { width: 12px; height: 12px; }
.ct-hero_down path {
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* 窄屏 / 竖屏：首图铺满整屏，文字压在底部那层渐变上（回到最初的样子） */
@media (max-width: 899px), (max-aspect-ratio: 1 / 1) {
  .ct-hero { background: #fffafb; }
  .ct-hero_sticky {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: auto;
    min-height: 100svh;
  }
  /* 卡片退成整屏背景 */
  .ct-hero_card {
    position: absolute;
    inset: 0;
    height: auto;
    min-height: 0;
    border-radius: 0;
  }
  .ct-hero_img { object-position: 60% 42%; }
  /* 手机：字压在底部，暗部跟着往下压，上面留一点让画露出来 */
  .ct-hero_scrim {
    display: block;
    background:
      radial-gradient(122% 64% at 10% 102%,
        rgba(20, 13, 16, .78) 0%,
        rgba(20, 13, 16, .32) 50%,
        rgba(20, 13, 16, 0) 78%),
      linear-gradient(180deg,
        rgba(24, 15, 18, .62) 0%,
        rgba(24, 15, 18, .26) 9%,
        rgba(24, 15, 18, .08) 24%,
        rgba(24, 15, 18, .12) 52%,
        rgba(24, 15, 18, .68) 82%,
        rgba(24, 15, 18, .86) 100%);
  }
  .ct-hero_sticky > .shell { width: 100%; }
  .ct-hero_body { padding: clamp(24px, 6vw, 34px) 0 clamp(32px, 8vw, 52px); }
  .ct-hero .eyebrow { color: var(--pink-soft); text-shadow: 0 1px 12px rgba(18, 10, 13, .45); }
}

/* ============================================================ 区块头 */
.ct-head {
  max-width: 44rem;
  margin: 0 auto clamp(26px, 5vw, 46px);
  text-align: center;
}
.ct-head .eyebrow { margin-bottom: 14px; }
.ct-head_lede { margin: 14px auto 0; text-align: center; }

/* 悬停提示只在有鼠标的设备上出现 */
.ct-only-mob { display: none; }
@media (max-width: 899px), (hover: none) {
  .ct-only-desk { display: none; }
  .ct-only-mob { display: inline; }
}

/* ============================================================ Find us
   三张一样的白卡：公众号 / 小程序 / 建议箱。
   上面一条浅粉标签，中间码或表单，底下留白把按钮推到卡底。
   ============================================================ */
.find-grid {
  display: grid;
  gap: clamp(14px, 2.2vw, 20px);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 680px) {
  .find-grid { grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); }
}

.find-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(14px, 1.8vw, 18px) clamp(14px, 1.8vw, 18px) clamp(16px, 2vw, 20px);
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(255, 188, 197, .34);
  box-shadow: 0 16px 36px -24px rgba(190, 110, 130, .5), 0 2px 6px rgba(190, 110, 130, .05);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
@media (hover: hover) {
  .find-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 46px -26px rgba(190, 110, 130, .55), 0 2px 8px rgba(190, 110, 130, .07);
  }
}

/* 顶部标签：整条浅粉胶囊 */
.find-card_tag {
  width: 100%;
  padding: 8px 12px;
  border-radius: 11px;
  background: var(--pink-mist);
  color: var(--rose-ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.5;
}

.find-card_qr {
  display: block;
  width: min(202px, 64%);
  margin: clamp(18px, 2.6vw, 26px) auto 0;
  padding: 0;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
  transition: transform .45s var(--ease);
}
.find-card_qr img { width: 100%; height: 100%; object-fit: contain; }
@media (hover: hover) {
  .find-card_qr:hover { transform: scale(1.03); }
}

.find-card_name {
  margin-top: clamp(13px, 1.8vw, 17px);
  font-family: var(--font-round);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink);
  text-align: center;
}
.find-card_desc {
  margin-top: 6px;
  max-width: 17em;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-3);
  text-align: center;
}
/* 按钮推到卡底，三张卡对齐 */
.find-card_foot { margin-top: auto; padding-top: clamp(20px, 3.2vw, 34px); }
.find-card_btn {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 143, 163, .55);
  background: #fff;
  color: var(--rose-ink);
  font-size: 12px;
  letter-spacing: .06em;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.find-card_btn:hover,
.find-card_btn:focus-visible {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}

/* 手机：二维码卡改成横排 —— 码在左、名字说明在右、按钮在右下（参考图的样子） */
@media (max-width: 679px) {
  .find-card {
    display: grid;
    grid-template-columns: minmax(0, 96px) minmax(0, 1fr);
    grid-template-areas:
      'tag  tag'
      'qr   info'
      'foot foot';
    align-items: center;
    gap: 14px 16px;
    padding: 12px 16px 14px;
    border-radius: 20px;
  }
  .find-card_tag { grid-area: tag; padding: 9px 12px; }
  .find-card_qr { grid-area: qr; width: 100%; margin: 0; }
  .find-card_info { grid-area: info; min-width: 0; text-align: center; }
  .find-card_name { margin-top: 0; font-size: 16px; }
  .find-card_desc { margin: 5px auto 0; font-size: 11.5px; max-width: none; }
  .find-card_foot {
    grid-area: foot;
    padding-top: 0;
    display: flex;
    justify-content: flex-end;
  }
  .find-card_btn { padding: 7px 18px; }

  /* 建议箱还是竖着来，只是输入框给高一点 */
  .find-card--suggest {
    display: flex;
    padding: 12px 16px 18px;
  }
  .find-card--suggest .suggest_text { min-height: 150px; }
}

/* ------------------------------------------------------------ 建议箱 */
.find-card--suggest { align-items: stretch; text-align: center; }
.suggest_title {
  margin-top: clamp(14px, 2vw, 18px);
  font-size: clamp(19px, 2.3vw, 22px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
}
.suggest_desc {
  margin: 8px auto 0;
  max-width: 24em;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-3);
}

.suggest_form {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: clamp(18px, 2.4vw, 24px);
  text-align: left;
}
.suggest_text {
  width: 100%;
  min-height: 104px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: #fff7f8;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink);
  resize: vertical;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.suggest_text::placeholder { color: #cbb7bb; }
.suggest_text:focus {
  outline: none;
  background: #fff;
  border-color: var(--pink-soft);
  box-shadow: 0 0 0 3px rgba(255, 188, 197, .26);
}
.suggest_count {
  align-self: flex-end;
  margin-top: -5px;
  font-size: 10.5px;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}
.suggest_contact {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: #fff7f8;
  font-size: 12.5px;
  color: var(--ink);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.suggest_contact::placeholder { color: #cbb7bb; }
.suggest_contact:focus {
  outline: none;
  background: #fff;
  border-color: var(--pink-soft);
  box-shadow: 0 0 0 3px rgba(255, 188, 197, .26);
}

.suggest_actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 3px;
}
.suggest_status {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-4);
}
.suggest_status.is-ok { color: #2f8a6b; }
.suggest_status.is-bad { color: #cf4c4c; }
.suggest_send {
  flex: none;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  box-shadow: 0 10px 20px -12px rgba(255, 143, 163, .95);
  transition: background .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.suggest_send:hover { background: var(--rose-ink); transform: translateY(-1px); }
.suggest_send:disabled { background: #f7c6cf; box-shadow: none; transform: none; cursor: default; }

.suggest_foot {
  margin-top: clamp(12px, 2vw, 16px);
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 188, 197, .7);
  font-size: 11px;
  line-height: 1.85;
  color: var(--ink-3);
  text-align: center;
}
.suggest_foot b { color: var(--rose-ink); font-weight: 700; }
.suggest_note {
  margin-top: 6px;
  font-size: 10.5px;
  color: var(--ink-4);
  text-align: center;
}

/* ============================================================ 留言墙
   这一块不再是一排白卡片：一面浅粉的纸墙（极细的点阵），
   中间一块纸板，纸条用和纸胶带贴上去、各自微微歪着。
   ------------------------------------------------------------ */
.section.ct-wall {
  background: linear-gradient(180deg, #fffafb 0%, #fdeaf0 100%);
}
.wall-count {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-2);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--ink-3);
}
.wall-count b { color: var(--rose-ink); font-weight: 700; }

/* ------------------------------------------------------------ 写卡片 */
.wall-write {
  max-width: 640px;
  margin: 0 auto clamp(24px, 4vw, 38px);
}
.wall-form {
  padding: clamp(14px, 2vw, 18px);
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(255, 188, 197, .34);
  box-shadow: 0 18px 40px -28px rgba(190, 110, 130, .65), 0 2px 6px rgba(190, 110, 130, .05);
}
.wall-form_top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}
.wall-form_count {
  font-size: 11px;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
  flex: none;
}

/* 云端 / 本地 分段开关 */
.wall-mode {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--pink-mist);
}
.wall-mode_btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-3);
  transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.wall-mode_btn svg {
  width: 14px; height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wall-mode_btn.is-on {
  background: #fff;
  color: var(--rose-ink);
  font-weight: 700;
  box-shadow: 0 3px 10px -3px rgba(190, 110, 130, .4);
}

.wall-form_text {
  display: block;
  width: 100%;
  min-height: 100px;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #fff7f8;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink);
  resize: vertical;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.wall-form_text::placeholder { color: #cbb7bb; }
.wall-form_text:focus {
  outline: none;
  background: #fff;
  border-color: var(--pink-soft);
  box-shadow: 0 0 0 3px rgba(255, 188, 197, .26);
}

.wall-form_row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 9px;
}
.wall-form_input {
  flex: 1 1 132px;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  font-size: 12.5px;
  color: var(--ink);
  transition: border-color .3s, box-shadow .3s;
}
.wall-form_input::placeholder { color: var(--ink-4); }
.wall-form_input:focus {
  outline: none;
  border-color: var(--pink-soft);
  box-shadow: 0 0 0 3px rgba(255, 188, 197, .22);
}
.wall-form_submit {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px 10px 22px;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  box-shadow: 0 12px 22px -14px rgba(255, 143, 163, 1);
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.wall-form_submit svg {
  width: 15px; height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wall-form_submit:hover { background: var(--rose-ink); transform: translateY(-1px); }
.wall-form_submit:disabled { background: #f7c6cf; box-shadow: none; transform: none; cursor: default; }

/* 窄屏：输入框各占一行，按钮通栏，别挤在一行里 */
@media (max-width: 559px) {
  .wall-form_input { flex: 1 1 100%; }
  .wall-form_submit { flex: 1 1 100%; justify-content: center; }
}

.wall-form_tip {
  margin-top: 9px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink-4);
}

/* ------------------------------------------------------------ 纸板
   卡片都贴在这块板子上，有一个边界才像「一面墙」，而不是散落的卡片 */
.wall-board {
  position: relative;
  padding: clamp(26px, 4vw, 42px) clamp(18px, 3vw, 30px) clamp(30px, 4.4vw, 48px);
  border-radius: 28px;
  background:
    radial-gradient(rgba(188, 138, 156, .15) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(180deg, #fffdfe 0%, #fff1f6 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 188, 197, .55),
    inset 0 2px 0 rgba(255, 255, 255, .95),
    0 24px 50px -36px rgba(180, 100, 120, .5);
}

/* ------------------------------------------------------------ 纸条网格
   不用 CSS 多栏：多栏是「先填满一列再换列」，阅读顺序会跳。
   这里由 js 把卡片按顺序放进高度最矮的那一列，从左往右、瀑布流。 */
.wall-grid {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 2vw, 20px);
}
.wall-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  /* 留出胶带伸出卡片的那一截 */
  gap: clamp(26px, 3.2vw, 36px);
}

/* 一张纸条：直角、哑光、落在板子上的影子软而短 */
.wall-card {
  position: relative;
  margin: 0;
  padding: clamp(20px, 2.4vw, 24px) clamp(16px, 2vw, 19px) clamp(17px, 2.1vw, 21px);
  border-radius: 3px;
  /* 只有四个字的留言也要像「一张纸」，不能缩成一条标签 */
  min-height: 138px;
  /* 顶部一层极淡的高光，纸才有「面」，不是一块色块 */
  background:
    /* 一层高光 + 一层几乎看不见的斜纹（纸纤维），不是一块纯色 */
    linear-gradient(172deg, rgba(255, 255, 255, .72) 0%, rgba(255, 255, 255, 0) 48%),
    repeating-linear-gradient(96deg,
      rgba(120, 88, 94, .022) 0 1px,
      rgba(120, 88, 94, 0) 1px 5px),
    var(--paper, #fffdf9);
  box-shadow:
    inset 0 0 0 1px rgba(150, 96, 110, .075),
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 2px 3px rgba(150, 96, 110, .10),
    0 16px 26px -15px rgba(150, 96, 110, .48),
    0 4px 8px -4px rgba(150, 96, 110, .18);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
@media (hover: hover) {
  .wall-card:hover {
    z-index: 1;
    transform: rotate(0deg) translateY(-4px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .85),
      0 2px 4px rgba(150, 96, 110, .1),
      0 22px 34px -20px rgba(150, 96, 110, .5);
  }
}

/* 和纸胶带：半透明、带斜纹、两头撕得不齐 */
.wall-card::before {
  content: '';
  position: absolute;
  top: -11px;
  left: var(--tape-x, 18%);
  width: 78px;
  height: 25px;
  transform: rotate(-3.2deg);
  background:
    repeating-linear-gradient(104deg,
      rgba(255, 255, 255, .38) 0 4px,
      rgba(255, 255, 255, 0) 4px 9px),
    var(--tape, rgba(255, 186, 200, .62));
  clip-path: polygon(3% 0%, 100% 5%, 96% 100%, 0% 94%);
  opacity: .94;
}

.wall-card_head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 11px;
}
.wall-card_who {
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 7px;
}
.wall-card_who b {
  max-width: 11em;
  font-family: var(--font-round);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .015em;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wall-card_who small {
  font-size: 10.5px;
  letter-spacing: .05em;
  color: rgba(122, 94, 100, .58);
  white-space: nowrap;
}
/* 名字和日期之间一个小中点，像便签角落的落款 */
.wall-card_who small::before {
  content: '·';
  margin-right: 5px;
  opacity: .7;
}

.wall-card_tag {
  flex: none;
  margin-left: auto;
  padding: 1px 6px 2px;
  border: 1px dashed rgba(190, 108, 130, .7);
  border-radius: 4px;
  font-size: 9.5px;
  letter-spacing: .1em;
  line-height: 1.7;
  color: var(--rose-ink);
  white-space: nowrap;
}

.wall-card_text {
  font-size: 15px;
  line-height: 1.92;
  color: var(--ink-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* 删掉：只在「仅本机」的纸条上出现，平时藏在胶带旁边 */
.wall-card_del {
  position: absolute;
  top: 3px; right: 5px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
  color: rgba(122, 94, 100, .42);
  opacity: 0;
  transition: opacity .3s, background .3s, color .3s;
}
.wall-card_del:hover { background: rgba(255, 188, 197, .55); color: var(--rose-ink); }
@media (hover: hover) {
  .wall-card:hover .wall-card_del { opacity: 1; }
}
@media (hover: none) {
  .wall-card_del { opacity: .7; }
}
.wall-card_del:focus-visible { opacity: 1; }

/* 上墙：纸条落下来，胶带随后压上去 */
.wall-card.is-new { animation: wallDrop .74s cubic-bezier(.2, .9, .3, 1.12) both; }
@keyframes wallDrop {
  0%   { opacity: 0; transform: translateY(-34px) rotate(calc(var(--tilt, 0deg) - 2.4deg)) scale(.94); }
  58%  { opacity: 1; }
  74%  { transform: translateY(4px) rotate(calc(var(--tilt, 0deg) + .7deg)) scale(1.008); }
  100% { opacity: 1; transform: translateY(0) rotate(var(--tilt, 0deg)) scale(1); }
}
.wall-card.is-new::before {
  animation: tapePress .52s cubic-bezier(.3, 1.5, .4, 1) .24s both;
}
@keyframes tapePress {
  0%   { opacity: 0; transform: rotate(-17deg) scale(.55); }
  100% { opacity: .94; transform: rotate(-3.2deg) scale(1); }
}

/* 空墙：一张还没贴东西的纸条 */
.wall-empty {
  position: relative;
  max-width: 470px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 52px) 24px;
  text-align: center;
  font-size: 13px;
  line-height: 2;
  color: var(--ink-3);
  background: #fffdf9;
  border-radius: 3px;
  box-shadow:
    0 1px 2px rgba(150, 96, 110, .09),
    0 14px 26px -18px rgba(150, 96, 110, .45);
  transform: rotate(-.8deg);
}
/* 里圈虚线：像「这里还空着」的标记 */
.wall-empty::before {
  content: '';
  position: absolute;
  inset: 11px;
  border: 1.5px dashed rgba(255, 188, 197, .85);
  border-radius: 2px;
  pointer-events: none;
}
/* 空白纸条也贴一条胶带 */
.wall-empty::after {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  width: 78px;
  height: 25px;
  margin-left: -39px;
  transform: rotate(-2.4deg);
  background:
    repeating-linear-gradient(104deg,
      rgba(255, 255, 255, .38) 0 4px,
      rgba(255, 255, 255, 0) 4px 9px),
    rgba(255, 186, 200, .6);
  clip-path: polygon(3% 0%, 100% 5%, 96% 100%, 0% 94%);
}
.wall-empty b {
  display: block;
  font-family: var(--font-round);
  font-size: 15px;
  color: var(--rose-ink);
  margin-bottom: 6px;
}

/* ============================================================ 二维码大图 */
.qr-view {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 5vmin;
}
.qr-view[hidden] { display: none; }
.qr-view_bg {
  position: absolute;
  inset: 0;
  background: rgba(62, 38, 46, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: qrFade .3s var(--ease) both;
}
.qr-view_box {
  position: relative;
  width: min(86vw, 380px);
  padding: 30px 24px 26px;
  border-radius: 28px;
  background: #fff;
  text-align: center;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .5);
  animation: qrIn .42s cubic-bezier(.22, 1, .3, 1.1) both;
}
.qr-view_close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--pink-mist);
  color: var(--rose-ink);
  transition: background .3s, color .3s, transform .3s;
}
.qr-view_close svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round;
}
.qr-view_close:hover { background: var(--rose); color: #fff; transform: rotate(90deg); }
.qr-view_qr {
  width: min(72%, 260px);
  margin: 6px auto 0;
  aspect-ratio: 1;
}
.qr-view_img { width: 100%; height: 100%; object-fit: contain; }
.qr-view_title {
  margin-top: 18px;
  font-family: var(--font-round);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--ink);
}
.qr-view_name {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-3);
}
.qr-view_hint {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-4);
}
@keyframes qrFade { from { opacity: 0; } }
@keyframes qrIn {
  from { opacity: 0; transform: translateY(16px) scale(.94); }
}

/* ============================================================ 开场：纸面上一只小信封
   不是为了「拟物」，是因为这个页面的内容就是「把话装起来交给对方」：
   一张纸、上面一只小信封 → 蜡封裂开 → 封盖翻下 → 信封化开，
   照片从**图片中心**长满整屏。

   照片的「长」不用 clip-path 动画（每帧重绘整屏，核显会顿）：
   在照片上盖四片和纸面同色的纸，中间按信封的尺寸留一个窗，
   开场时照片只从窗里露出来，四片纸朝外滑走 —— 全程只有 transform。
   窗的尺寸和信封尺寸取自同一组变量，改一只就跟着改。
   ------------------------------------------------------------ */
.ct-hero_sticky {
  --env-w: min(432px, 74vw);
  --env-h: calc(var(--env-w) / 2.05);
}

/* ---- 四片纸：中间那块窗正好是信封 ---------------------------------- */
.ct-hero_shut {
  position: absolute;
  z-index: 2;
  background: #fdf6f7;   /* 必须和 .ct-hero_card 的底色一致，否则看得出补丁 */
}
/* 各多出 1~2px，互相压一点，免得露出发丝缝 */
.ct-hero_shut--t {
  top: 0; left: 0; right: 0;
  height: calc((100% - var(--env-h)) / 2 + 1px);
}
.ct-hero_shut--b {
  bottom: 0; left: 0; right: 0;
  height: calc((100% - var(--env-h)) / 2 + 1px);
}
.ct-hero_shut--l,
.ct-hero_shut--r {
  top: calc((100% - var(--env-h)) / 2 - 1px);
  height: calc(var(--env-h) + 2px);
  width: calc((100% - var(--env-w)) / 2 + 1px);
}
.ct-hero_shut--l { left: 0; }
.ct-hero_shut--r { right: 0; }

/* 别给纸片加投影：它们和纸面同色，阴影会在纸上描出一条横向的淡线，
   反而像画面裂了一道缝。开场的层次交给信封自己的影子 */
/* ---- 信封本体：照首图里那一只做的 --------------------------------
   白纸、一圈细线描边、口袋上沿两条折痕、正中一颗粉色心形贴纸。
   首图里的信封是「背面朝外」，所以封盖是尖朝下的一个大 V ——
   这也正好是要掀开的那一片。
   ---------------------------------------------------------------- */
.ct-hero_env {
  position: absolute;
  left: 50%; top: 50%;
  width: var(--env-w);
  height: var(--env-h);
  margin: calc(var(--env-h) / -2) 0 0 calc(var(--env-w) / -2);
  /* 不能整体旋转：四片纸围出的窗口是正的，一转，四角就会露出窗外的照片
     （左上角会出现一条深色斜缝）。倾斜感交给那颗心和阴影偏移 */
  pointer-events: none;
  --env-line: rgba(152, 104, 94, .92);
}

/* 信封的纸：几乎是纯白，立在淡粉纸上靠那圈线立住 */
.ct-hero_envBody {
  position: absolute; inset: 0;
  z-index: 1;
  border-radius: 3px;
  /* 不是死白：插画里的信封是带着纸的暖调的 */
  background: linear-gradient(168deg, #fffefc 0%, #fffbf5 62%, #fdf6ee 100%);
  box-shadow:
    inset 0 0 0 1px var(--env-line),
    0 2px 4px -1px rgba(150, 96, 84, .12),
    0 10px 20px -12px rgba(150, 96, 84, .30),
    0 26px 44px -26px rgba(150, 96, 84, .34);
}

/* 口袋上沿：一条 1px 的折线（矢量描边，缩放也不变粗）。
   z-index 跟信封纸一样高（都在四片纸之下）：信封往下沉的时候，
   折线要一起沉进下面那片纸里 —— 比纸片高的话，会有一根线浮在纸面上滑下去 */
.ct-hero_envFold {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}
.ct-hero_envFold path {
  fill: none;
  stroke: var(--env-line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

/* 封盖：尖朝下，压过口袋的尖（跟真信封背面一样叠着）。
   transform-origin 在顶边 —— 掀开时绕折线往后翻。
   描边用「稍小一圈的白纸垫在一条线的底板上」，比 drop-shadow 干净 */
.ct-hero_envFlap {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 54%;
  z-index: 3;
  transform-origin: 50% 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.ct-hero_envFlap::before,
.ct-hero_envFlap::after {
  content: '';
  position: absolute;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.ct-hero_envFlap::before {
  inset: 0;
  background: var(--env-line);
}
.ct-hero_envFlap::after {
  inset: 1.4px;
  background: #fffefc;
}

/* 心形贴纸：首图里压在封盖尖上的那一颗。
   位置要「一个心压住两个尖」—— 封盖的尖朝下（54%）、口袋折痕的尖朝上（55.6%），
   两个尖几乎在 54.8% 处会合，心就贴在这儿，两边都不露头 */
.ct-hero_envSeal {
  position: absolute;
  left: 50%; top: 54.8%;
  width: 50px; height: 48px;
  margin: -24px 0 0 -25px;
  z-index: 4;
  /* 手贴上去的，总会歪一点 */
  transform: rotate(-7deg);
  filter: drop-shadow(0 3px 5px rgba(150, 80, 96, .2));
}
.ct-hero_envSeal svg { display: block; width: 100%; height: 100%; }

/* ---- 开场期间先别露文字（白字压在淡纸上会糊） ----------------------
   后面那个 ctShowLater 是兜底：万一 is-ready 一直没来，到 5.4s 也要把字放出来 */
html.js .ct-hero_text,
html.js .site-header {
  opacity: 0;
  animation: ctShowLater 1ms 5.4s forwards;
}
html.js body:not(.is-ready) .ct-hero_scrim {
  opacity: 0;
  animation: ctScrimLater 1ms 5.2s forwards;
}

/* ---- 剧本 ---------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* 一、蜡封裂开（0.30s） */
  html.js body.is-ready .ct-hero_envSeal {
    animation: ctSealPop .44s cubic-bezier(.4, .05, .3, 1) .26s both;
  }
  /* 二、封盖绕顶边往后翻（0.42s）：翻过 90° 就自己隐去，干净 */
  html.js body.is-ready .ct-hero_envFlap {
    animation: ctFlapOpen .66s cubic-bezier(.5, .02, .22, 1) .36s both;
  }
  /* 三、信封化开（0.88s）：纸和纸上的折痕一起滑走 ——
     折痕是独立的 svg，漏掉它就会有一根 V 线孤零零留在照片上 */
  html.js body.is-ready .ct-hero_envBody,
  html.js body.is-ready .ct-hero_envFold {
    animation: ctEnvGone .28s cubic-bezier(.45, .05, .25, 1) .82s both;
  }
  /* 四、四片纸朝外滑走（0.86s 起，0.9s）—— 照片从中间那块窗长满整屏 */
  html.js body.is-ready .ct-hero_shut--t {
    animation: ctShutUp .86s cubic-bezier(.16, .7, .2, 1) 1.1s both;
  }
  html.js body.is-ready .ct-hero_shut--b {
    animation: ctShutDown .86s cubic-bezier(.16, .7, .2, 1) 1.1s both;
  }
  html.js body.is-ready .ct-hero_shut--l {
    animation: ctShutLeft .86s cubic-bezier(.16, .7, .2, 1) 1.1s both;
  }
  html.js body.is-ready .ct-hero_shut--r {
    animation: ctShutRight .86s cubic-bezier(.16, .7, .2, 1) 1.1s both;
  }
  /* 五、压暗层、字、台头 */
  html.js body.is-ready .ct-hero_scrim {
    animation: ctScrimIn .6s ease 1.5s both;
  }
  html.js body.is-ready .ct-hero_text {
    animation: ctTextUp .85s var(--ease-soft) 2s both;
  }
  html.js body.is-ready .site-header {
    animation: ctHeaderIn .7s var(--ease-soft) 1.96s both;
  }
}

@keyframes ctSealPop {
  /* 起点就带着那颗心的歪度：0% 写成 rotate(0) 的话，动画一挂上，
     贴纸会瞬间被「摆正」，手贴的那种随意感就没了 */
  0%   { transform: scale(1) rotate(-7deg); opacity: 1; }
  38%  { transform: scale(1.14) rotate(-13deg); opacity: 1; }
  100% { transform: scale(.52) rotate(-27deg); opacity: 0; }
}
/* 负角度是往后翻（正角度会朝观众扑过来）；翻过 90° 由 backface 隐去 */
@keyframes ctFlapOpen {
  0%   { transform: perspective(760px) rotateX(0deg); }
  100% { transform: perspective(760px) rotateX(-172deg); }
}
/* 信封不是「淡出」—— 淡出会变成一层半透明的纸蒙在照片上，很脏。
   整片往下沉：底边先钻进下面的纸面（shut--b 是同一个纸色），
   越沉越少，照片从它让出来的窗口里一点点露出来 —— 像把信塞回信封里 */
@keyframes ctEnvGone {
  0%   { transform: translateY(0); visibility: visible; }
  /* 一路不透明地沉，只在最后一格隐去 —— 纸片一沉下去，它就不能再露头 */
  99%  { visibility: visible; }
  100% { transform: translateY(100%); visibility: hidden; }
}
@keyframes ctShutUp    { to { transform: translateY(-101%); } }
@keyframes ctShutDown  { to { transform: translateY(101%); } }
@keyframes ctShutLeft  { to { transform: translateX(-101%); } }
@keyframes ctShutRight { to { transform: translateX(101%); } }
@keyframes ctScrimIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ctTextUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes ctHeaderIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================ 动效偏好 */
/* 关掉脚本：别演了，信封和纸都别出现，照片直接露出来 */
html:not(.js) .ct-hero_env,
html:not(.js) .ct-hero_shut { display: none; }
html:not(.js) .ct-hero_text,
html:not(.js) .site-header { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .ct-hero_env,
  .ct-hero_shut { display: none; }
  .ct-hero_text,
  .site-header { opacity: 1; }
  .ct-hero_card, .ct-hero_media, .ct-hero_body { transform: none; }
  .ct-hero_media, .ct-hero_img { clip-path: none; animation: none; opacity: 1; transform: none; }
  .ct-hero_body { opacity: 1; filter: none; }
  .ct-hero_scrim { opacity: 1; animation: none; }
  .wall-card,
  .wall-card.is-new,
  .wall-card.is-new::before,
  .wall-card.is-new::after { animation: none; }
  .wall-card,
  .wall-card:hover { transform: none; }
  .find-card,
  .find-card:hover { transform: none; }
  .qr-view_box,
  .qr-view_bg { animation: none; }
}

/* 万一 is-ready 一直没来（js 半死）：5 秒后自己把纸撤掉，别永远挡着照片 */
html.js .ct-hero_shut,
html.js .ct-hero_env {
  animation: ctPaperAway 1ms 5s forwards;
}
@keyframes ctPaperAway { to { opacity: 0; visibility: hidden; } }
@keyframes ctShowLater { to { opacity: 1; } }
@keyframes ctScrimLater { to { opacity: 1; } }

/* ------------------------------------------------------------ 信封：窄屏
   手机竖屏时信封按 74vw 走，那颗心再小一号，别把信封压满 */
@media (max-width: 899px), (max-aspect-ratio: 1 / 1) {
  .ct-hero_envSeal {
    width: 38px; height: 36px;
    margin: -18px 0 0 -19px;
  }
}
