/* 时光影盒官网 · 贴近小程序真实界面 */
:root {
  --mp-pink: #f04d7a;
  --mp-pink-light: #fe7099;
  --mp-pink-soft: #ff8cb0;
  --mp-bg: #f7f7f8;
  --mp-ink: #2c2430;
  --mp-muted: rgba(44, 36, 48, 0.58);
  --mp-font: "Outfit", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mp-display: "Noto Serif SC", "Songti SC", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  font-family: var(--mp-font);
  color: var(--mp-ink);
  background: var(--mp-bg);
  -webkit-font-smoothing: antialiased;
}

.mp-home {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  /* visible：允许扫码气泡超出，避免被裁切 */
  overflow: visible;
  display: flex;
  flex-direction: column;
  /* 浅灰白底 + 极淡粉色点缀，不再整屏粉 */
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(254, 112, 153, 0.14), transparent 58%),
    radial-gradient(700px 360px at 96% 6%, rgba(255, 140, 176, 0.1), transparent 52%),
    linear-gradient(180deg, #fafafa 0%, #f7f7f8 55%, #f5f5f7 100%);
}

.mp-home__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
  animation: mp-float 9s ease-in-out infinite;
  opacity: 0.55;
}
.mp-home__glow--a {
  width: 240px; height: 240px;
  left: -80px; bottom: 10%;
  background: rgba(240, 77, 122, 0.1);
}
.mp-home__glow--b {
  width: 180px; height: 180px;
  right: 6%; top: 20%;
  background: rgba(254, 112, 153, 0.12);
  animation-delay: -3s;
}
.mp-home__grain {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.mp-nav, .mp-hero, .mp-foot { position: relative; z-index: 1; }

.mp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px 0;
  flex: 0 0 auto;
}
.mp-nav__brand {
  font-family: var(--mp-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--mp-ink);
}
.mp-nav__hint {
  appearance: none;
  border: 1px solid rgba(240, 77, 122, 0.16);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  color: var(--mp-pink);
  background: rgba(240, 77, 122, 0.08);
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.4;
}
.mp-nav__hint:hover,
.mp-nav__hint.is-open {
  background: rgba(240, 77, 122, 0.14);
  border-color: rgba(240, 77, 122, 0.28);
}

.mp-hero {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.05fr);
  gap: 28px 40px;
  align-items: center;
  padding: 12px 40px 8px;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  min-height: 0;
}

.mp-copy__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--mp-pink);
  margin-bottom: 10px;
  animation: mp-rise 0.7s ease both;
}
.mp-copy__brand {
  font-family: var(--mp-display);
  font-size: clamp(42px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: var(--mp-ink);
  margin-bottom: 12px;
  animation: mp-rise 0.75s 0.06s ease both;
}
.mp-copy__lead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--mp-muted);
  max-width: 28em;
  margin-bottom: 18px;
  animation: mp-rise 0.75s 0.12s ease both;
}
.mp-copy__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  animation: mp-rise 0.75s 0.18s ease both;
}
.mp-copy__pill {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #ff8cb0 0%, #fe7099 42%, #f04d7a 100%);
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(240, 77, 122, 0.22);
}
.mp-copy__pill--soft {
  appearance: none;
  border: 1px solid rgba(240, 77, 122, 0.18);
  font-family: inherit;
  color: var(--mp-pink);
  background: #fff;
  box-shadow: none;
  cursor: pointer;
  line-height: 1.4;
}
.mp-copy__pill--soft:hover,
.mp-copy__pill--soft.is-open {
  border-color: rgba(240, 77, 122, 0.4);
  background: #fff7fa;
  box-shadow: 0 6px 16px rgba(240, 77, 122, 0.12);
}

