/* =========================================================
   宝宝成长日记 · 前端样式
   粉色主题 / iOS 风登录卡 / 液态玻璃材质 + 底部导航
   ========================================================= */

:root {
  --ink: #2a1a20;
  --ink-2: #5a4a50;
  --muted: #a08a92;
  --pink: #ff2d55;
  --pink-dark: #e0274b;
  --pink-deep: #d92050;
  --pink-soft: rgba(255, 45, 85, .12);
  --rose: #ff7aa8;
  --lav: #c9a7ff;

  --glass-bg: rgba(255, 255, 255, .62);
  --glass-border: rgba(255, 255, 255, .8);
  --glass-shadow: 0 10px 30px rgba(120, 30, 70, .12), 0 2px 8px rgba(120, 30, 70, .06);
  --spring: cubic-bezier(.34, 1.25, .44, 1);
  --ease-out: cubic-bezier(.32, .72, 0, 1);

  --tabbar-h: 62px;
  --green: #34c759;
  --blue: #0a84ff;
  --line: #e8dde2;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fbeef2;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, textarea, select { font: inherit; border: 0; outline: 0; background: none; color: var(--ink); }
ul { list-style: none; }
img { display: block; }

/* ---------- 舞台 ---------- */
.stage {
  position: relative;
  width: 100%;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
}
@media (min-width: 520px) {
  body {
    display: grid;
    place-items: center;
    padding: 18px 0;
    background:
      radial-gradient(900px 500px at 15% -10%, #ffe1ec 0%, transparent 60%),
      radial-gradient(800px 500px at 110% 110%, #f3e6ff 0%, transparent 55%),
      #fbeef2;
  }
  .stage {
    width: min(430px, 100%);
    height: min(920px, calc(100dvh - 36px));
    border-radius: 46px;
    border: 1px solid rgba(120, 30, 70, .08);
    box-shadow:
      0 40px 90px rgba(120, 30, 70, .22),
      0 12px 30px rgba(120, 30, 70, .12),
      inset 0 0 0 1px rgba(255, 255, 255, .6);
  }
}

.app {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border-radius: inherit;
  overflow: hidden;
}

/* ---------- 粉色动态背景 ---------- */
.ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, #fff5f8 0%, #fffaff 55%, #fff2f7 100%);
}
.blob { position: absolute; width: 44vmax; height: 44vmax; border-radius: 50%; opacity: .5; will-change: transform; }
.blob-1 { top: -18%; left: -20%; background: radial-gradient(circle, rgba(255,158,193,.95), rgba(255,158,193,0) 70%); animation: drift1 30s ease-in-out infinite alternate; }
.blob-2 { top: 6%; right: -26%; background: radial-gradient(circle, rgba(255,140,180,.9), rgba(255,140,180,0) 70%); animation: drift2 34s ease-in-out infinite alternate; }
.blob-3 { bottom: -22%; left: -10%; background: radial-gradient(circle, rgba(214,178,255,.9), rgba(214,178,255,0) 70%); animation: drift3 36s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(7vmax,5vmax,0) scale(1.12); } }
@keyframes drift2 { from { transform: translate3d(0,0,0) scale(1.06); } to { transform: translate3d(-6vmax,7vmax,0) scale(.96); } }
@keyframes drift3 { from { transform: translate3d(0,0,0) scale(.96); } to { transform: translate3d(6vmax,-6vmax,0) scale(1.1); } }

/* ---------- 液态玻璃基类 ---------- */
.glass, .glass-strong {
  position: relative;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--glass-border);
  box-shadow: 0 1px 3px rgba(120, 30, 70, .05), 0 8px 24px rgba(120, 30, 70, .08);
}
.glass::after, .glass-strong::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,.12) 26%, rgba(255,255,255,0) 52%);
  pointer-events: none;
}
.glass-strong {
  background: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.95), inset 0 -1px 1px rgba(255,255,255,.3), var(--glass-shadow);
}

/* 图标 */
.ic { width: 22px; height: 22px; flex: none; object-fit: contain; display: inline-block; }
.ic.xs { width: 15px; height: 15px; }
.ic.sm { width: 19px; height: 19px; }
.ic.lg { width: 26px; height: 26px; }
svg.ic { fill: currentColor; }