/* 扫码体验 / 微信小程序：悬停气泡小程序码 */
.mp-qr-trigger {
  position: relative;
  z-index: 5;
}
.mp-qr-pop {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 188px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(44, 36, 48, 0.16), 0 0 0 1px rgba(240, 77, 122, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px) scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 40;
  text-align: center;
}
.mp-qr-pop::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 22px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: -1px -1px 0 rgba(240, 77, 122, 0.06);
}
.mp-qr-pop--up {
  top: auto;
  bottom: calc(100% + 12px);
  left: 50%;
  right: auto;
  transform: translate(-50%, 6px) scale(0.96);
}
.mp-qr-pop--up::before {
  top: auto;
  bottom: -6px;
  left: 50%;
  right: auto;
  margin-left: -6px;
  box-shadow: 1px 1px 0 rgba(240, 77, 122, 0.06);
}
.mp-qr-pop__img {
  display: block;
  width: 160px;
  height: 160px;
  margin: 0 auto;
  border-radius: 8px;
  background: #f7f7f8;
}
.mp-qr-pop__tip {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--mp-muted);
  letter-spacing: 0.02em;
}
.mp-qr-trigger:hover .mp-qr-pop,
.mp-qr-trigger:focus-within .mp-qr-pop,
.mp-qr-trigger.is-open .mp-qr-pop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.mp-qr-trigger:hover .mp-qr-pop--up,
.mp-qr-trigger:focus-within .mp-qr-pop--up,
.mp-qr-trigger.is-open .mp-qr-pop--up {
  transform: translate(-50%, 0) scale(1);
}

.mp-dots {
  display: flex;
  gap: 8px;
  list-style: none;
  animation: mp-rise 0.75s 0.22s ease both;
}
.mp-dots button {
  width: 8px; height: 8px;
  border: none; border-radius: 999px;
  background: rgba(240, 77, 122, 0.22);
  cursor: pointer;
  padding: 0;
  transition: width 0.25s ease, background 0.25s ease;
}
.mp-dots button.is-active {
  width: 22px;
  background: var(--mp-pink);
}

.mp-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 0;
  animation: mp-rise 0.85s 0.1s ease both;
}

.mp-phone {
  position: relative;
  width: min(252px, 34vh);
  aspect-ratio: 9 / 19.2;
  max-height: min(520px, 68vh);
  border-radius: 32px;
  background: linear-gradient(160deg, #2a2a2e 0%, #141416 100%);
  padding: 10px;
  box-shadow:
    0 22px 44px rgba(20, 20, 30, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  flex: 0 0 auto;
  overflow: hidden;
  /* 防止内容撑破手机框 */
  height: auto;
}
.mp-phone__notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 38%; height: 10px;
  background: #141416;
  border-radius: 999px;
  z-index: 3;
}
.mp-phone__home {
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  width: 28%; height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  z-index: 3;
}
.mp-phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  isolation: isolate;
}

/* ===== slides ===== */
.mp-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: 11px;
  color: #333;
  /* 绝对铺满屏幕，禁止被内部内容撑高溢出框外 */
  width: 100%;
  height: 100%;
  max-height: 100%;
  box-sizing: border-box;
}
.mp-slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.mp-status {
  flex: 0 0 auto;
  height: 22px;
  padding: 8px 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 600;
  color: #222;
  z-index: 2;
}
.mp-status__icons { display: flex; gap: 3px; align-items: center; }
.mp-status__dot {
  width: 8px; height: 5px; border-radius: 1px;
  background: #222; opacity: 0.75;
}

.mp-tabbar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  padding: 6px 0 10px;
  z-index: 2;
}
.mp-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  color: #999;
}
.mp-tab.is-on { color: var(--mp-pink); font-weight: 600; }
.mp-tab__ico {
  width: 18px; height: 18px;
  border-radius: 6px;
  background: #eee;
  position: relative;
}
.mp-tab.is-on .mp-tab__ico { background: rgba(240, 77, 122, 0.15); }
.mp-tab__ico--scan::before {
  content: "";
  position: absolute; inset: 4px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  color: inherit;
}
.mp-tab__ico--shop::before {
  content: "";
  position: absolute;
  left: 4px; right: 4px; top: 6px; bottom: 4px;
  border: 1.5px solid currentColor;
  border-radius: 2px 2px 3px 3px;
}
.mp-tab__ico--me::before {
  content: "";
  position: absolute;
  left: 50%; top: 4px;
  width: 7px; height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
}
.mp-tab__ico--me::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: 3px; height: 5px;
  border: 1.5px solid currentColor;
  border-radius: 6px 6px 2px 2px;
  border-bottom: none;
}

/* —— 首页：扫码留言（对齐小程序 index，绝对叠放不撑破手机框） —— */
.ui-home {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  min-height: 0;
  overflow: hidden;
  height: 100%;
}
.ui-home__app {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
}
/* 顶部二维码卡片：浮在插画上方 */
.ui-home__head {
  position: absolute;
  top: 7%;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  max-width: 72px;
  padding: 4px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(240, 77, 122, 0.12);
  z-index: 3;
}
.ui-home__qr-btn {
  width: 100%;
  height: 16px;
  line-height: 16px;
  text-align: center;
  background: linear-gradient(135deg, #ff8cb0 0%, #fe7099 45%, #f04d7a 100%);
  color: #fff;
  font-size: 8px;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 4px;
  box-shadow: 0 2px 6px rgba(240, 77, 122, 0.28);
}
.ui-home__qr {
  width: 100%;
  display: block;
  border-radius: 2px;
}
/* 插画区铺满，二维码卡片叠在其上（对应小程序 cen top:-100rpx） */
.ui-home__cen {
  position: absolute;
  left: 0;
  right: 0;
  top: 4%;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.ui-home__art {
  width: 100%;
  height: auto;
  max-height: 58%;
  object-fit: contain;
  object-position: top center;
  display: block;
  pointer-events: none;
  flex: 0 1 auto;
}
.ui-home__title {
  width: 100%;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  margin: 2px 0 0;
  color: #111;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}
.ui-home__scan {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8cb0 0%, #fe7099 45%, #f04d7a 100%);
  box-shadow: 0 6px 16px rgba(240, 77, 122, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto 4px;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  animation: mp-pulse 2.4s ease-in-out infinite;
}
.ui-home__scan img {
  width: 18px;
  height: 18px;
  display: block;
}

.mp-status--on-pink {
  color: rgba(255, 255, 255, 0.95);
}
.mp-status--on-pink .mp-status__dot {
  background: #fff;
  opacity: 0.9;
}

/* —— 选择留言方式（对齐小程序 i_add 头部：通顶粉 + 底圆角 + 两侧延展） —— */
.ui-add {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  min-height: 0;
  overflow: hidden;
  position: relative;
}
.ui-add__header {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  overflow: visible;
}
.ui-add__extend {
  position: absolute;
  top: 0;
  width: 12px;
  height: calc(100% + 52px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #fe7099 0%,
    #fe7099 55%,
    rgba(254, 112, 153, 0.62) 70%,
    rgba(254, 112, 153, 0.28) 84%,
    rgba(255, 245, 248, 0.45) 93%,
    rgba(255, 255, 255, 0) 100%
  );
}
.ui-add__extend--l { left: 0; }
.ui-add__extend--r { right: 0; }
.ui-add__main {
  position: relative;
  z-index: 2;
  background: #fe7099;
  border-radius: 0 0 18px 18px;
  padding-bottom: 16px;
  box-shadow: 0 4px 12px rgba(254, 112, 153, 0.14);
  overflow: hidden;
  color: #fff;
}
.ui-add__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ui-add__orb {
  position: absolute;
  border-radius: 50%;
  display: block;
}
.ui-add__orb--1 {
  top: -28px; right: -30px;
  width: 86px; height: 86px;
  background: rgba(255, 255, 255, 0.16);
}
.ui-add__orb--2 {
  top: 28px; right: 18px;
  width: 48px; height: 48px;
  background: rgba(255, 140, 176, 0.38);
}
.ui-add__orb--3 {
  bottom: 10px; left: -16px;
  width: 40px; height: 40px;
  background: rgba(255, 255, 255, 0.1);
}
.ui-add__main .mp-status {
  position: relative;
  z-index: 2;
}
.ui-add__hero {
  position: relative;
  z-index: 2;
  padding: 2px 14px 0;
}
.ui-add__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.ui-add__tag i {
  width: 5px; height: 5px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}
.ui-add__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
  line-height: 1.25;
}
.ui-add__desc {
  font-size: 10px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}
.ui-add__content {
  position: relative;
  z-index: 3;
  flex: 1;
  min-height: 0;
  margin: -10px 10px 0;
  padding: 10px 8px 8px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, #fff5f8 0%, #fff8fb 48%, #fff 100%);
  display: flex;
  flex-direction: column;
}
.ui-add__cards {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: hidden;
  min-height: 0;
}
.ui-add__card {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: 0 4px 12px rgba(254, 112, 153, 0.08);
  border: 1px solid rgba(254, 112, 153, 0.1);
}
.ui-add__icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ui-add__icon--audio {
  background: linear-gradient(145deg, #ff8fa8, #ff6b8a);
  box-shadow: 0 3px 8px rgba(255, 107, 138, 0.28);
}
.ui-add__icon--video {
  background: linear-gradient(145deg, #7eb8f7, #5b8def);
  box-shadow: 0 3px 8px rgba(91, 141, 239, 0.28);
}
.ui-add__icon--memo {
  background: linear-gradient(145deg, #f5b86a, #e8943a);
  box-shadow: 0 3px 8px rgba(232, 148, 58, 0.28);
}
.ui-add__waves { display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.ui-add__waves span {
  width: 3px; background: #fff; border-radius: 2px;
}
.ui-add__waves span:nth-child(1) { height: 6px; }
.ui-add__waves span:nth-child(2) { height: 12px; }
.ui-add__waves span:nth-child(3) { height: 8px; }
.ui-add__play {
  width: 0; height: 0;
  border-left: 8px solid #fff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-left: 2px;
}
.ui-add__dots { display: flex; flex-direction: column; gap: 3px; align-items: center; }
.ui-add__dots i {
  width: 4px; height: 4px; border-radius: 50%; background: #fff;
}
.ui-add__dots i:nth-child(2) { opacity: 0.7; }
.ui-add__meta { flex: 1; min-width: 0; }
.ui-add__name {
  font-size: 12px; font-weight: 700; color: #333;
  display: flex; align-items: center; gap: 4px;
}
.ui-add__badge {
  font-size: 8px; font-weight: 600;
  color: #fe7099;
  background: rgba(254, 112, 153, 0.12);
  border: 1px solid rgba(254, 112, 153, 0.18);
  padding: 1px 5px; border-radius: 999px;
}
.ui-add__badge--new {
  color: #fe7099;
  background: rgba(254, 112, 153, 0.12);
}
.ui-add__hint { font-size: 9px; color: #888; margin-top: 2px; line-height: 1.35; }
.ui-add__cta {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  background: #fe7099;
  box-shadow: 0 2px 6px rgba(254, 112, 153, 0.22);
}
.ui-add__foot {
  text-align: center;
  font-size: 9px;
  color: #e892aa;
  padding: 6px 4px 2px;
  flex: 0 0 auto;
}

/* —— 语音祝福信封（对齐小程序 mess-reveal） —— */
.ui-voice {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #2a1520 0%, #1a0e14 55%, #120a0e 100%);
  color: #fff;
  min-height: 0;
  position: relative;
  overflow: hidden;
  padding: 8px 10px 12px;
  box-sizing: border-box;
}
.ui-voice__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(22px);
  pointer-events: none;
}
.ui-voice__glow--a {
  width: 100px; height: 100px;
  background: rgba(254, 112, 153, 0.38);
  top: 36%; left: 50%;
  transform: translateX(-50%);
}
.ui-voice__glow--b {
  width: 70px; height: 70px;
  background: rgba(255, 184, 204, 0.22);
  top: 22%; right: 8%;
}
.ui-voice__card {
  position: relative;
  z-index: 2;
  width: 86%;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 14px;
  padding: 12px 10px 10px;
  text-align: center;
  color: #3a2430;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  flex: 0 0 auto;
}
.ui-voice__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  margin: 0 auto 6px;
  background: linear-gradient(145deg, #ffc0d4, #f04d7a);
  box-shadow: 0 0 0 3px rgba(240, 77, 122, 0.18);
}
.ui-voice__label { font-size: 9px; color: #888; }
.ui-voice__name {
  font-size: 12px;
  font-weight: 700;
  margin-top: 3px;
  color: var(--mp-pink);
}
.ui-voice__divider {
  width: 36px;
  height: 2px;
  margin: 8px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(254, 112, 153, 0.55), transparent);
}

/* 信封：按 mess-reveal 结构缩小 */
.ui-voice__env {
  position: relative;
  z-index: 2;
  width: 148px;
  height: 100px;
  margin: 14px auto 0;
  flex: 0 0 auto;
}
.ui-voice__env-shadow {
  position: absolute;
  left: 10px; right: 10px;
  bottom: -6px;
  height: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  filter: blur(6px);
}
.ui-voice__env-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 64px;
  border-radius: 4px 4px 6px 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(240, 77, 122, 0.35);
  z-index: 1;
}
.ui-voice__env-body-inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ffd6e3 0%, #fe7099 55%, #f04d7a 100%);
}
.ui-voice__env-body-inner::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent);
}
.ui-voice__env-edge {
  position: absolute;
  bottom: 0;
  width: 50%;
  height: 32px;
  opacity: 0.35;
  z-index: 1;
}
.ui-voice__env-edge--l {
  left: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.12), transparent 60%);
  clip-path: polygon(0 100%, 100% 100%, 0 0);
}
.ui-voice__env-edge--r {
  right: 0;
  background: linear-gradient(-135deg, rgba(0, 0, 0, 0.12), transparent 60%);
  clip-path: polygon(100% 100%, 0 100%, 100% 0);
}
.ui-voice__env-pocket {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 38px;
  background: linear-gradient(180deg, #ffb8cc 0%, #fe7099 100%);
  border-radius: 0 0 6px 6px;
  clip-path: polygon(0 36%, 50% 0, 100% 36%, 100% 100%, 0 100%);
  z-index: 3;
}
/* 封盖：尖角朝下盖住口袋 */
.ui-voice__env-flap {
  position: absolute;
  left: 0; right: 0;
  top: 36px;
  height: 46px;
  z-index: 6;
  transform-origin: 50% 0;
  animation: mp-flap 2.8s ease-in-out infinite;
}
.ui-voice__env-flap-inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ffc9d8 0%, #fe7099 100%);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  box-shadow: 0 4px 10px rgba(240, 77, 122, 0.22);
}
.ui-voice__env-flap-inner::after {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 1px; height: 100%;
  margin-left: -0.5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 70%);
}
.ui-voice__env-seal {
  position: absolute;
  left: 50%;
  top: 44px;
  width: 22px; height: 22px;
  margin-left: -11px;
  z-index: 7;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff5f8, #f04d7a);
  border: 2px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 2px 6px rgba(240, 77, 122, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: mp-pulse 2.2s ease-in-out infinite;
}
.ui-voice__env-heart {
  width: 8px; height: 8px;
  background: #fff;
  transform: rotate(45deg);
  border-radius: 1px;
  position: relative;
}
.ui-voice__env-heart::before,
.ui-voice__env-heart::after {
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
}
.ui-voice__env-heart::before { left: -4px; top: 0; }
.ui-voice__env-heart::after { left: 0; top: -4px; }
.ui-voice__hint {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  flex: 0 0 auto;
}
.ui-voice__hint span {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.78);
}