/* 彩色徽章 */
.chip {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 12px; flex: none;
}
.chip.lg { width: 46px; height: 46px; border-radius: 15px; }
.chip-pink { background: rgba(255,45,85,.13); color: var(--pink); }
.chip-rose { background: rgba(255,122,168,.15); color: #ff6a9c; }
.chip-purple { background: rgba(175,82,222,.14); color: #af52de; }
.chip-orange { background: rgba(255,149,0,.15); color: #f08c00; }
.chip-cyan { background: rgba(50,173,230,.14); color: #1d96cf; }
.chip-green { background: rgba(52,199,89,.15); color: #1ea84b; }
.chip-blue { background: rgba(10,132,255,.13); color: #0a84ff; }
.chip-gray { background: rgba(142,142,147,.16); color: #6d7078; }

/* ---------- 顶部标题 ---------- */
.topbar {
  position: relative; z-index: 20;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 22px 10px;
}
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 2.4px; color: var(--muted); margin-bottom: 3px; }
.page-title { font-size: 31px; font-weight: 800; letter-spacing: .4px; line-height: 1.1; transition: opacity .16s ease, transform .16s ease; }
.page-title.swap { opacity: 0; }
.icon-btn {
  width: 42px; height: 42px; color: var(--pink); margin-bottom: 2px;
  transition: transform .28s var(--spring);
}
.icon-btn:active { transform: scale(.88); }

/* ---------- 页面轨道（横向切换） ---------- */
.pages {
  flex: 1; min-height: 0; width: 100%;
  display: flex;
  transform: translateX(0);
  transition: transform .5s var(--ease-out);
  will-change: transform;
}
.page {
  flex: 0 0 100%; min-width: 100%;
  height: 100%;
  overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 4px 20px calc(var(--tabbar-h) + 66px);
  scrollbar-width: none;
}
.page::-webkit-scrollbar { display: none; }

/* ---------- 通用卡片 ---------- */
.card { border-radius: 26px; padding: 18px; margin-top: 14px; position: relative; }
.card > * { position: relative; z-index: 1; }
.muted { color: var(--muted); font-size: 13px; }
.section-h { font-size: 19px; font-weight: 750; margin: 24px 4px 10px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #ff5c8a, #ff2d55);
  color: #fff; font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 999px;
  box-shadow: 0 8px 18px rgba(255,45,85,.35);
  transition: transform .22s var(--spring);
}
.pill-btn:active { transform: scale(.95); }
.pill-btn.ghost { background: #fff; color: var(--pink); box-shadow: none; border: 1px solid var(--line); }
.danger { color: #ff3b30; }
.empty {
  text-align: center; color: var(--muted); font-size: 13px;
  padding: 30px 10px;
}

/* ---------- 首页 ---------- */
.profile-card { overflow: hidden; background: linear-gradient(135deg, #fff, #fff5f8); }
.profile-card .age-big { font-size: 52px; font-weight: 800; color: var(--pink); line-height: 1; letter-spacing: -1px; }
.profile-card .age-big small { font-size: 18px; font-weight: 700; color: var(--ink-2); }
.avatar {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 28px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #ff9ec0, #ff6a9c 55%, #ffa7c9);
  box-shadow: 0 10px 22px rgba(255, 90, 140, .4);
}
.age-row { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.age-sub { display: flex; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,45,85,.1); }
.age-sub div { text-align: center; flex: 1; }
.age-sub b { font-size: 20px; font-weight: 800; color: var(--ink); }
.age-sub span { font-size: 11px; color: var(--muted); }
.next-milestone { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat-mini { text-align: center; padding: 14px 4px; border-radius: 18px; }
.stat-mini b { font-size: 20px; font-weight: 800; display: block; color: var(--pink); }
.stat-mini span { font-size: 11px; color: var(--muted); }

.reward-card { display: flex; align-items: center; gap: 12px; padding: 14px 15px; }
.reward-card .ic { width: 30px; height: 30px; }
.reward-info { flex: 1; min-width: 0; }
.reward-info b { font-size: 15px; }
.reward-info small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.reward-tag { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.reward-tag.locked { background: rgba(142,142,147,.14); color: var(--muted); }
.reward-tag.done { background: rgba(52,199,89,.15); color: #1ea84b; }
.reward-tag.ready { background: linear-gradient(135deg, #ff5c8a, #ff2d55); color: #fff; }

/* 音乐卡（外链） */
.music-card { display: flex; align-items: center; gap: 12px; }
.music-art { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ff9ec0, #c7a7ff); flex: none; }
.music-meta { flex: 1; min-width: 0; }
.music-meta b { font-size: 14.5px; display: block; }
.music-meta small { color: var(--muted); font-size: 12px; }

/* ---------- 日记 ---------- */
.diary-card { padding: 16px 18px; }
.diary-date { font-size: 12px; color: var(--pink); font-weight: 700; margin-bottom: 6px; }
.diary-card h3 { font-size: 16px; font-weight: 700; }
.diary-card p { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin-top: 6px; white-space: pre-wrap; }
.diary-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.diary-imgs img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }
.diary-actions { display: flex; gap: 8px; margin-top: 12px; }
.mini-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; color: var(--pink); font-weight: 600;
  padding: 6px 12px; border-radius: 999px; background: var(--pink-soft);
  transition: transform .2s var(--spring);
}
.mini-btn.danger { color: #ff3b30; background: rgba(255,59,48,.1); }
.mini-btn:active { transform: scale(.93); }

/* ---------- 相片墙 ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.photo-item { position: relative; aspect-ratio: 1/1; border-radius: 16px; overflow: hidden; background: #f3e6ee; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-del { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; }
.photo-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; font-size: 11px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); }

/* ---------- 视频 ---------- */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.video-item { border-radius: 18px; overflow: hidden; }
.video-thumb { position: relative; aspect-ratio: 16/10; background: linear-gradient(135deg,#ffd7e5,#e6d9ff); display: grid; place-items: center; color: #fff; }
.video-thumb video, .video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--pink); display: grid; place-items: center; }
.video-meta { padding: 10px 12px; }
.video-meta b { font-size: 13.5px; display: block; }
.video-meta small { color: var(--muted); font-size: 11.5px; }

/* ---------- 分段选择 ---------- */
.segmented { display: grid; grid-template-columns: 1fr 1fr; border-radius: 17px; padding: 4px; margin-top: 8px; gap: 2px; }
.seg { position: relative; z-index: 1; padding: 9px 0; font-size: 14px; font-weight: 600; color: var(--muted); border-radius: 13px; transition: color .3s var(--ease-out); }
.seg.is-active { color: var(--pink); }
.seg.is-active::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 13px; background: #fff; box-shadow: 0 4px 12px rgba(120,30,70,.12); animation: segIn .35s var(--spring); }
@keyframes segIn { from { transform: scale(.86); opacity: .4; } to { transform: scale(1); opacity: 1; } }

/* ---------- 成长记录 ---------- */
.growth-card { display: flex; align-items: center; gap: 12px; }
.growth-num { font-size: 18px; font-weight: 800; color: var(--ink); }
.growth-num small { font-size: 11px; color: var(--muted); font-weight: 500; }
.growth-date { color: var(--muted); font-size: 12px; }
.chart-box { margin-top: 14px; padding: 14px; }
.chart-box canvas { width: 100%; display: block; }

/* ---------- 里程碑 ---------- */
.milestone-card { padding: 16px 18px; }
.milestone-date { font-size: 12px; color: var(--purple, #af52de); font-weight: 700; margin-bottom: 5px; }
.milestone-card h3 { font-size: 16px; font-weight: 700; }
.milestone-card p { font-size: 14px; color: var(--ink-2); margin-top: 5px; }
.milestone-card img { width: 100%; border-radius: 14px; margin-top: 10px; max-height: 220px; object-fit: cover; }

/* ---------- 我的 ---------- */
.settings-list { border-radius: 22px; overflow: hidden; }
.set-row {
  position: relative; z-index: 1;
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 14px 15px; text-align: left;
}
.set-row:not(:last-child)::after { content: ""; position: absolute; left: 58px; right: 0; bottom: 0; height: 1px; background: rgba(120,30,70,.08); }
.set-row b { flex: 1; font-size: 15px; font-weight: 600; text-align: left; }
.set-chev { color: #c8bcc2; }

/* ---------- 底部液态玻璃导航 ---------- */
.tabbar {
  position: absolute; z-index: 30;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  height: var(--tabbar-h);
  border-radius: 30px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 6px;
}
.tab-indicator {
  position: absolute; top: 6px; left: 6px;
  width: calc((100% - 12px) / 6);
  height: calc(var(--tabbar-h) - 12px);
  pointer-events: none;
  transition: transform .5s var(--spring);
  will-change: transform;
}
.tab-indicator-pill {
  position: absolute; inset: 0; margin: 0 auto;
  width: 46px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,232,240,.85));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 7px 18px rgba(217,32,80,.2), 0 2px 5px rgba(217,32,80,.1);
  transition: transform .5s var(--spring);
}
.tab-indicator-pill.stretch { transform: scaleX(1.18); }
.tab { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); border-radius: 20px; transition: color .35s var(--ease-out); }
.tab-ic { display: grid; place-items: center; width: 26px; height: 26px; color: inherit; }
.tab-ic .ic { width: 23px; height: 23px; }
.tab-label { font-size: 10.5px; font-weight: 500; letter-spacing: .2px; transition: font-weight .3s; }
.tab.is-active { color: var(--pink); }
.tab.is-active .tab-label { font-weight: 700; }
.tab.is-active .tab-ic { animation: tabPop .45s var(--spring); }
@keyframes tabPop { 0% { transform: scale(.8); } 55% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* ---------- Toast ---------- */
.toast {
  position: absolute; z-index: 40;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 30px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 14px);
  max-width: 78%; padding: 11px 19px; border-radius: 999px;
  background: rgba(42,26,30,.85);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  color: #fff; font-size: 13.5px; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .35s var(--spring);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   认证区（iOS 风白色卡片 · 参考文件1）
   ========================================================= */
.auth-wrap {
  position: absolute; inset: 0; z-index: 50;
  display: grid; place-items: center;
  padding: 24px 16px;
  overflow-y: auto;
}
.auth-card {
  position: relative; width: 100%; max-width: 390px;
  background: #fff; border-radius: 28px;
  box-shadow: 0 24px 60px -20px rgba(120,30,70,.25), 0 8px 24px -12px rgba(120,30,70,.14);
  padding: 40px 28px 32px;
  overflow: hidden;
}
.auth-logo {
  width: 62px; height: 62px; border-radius: 18px;
  background: linear-gradient(135deg, #ff9ec0, #ff2d55);
  display: grid; place-items: center; color: #fff;
  margin: 0 auto;
}
.auth-card h1 { font-size: 24px; font-weight: 800; text-align: center; margin-top: 18px; letter-spacing: -.4px; }
.auth-sub { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; }

.auth-tabs { display: flex; margin-top: 22px; background: #f2f2f7; border-radius: 12px; padding: 4px; }
.auth-tab { flex: 1; padding: 9px 0; font-size: 14px; font-weight: 600; color: var(--muted); border-radius: 9px; transition: all .25s var(--ease-out); }
.auth-tab.is-active { background: #fff; color: var(--pink); box-shadow: 0 3px 8px rgba(120,30,70,.1); }

.auth-form { margin-top: 20px; }
.field { margin-top: 14px; height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: #f2f2f7; border-radius: 14px; border: 1.5px solid transparent; transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s; }
.field:focus-within { background: #fff; border-color: var(--pink); box-shadow: 0 0 0 4px var(--pink-soft); }
.field-input { flex: 1; min-width: 0; font-size: 16px; color: var(--ink); }
.field-input::placeholder { color: #c0b4ba; }
.field-icon { color: #c0b4ba; flex: none; }

/* OTP 六宫格 */
.otp { position: relative; margin-top: 18px; }
.otp-cells { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.cell { position: relative; aspect-ratio: 1/1.15; border-radius: 12px; background: #fff; border: 1.5px solid var(--line); display: grid; place-items: center; transition: border-color .26s var(--ease-out), box-shadow .26s var(--ease-out), transform .3s var(--spring); }
.cell-digit { font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1; }
.cell.is-filled { border-color: #ffc7d8; background: #fff5f8; }
.cell.is-active { border-color: var(--pink); box-shadow: 0 0 0 4px var(--pink-soft); }
.cell.is-active::after { content: ""; position: absolute; width: 2px; height: 22px; border-radius: 2px; background: var(--pink); animation: cursor-blink 1.05s steps(1) infinite; }
@keyframes cursor-blink { 0%,55% { opacity: 1; } 56%,100% { opacity: 0; } }
.cell.is-filled .cell-digit { animation: digit-pop .3s var(--spring); }
@keyframes digit-pop { 0% { transform: scale(.4); opacity: .2; } 60% { transform: scale(1.18); } 100% { transform: scale(1); opacity: 1; } }
.otp-input { position: absolute; inset: 0; width: 100%; font-size: 16px; opacity: 0; border: 0; outline: 0; background: none; caret-color: transparent; }
.otp-msg { margin-top: 12px; min-height: 18px; font-size: 13px; color: #ff3b30; text-align: center; }

.auth-btn {
  position: relative; margin-top: 20px; height: 52px; width: 100%;
  border-radius: 14px; background: linear-gradient(135deg,#ff5c8a,#ff2d55);
  color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .3px;
  display: flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden;
  box-shadow: 0 10px 22px -10px rgba(255,45,85,.65);
  transition: transform .18s var(--ease-out), opacity .25s;
}
.auth-btn:active { transform: scale(.97); }
.auth-btn:disabled { background: #d8d3d6; box-shadow: none; cursor: not-allowed; }
.auth-btn .btn-spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: btn-spin .7s linear infinite; }
.auth-btn.is-loading .btn-spinner { display: block; }
.auth-btn.is-loading { background: #d8c2ca; }
@keyframes btn-spin { to { transform: rotate(360deg); } }

.auth-link { width: 100%; margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--pink); }
.auth-hint { text-align: center; font-size: 12px; color: #b0a4aa; margin-top: 18px; line-height: 1.6; }
.auth-foot { text-align: center; font-size: 11.5px; color: #c0b4ba; margin-top: 16px; }

.resend-row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 13px; color: var(--muted); }
.resend-row button { color: var(--pink); font-size: 13px; }
.resend-row button:disabled { color: #c0b4ba; }

/* ---------- 弹层（底部抽屉） ---------- */
.sheet-mask { position: absolute; inset: 0; z-index: 60; background: rgba(42,26,30,.4); opacity: 0; pointer-events: none; transition: opacity .3s; }
.sheet-mask.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: absolute; z-index: 61; left: 0; right: 0; bottom: 0;
  background: #fff; border-radius: 26px 26px 0 0;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%); transition: transform .4s var(--spring);
  max-height: 86dvh; overflow-y: auto;
  box-shadow: 0 -20px 50px rgba(120,30,70,.2);
}
.sheet.show { transform: translateY(0); }
.sheet-handle { width: 40px; height: 5px; border-radius: 3px; background: #e5d8de; margin: 0 auto 16px; }
.sheet h2 { font-size: 19px; font-weight: 800; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 14px 2px 6px; }
.form-input { width: 100%; height: 46px; padding: 0 14px; background: #f5f5f7; border-radius: 12px; font-size: 15px; }
.form-input:focus { background: #fff; box-shadow: 0 0 0 3px var(--pink-soft); }
textarea.form-input { height: auto; min-height: 90px; padding: 12px 14px; resize: none; }
.img-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.img-pick img { width: 60px; height: 60px; object-fit: cover; border-radius: 12px; }
.file-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--pink); background: var(--pink-soft); padding: 8px 14px; border-radius: 10px; }

/* ---------- 灯箱 ---------- */
.lightbox { position: absolute; inset: 0; z-index: 70; background: rgba(0,0,0,.92); display: grid; place-items: center; }
.lightbox img, .lightbox video { max-width: 94%; max-height: 86%; border-radius: 12px; }
.lightbox .close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; }

/* ---------- 丝滑入场动画 ---------- */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.rise {
  opacity: 0;
  animation: riseIn .6s var(--spring) forwards;
  animation-delay: var(--d, 0ms);
  will-change: transform, opacity;
}
@keyframes popIn {
  0% { opacity: 0; transform: scale(.35); }
  60% { opacity: 1; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}
.pop { animation: popIn .5s var(--spring) both; }

/* 卡片/列表项按压回弹（触感） */
.press { transition: transform .3s var(--spring), box-shadow .3s var(--ease-out); }
.press:active { transform: scale(.965); }

/* 数字滚动 */
.tick-up { display: inline-block; font-variant-numeric: tabular-nums; }

/* ---------- 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}