/* —— 视频祝福（封面图 + 播放按钮） —— */
.ui-video {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0f0f12;
  min-height: 0;
  color: #fff;
}
.ui-video__player {
  flex: 1;
  margin: 8px 10px 6px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  background: #1a1a1e;
}
.ui-video__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.ui-video__shade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
  z-index: 1;
}
.ui-video__play {
  position: relative;
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.ui-video__play::after {
  content: "";
  width: 0; height: 0;
  border-left: 12px solid var(--mp-pink);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  margin-left: 3px;
}
.ui-video__dots {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
  z-index: 2;
}
.ui-video__dots i {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}
.ui-video__dots i.is-on {
  background: #fff;
  width: 12px;
  border-radius: 999px;
}
.ui-video__thumbs {
  display: flex;
  gap: 6px;
  padding: 0 12px 6px;
  flex: 0 0 auto;
}
.ui-video__thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid transparent;
  opacity: 0.72;
  background: #2a2a30;
}
.ui-video__thumb.is-on {
  border-color: #fe7099;
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(254, 112, 153, 0.35);
}
.ui-video__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ui-video__thumb--more {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  background: #2a2a30;
}
.ui-video__meta {
  padding: 0 12px 12px;
  flex: 0 0 auto;
}
.ui-video__meta strong {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}
.ui-video__meta span {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.55);
}

/* —— 生日纪念（对齐小程序 birthday-reveal 扫码揭幕） —— */
.ui-birth {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: #fff5fa;
}
.ui-birth__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 245, 250, 0.96);
  z-index: 0;
}
.ui-birth__confetti {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.ui-birth__confetti i {
  position: absolute;
  top: -8px;
  width: 5px;
  height: 8px;
  border-radius: 1px;
  opacity: 0.85;
  animation: ui-birth-confetti 2.8s linear infinite;
}
.ui-birth__confetti i:nth-child(1) { left: 8%; background: #ff6b9d; animation-delay: 0s; }
.ui-birth__confetti i:nth-child(2) { left: 20%; background: #ffd54f; animation-delay: 0.2s; }
.ui-birth__confetti i:nth-child(3) { left: 32%; background: #81d4fa; animation-delay: 0.4s; }
.ui-birth__confetti i:nth-child(4) { left: 44%; background: #ce93d8; animation-delay: 0.1s; }
.ui-birth__confetti i:nth-child(5) { left: 56%; background: #ff8a65; animation-delay: 0.55s; }
.ui-birth__confetti i:nth-child(6) { left: 68%; background: #a5d6a7; animation-delay: 0.3s; }
.ui-birth__confetti i:nth-child(7) { left: 80%; background: #ff6b9d; animation-delay: 0.7s; }
.ui-birth__confetti i:nth-child(8) { left: 90%; background: #ffd54f; animation-delay: 0.15s; }

.ui-birth__stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 12px 28px;
  min-height: 0;
  text-align: center;
}
.ui-birth__title-block {
  animation: mp-rise 0.7s cubic-bezier(0.34, 1.45, 0.64, 1) both;
}
.ui-birth__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #e91e63;
  text-shadow: 0 2px 8px rgba(233, 30, 99, 0.15);
  line-height: 1.2;
}
.ui-birth__sub {
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 2px;
  color: #f06292;
  font-weight: 600;
}
.ui-birth__dedicate {
  margin-top: 14px;
  animation: mp-rise 0.75s 0.12s ease both;
}
.ui-birth__avatar {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border-radius: 50%;
  border: 2px solid #ffb4c8;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 0 0 3px rgba(255, 180, 200, 0.25);
  animation: ui-birth-pulse 2.4s ease-in-out infinite;
}
.ui-birth__from,
.ui-birth__suffix {
  font-size: 10px;
  color: #888;
}
.ui-birth__name {
  margin: 2px 0;
  font-size: 15px;
  font-weight: 700;
  color: #333;
}
.ui-birth__wish {
  margin-top: 6px;
  font-size: 9px;
  color: #999;
  line-height: 1.4;
}
.ui-birth__celebrate {
  position: relative;
  margin-top: 12px;
  width: 100%;
  height: 56px;
  animation: mp-rise 0.75s 0.2s ease both;
}
.ui-birth__emoji {
  font-size: 28px;
  line-height: 1;
  animation: ui-birth-bounce 1.2s ease-in-out infinite;
}
.ui-birth__balloons {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 40px;
  pointer-events: none;
}
.ui-birth__balloon {
  position: absolute;
  bottom: 0;
  width: 14px;
  height: 18px;
  border-radius: 50% 50% 45% 45%;
  animation: ui-birth-balloon 2.4s ease-in-out infinite;
}
.ui-birth__balloon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 1px;
  height: 10px;
  margin-left: -0.5px;
  background: rgba(0, 0, 0, 0.12);
}
.ui-birth__balloon--a { left: 18%; background: #ff6b9d; }
.ui-birth__balloon--b { left: 46%; background: #ffd54f; animation-delay: 0.25s; }
.ui-birth__balloon--c { left: 72%; background: #81d4fa; animation-delay: 0.5s; width: 12px; height: 15px; }
.ui-birth__hint {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  text-align: center;
  padding: 0 10px 12px;
  font-size: 9px;
  color: rgba(233, 30, 99, 0.55);
  letter-spacing: 0.5px;
}

@keyframes ui-birth-confetti {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.9; }
  100% { transform: translateY(320px) rotate(260deg); opacity: 0; }
}
@keyframes ui-birth-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes ui-birth-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes ui-birth-balloon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* —— 小店（官网轮播已隐藏，样式保留无妨） —— */
.ui-shop {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f5f5f7;
  min-height: 0;
}
.ui-shop__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 12px 8px;
  background: #fff;
  font-weight: 700;
  font-size: 13px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.ui-shop__nav span { font-size: 10px; color: var(--mp-pink); font-weight: 600; }
.ui-shop__orders {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 8px 8px 0;
  background: #fff;
  border-radius: 10px;
  padding: 8px 4px;
}
.ui-shop__order {
  text-align: center;
  font-size: 8px;
  color: #666;
}
.ui-shop__order i {
  display: block;
  width: 22px; height: 22px;
  margin: 0 auto 3px;
  border-radius: 8px;
  background: #fff0f5;
  position: relative;
}
.ui-shop__order i::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1.5px solid var(--mp-pink);
  border-radius: 2px;
}
.ui-shop__grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  min-height: 0;
  overflow: hidden;
}
.ui-shop__item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.ui-shop__cover {
  height: 58px;
  background: linear-gradient(145deg, #ffe0ea, #fe7099);
}
.ui-shop__cover--2 {
  background: linear-gradient(145deg, #e8f0ff, #7aa2ff);
}
.ui-shop__info { padding: 6px 7px 8px; }
.ui-shop__info strong {
  display: block;
  font-size: 10px;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ui-shop__info em {
  font-style: normal;
  color: var(--mp-pink);
  font-weight: 700;
  font-size: 11px;
}

.mp-feature {
  max-width: 200px;
  flex: 0 1 auto;
}
.mp-feature__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--mp-pink);
  background: #fff;
  border: 1px solid rgba(240, 77, 122, 0.16);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.mp-feature__title {
  font-family: var(--mp-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--mp-ink);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mp-feature__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--mp-muted);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mp-feature.is-swap .mp-feature__title,
.mp-feature.is-swap .mp-feature__desc {
  opacity: 0;
  transform: translateY(6px);
}

.mp-foot {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  padding: 8px 20px 14px;
  font-size: 11px;
  color: rgba(44, 36, 48, 0.4);
}
.mp-foot a {
  color: rgba(240, 77, 122, 0.8);
  text-decoration: none;
}

@keyframes mp-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes mp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes mp-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 16px rgba(240, 77, 122, 0.38); }
  50% { transform: scale(1.04); box-shadow: 0 10px 20px rgba(240, 77, 122, 0.45); }
}
@keyframes mp-flap {
  0%, 100% { transform: rotateX(0deg); }
  50% { transform: rotateX(-14deg); }
}

@media (max-width: 900px) {
  .mp-home { max-height: none; overflow: auto; }
  .mp-hero {
    grid-template-columns: 1fr;
    padding: 8px 20px 16px;
    gap: 16px;
    text-align: center;
  }
  .mp-copy__lead { margin-left: auto; margin-right: auto; }
  .mp-copy__cta, .mp-dots { justify-content: center; }
  .mp-stage { flex-direction: column; gap: 14px; }
  .mp-feature { max-width: 280px; text-align: center; }
  .mp-phone {
    width: min(220px, 48vw);
    max-height: min(400px, 58vh);
  }
  .mp-stage {
    /* 给手机框下方文案留空，避免底栏视觉重叠 */
    padding-bottom: 4px;
  }
  .mp-nav { padding: 12px 16px 0; }
  .mp-qr-pop,
  .mp-qr-pop--up {
    top: calc(100% + 10px);
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translate(-50%, 6px) scale(0.96);
  }
  .mp-qr-pop::before,
  .mp-qr-pop--up::before {
    top: -6px;
    bottom: auto;
    left: 50%;
    right: auto;
    margin-left: -6px;
    box-shadow: -1px -1px 0 rgba(240, 77, 122, 0.06);
  }
  .mp-qr-trigger:hover .mp-qr-pop,
  .mp-qr-trigger:focus-within .mp-qr-pop,
  .mp-qr-trigger.is-open .mp-qr-pop,
  .mp-qr-trigger:hover .mp-qr-pop--up,
  .mp-qr-trigger:focus-within .mp-qr-pop--up,
  .mp-qr-trigger.is-open .mp-qr-pop--up {
    transform: translate(-50%, 0) scale(1);
  }
}

@media (max-height: 720px) and (min-width: 901px) {
  .mp-phone { width: min(220px, 30vh); max-height: 58vh; }
  .mp-copy__brand { font-size: 44px; }
  .mp-hero { padding-top: 4px; }
}
