/* ===== 设计变量 · Mayhaps 品牌规范 V2 (2026-07-02) =====
   PICK = Wrendale 挑脸系统：主角 灰紫 Mauve + 暖脏橘 Terracotta，
   骨架 橄榄灰绿 Olive，基底 米杏 Cream。字体标题用 Expletus Sans。
   规范基准：E:/Projects/mayhaps/brand/mayhaps-color-guide.html */
:root {
  /* Mayhaps 五色主板 */
  --mh-olive:     #5C6E68;
  --mh-sage:      #A9B29B;
  --mh-mauve:     #AA919F;
  --mh-terra:     #C58A59;
  --mh-cream:     #EEE6DA;

  /* 兼容旧变量名 → 映射到规范色，保证全站语义不改也能统一换色 */
  --cream:        #EEE6DA;   /* 米杏基底 */
  --warm-white:   #F7F2EA;   /* 米杏浅 */
  --biscuit:      #E3D9C9;   /* 米杏深 */
  --earth-dark:   #4A3F3A;   /* 深墨文字（暖调） */
  --earth-mid:    #8C7F79;   /* 次级文字 */
  --earth-light:  #DCD2C4;   /* 边框/浅面 */
  --terracotta:   #C58A59;   /* 主 CTA = 暖脏橘 */
  --terracotta-light: #D9AB82;
  --sage:         #808A72;   /* 深鼠尾草绿（成功/进行中） */
  --golden:       #C58A59;   /* 金色统一收敛到脏橘 */
  --pick-gold:    #D9AB82;
  --pick-pink:    #C9B3BF;   /* 浅灰紫替代旧粉 */
  --pick-lavender:#AA919F;   /* 灰紫 */

  /* === Mayhaps 物托邦 渠道品牌色（灰紫为主角） === */
  --mayhaps-purple:        #AA919F;
  --mayhaps-purple-light:  #C9B3BF;
  --mayhaps-purple-bg:     #F6F1F3;

  --shadow-soft:  0 4px 20px rgba(74, 63, 58, 0.08);
  --shadow-card:  0 6px 24px rgba(74, 63, 58, 0.12);
  --shadow-pop:   0 10px 40px rgba(74, 63, 58, 0.18);
  --font-display: 'Expletus Sans', 'Playfair Display', 'Georgia', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--earth-dark);
  min-height: 100vh;
  padding-bottom: 118px;
  background-image:
    radial-gradient(ellipse at top left, rgba(232,168,124,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(184,169,212,0.10) 0%, transparent 50%);
  background-attachment: fixed;
}

/* ===== Mayhaps 物托邦 顶部品牌带（单行精简） ===== */
.mayhaps-bar {
  position: relative;
  background: linear-gradient(135deg, var(--mh-mauve) 0%, #B9A4B0 100%);
  padding: 7px 16px 8px;
  text-align: center;
  border-bottom: 1px solid rgba(170, 145, 159, 0.4);
  font-size: 12px;
  color: #FFFFFF;
  letter-spacing: 0.8px;
  line-height: 1.2;
}
.mayhaps-bar-row1 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mayhaps-bar-logo {
  height: 15px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}
.mayhaps-bar-sep {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
}
.mayhaps-bar-text {
  font-weight: 500;
}
/* 回到官网胶囊按钮（品牌带右侧） */
.mayhaps-bar-home {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px 3px 10px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #FFFFFF;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-decoration: none;
  line-height: 1.4;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s, transform 0.15s;
}
.mayhaps-bar-home:hover,
.mayhaps-bar-home:active {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%) scale(1.03);
}
.mayhaps-bar-home-arrow {
  font-size: 10px;
  opacity: 0.85;
  margin-left: 1px;
}
@media (max-width: 360px) {
  .mayhaps-bar-home {
    padding: 3px 7px;
    font-size: 10px;
    letter-spacing: 0.3px;
  }
}

/* ===== 顶部品牌区（紧凑但有呼吸感） ===== */
.brand-header {
  position: relative;
  text-align: center;
  padding: 18px 24px 14px;
}
.brand-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--golden);
  letter-spacing: 5px;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(201, 150, 58, 0.2);
}
.brand-title::before, .brand-title::after {
  content: '✿';
  display: inline-block;
  margin: 0 10px;
  color: var(--terracotta-light);
  font-size: 16px;
  vertical-align: middle;
}
.session-subtitle {
  font-size: 13.5px;
  color: var(--earth-dark);
  margin-bottom: 3px;
  line-height: 1.4;
  font-weight: 500;
}
.session-desc {
  font-size: 12px;
  color: var(--earth-mid);
  line-height: 1.55;
}
.leaf-deco {
  position: absolute;
  font-size: 24px;
  opacity: 0.45;
  top: 22px;
}
.leaf-left  { left: 16px;  transform: rotate(-20deg); }
.leaf-right { right: 16px; transform: rotate(25deg); }

/* ===== 已选过提示条 ===== */
.prev-pick-banner {
  margin: 0 16px 16px;
  background: linear-gradient(135deg, #fdf3e8 0%, #fae5d5 100%);
  border: 1px solid var(--pick-gold);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-soft);
  animation: bannerSlideIn 0.6s ease-out;
}
.prev-pick-icon { font-size: 22px; }
.prev-pick-text { font-size: 14px; color: var(--earth-dark); }
.prev-pick-text strong { color: var(--terracotta); }
@keyframes bannerSlideIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 批次切换浮窗（左侧贴边） ===== */
.batch-switcher {
  position: fixed;
  left: 0;
  top: 42%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  align-items: flex-start;
}
/* 收起态的竖条把手 */
.batch-switcher-tab {
  background: linear-gradient(135deg, var(--mh-mauve) 0%, #B9A4B0 100%);
  color: #fff;
  border: none;
  border-radius: 0 16px 16px 0;
  padding: 12px 7px 14px;
  cursor: pointer;
  box-shadow: 3px 4px 16px rgba(74, 63, 58, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
}
.batch-switcher-tab-icon { font-size: 18px; line-height: 1; }
.batch-switcher-tab-text {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 1px;
}
/* 展开面板：默认藏在左侧外面，open 时滑入 */
.batch-switcher-panel {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-108%, -50%);
  width: 250px;
  max-height: 66vh;
  overflow-y: auto;
  background: var(--warm-white);
  border: 1px solid var(--earth-light);
  border-radius: 0 18px 18px 0;
  box-shadow: 6px 8px 30px rgba(74, 63, 58, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.24s ease;
  padding: 14px 14px 16px;
}
.batch-switcher.open .batch-switcher-panel {
  transform: translate(0, -50%);
  opacity: 1;
  pointer-events: auto;
}
.batch-switcher.open .batch-switcher-tab {
  opacity: 0;
  pointer-events: none;
}
.batch-switcher-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.batch-switcher-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--mh-mauve);
  letter-spacing: 0.5px;
}
.batch-switcher-close {
  width: 26px;
  height: 26px;
  border: none;
  background: rgba(170, 145, 159, 0.14);
  color: var(--mh-mauve);
  font-size: 18px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
}
.batch-switcher-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.batch-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border: 1px solid var(--earth-light);
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.batch-item:hover {
  border-color: var(--mh-mauve);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}
.batch-item.active {
  border-color: var(--mh-mauve);
  background: var(--mayhaps-purple-bg);
}
.batch-item-thumb {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--biscuit) center/cover no-repeat;
}
.batch-item-body { flex: 1; min-width: 0; }
.batch-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--earth-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.batch-item-meta {
  font-size: 12px;
  color: var(--earth-mid);
  margin-top: 2px;
}
.batch-item-current {
  font-size: 11px;
  color: #fff;
  background: var(--mh-mauve);
  border-radius: 999px;
  padding: 2px 8px;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .batch-switcher-panel { width: 220px; }
}

/* ===== 照片墙（一排 5 只为主） ===== */
.picks-wall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 0 14px;
  max-width: 900px;
  margin: 0 auto;
}
/* 小屏手机：5 只会太挤，降到 3 列 */
@media (max-width: 480px) {
  .picks-wall { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}
/* 大屏桌面：保持 5 列，整体撑大 */
@media (min-width: 1100px) {
  .picks-wall { max-width: 1000px; gap: 14px; }
}

.pick-card {
  position: relative;
  background: var(--warm-white);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  border: 3px solid transparent;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: translateY(30px);
  aspect-ratio: 3 / 4;
}
.pick-card.entered {
  opacity: 1;
  transform: translateY(0);
}
.pick-card:active {
  transform: scale(0.97);
}
.pick-card.dimmed {
  opacity: 0.45;
  filter: grayscale(0.5);
  transform: scale(0.98);
}
/* 已被领走的玩偶：灰显 + 角标 + 禁用反馈 */
.pick-card.locked {
  opacity: 0.55;
  filter: grayscale(0.75);
  cursor: not-allowed;
}
.pick-card.locked:active { transform: none; }
.pick-card.locked .pick-img { filter: grayscale(0.4) brightness(0.95); }
.pick-card.locked .pick-heart { display: none; }
.pick-locked-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(60, 36, 21, 0.78);
  color: #fff;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  z-index: 3;
}
.pick-card.selected {
  border-color: var(--pick-gold);
  transform: scale(1.04);
  box-shadow: 0 12px 32px rgba(184, 89, 62, 0.25);
  opacity: 1;
  filter: none;
}

.pick-img {
  width: 100%;
  height: 75%;
  object-fit: cover;
  display: block;
  background:
    url('assets/bg-green.jpg') center/cover no-repeat,
    var(--biscuit);
}

.pick-num-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 253, 248, 0.95);
  color: var(--earth-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(6px);
}

.pick-name {
  height: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--earth-mid);
  background: var(--warm-white);
  letter-spacing: 0.5px;
}

.pick-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: var(--terracotta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(184, 89, 62, 0.4);
}
.pick-card.selected .pick-heart {
  transform: scale(1);
  animation: heartPulse 1.6s ease-in-out infinite;
}
@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.pick-zoom {
  position: absolute;
  bottom: 30%;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(255, 253, 248, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: var(--shadow-soft);
  z-index: 2;
}

/* ===== 底部提交栏（紧凑化） ===== */
.submit-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--earth-light);
  padding: 10px 14px max(10px, env(safe-area-inset-bottom));
  z-index: 50;
  box-shadow: 0 -4px 20px rgba(60, 36, 21, 0.06);
}
.submit-inner {
  max-width: 720px;
  margin: 0 auto;
}
.nickname-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.nickname-label {
  font-size: 12px;
  color: var(--earth-mid);
  white-space: nowrap;
}
#nicknameInput {
  flex: 1;
  border: 1.5px solid var(--earth-light);
  background: var(--warm-white);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--earth-dark);
  outline: none;
  transition: border-color 0.2s;
}
#nicknameInput:focus { border-color: var(--terracotta-light); }
#nicknameInput::placeholder { color: #c0b3a0; }

.btn-submit {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 14px;
  background: var(--earth-light);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}
.btn-submit:not(:disabled) {
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-light) 100%);
  box-shadow: 0 6px 18px rgba(184, 89, 62, 0.35);
}
.btn-submit:not(:disabled):active { transform: scale(0.98); }
.btn-submit .btn-icon { font-size: 18px; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(40, 25, 15, 0.92);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 26px;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox-inner {
  text-align: center;
  max-width: 480px;
  width: 100%;
}
.lightbox-num {
  font-family: var(--font-display);
  color: #fff;
  font-size: 22px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.lightbox-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--biscuit);
  background-size: cover;
  background-position: center;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: zoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.lightbox-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-pick-this {
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-light) 100%);
  color: #fff;
  border: none;
  padding: 14px 34px;
  border-radius: 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(197, 138, 89, 0.4);
}
.btn-lightbox-back {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  padding: 14px 26px;
  border-radius: 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-lightbox-back:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.55);
}

/* ===== 确认弹窗 ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(40, 25, 15, 0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.show { display: flex; animation: fadeIn 0.25s ease; }
.modal-card {
  background: var(--warm-white);
  border-radius: 20px;
  padding: 26px 22px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-pop);
  animation: modalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--earth-dark);
  margin-bottom: 18px;
}
.modal-preview {
  width: 140px;
  height: 180px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  background-color: var(--biscuit);
  box-shadow: var(--shadow-card);
}
.modal-info {
  font-size: 14px;
  color: var(--earth-mid);
  line-height: 1.8;
  margin-bottom: 22px;
}
.modal-info strong { color: var(--terracotta); }
.modal-actions {
  display: flex;
  gap: 10px;
}
.btn-cancel, .btn-confirm {
  flex: 1;
  height: 44px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-cancel {
  background: var(--biscuit);
  color: var(--earth-mid);
}
.btn-confirm {
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-light) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(184, 89, 62, 0.3);
}

/* ===== 庆祝层 ===== */
.celebrate-layer {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(250,246,239,0.95) 0%, rgba(255,253,248,0.98) 100%);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.celebrate-layer.show { display: flex; animation: fadeIn 0.5s ease; }
#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.celebrate-msg {
  position: relative;
  text-align: center;
  z-index: 2;
  padding: 0 30px;
}
.celebrate-title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 14px;
  animation: titleBounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.celebrate-sub {
  font-size: 16px;
  color: var(--earth-dark);
  margin-bottom: 32px;
  animation: titleBounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s backwards;
}
@keyframes titleBounce {
  from { transform: scale(0) rotate(-10deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}
.celebrate-actions {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.btn-share-friend {
  background: linear-gradient(135deg, var(--mh-mauve) 0%, #C9B3BF 100%);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 18px rgba(170, 145, 159, 0.45);
  animation: titleBounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s backwards;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-share-friend:active {
  transform: scale(0.96);
  box-shadow: 0 3px 10px rgba(170, 145, 159, 0.35);
}
.btn-share-icon { font-size: 16px; }
.btn-share-friend.copied {
  background: linear-gradient(135deg, #7fc480 0%, #a5d6a7 100%);
  box-shadow: 0 6px 18px rgba(127, 196, 128, 0.4);
}
.btn-reselect {
  background: transparent;
  color: var(--earth-mid);
  border: 1.5px solid var(--earth-light);
  padding: 10px 24px;
  border-radius: 22px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  animation: titleBounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s backwards;
}

/* ===== Mayhaps 物托邦 页脚归属块（紧凑版：去 logo） ===== */
.mayhaps-footer {
  max-width: 720px;
  margin: 18px auto 16px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--mayhaps-purple-bg) 0%, #ffffff 100%);
  border: 1px solid rgba(170, 145, 159, 0.35);
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.mayhaps-footer-text {
  font-size: 13px;
  color: #806874;
  line-height: 1.7;
  margin: 0;
  letter-spacing: 0.5px;
}
.mayhaps-footer-text strong {
  color: var(--mh-mauve);
  font-weight: 600;
}
.mayhaps-footer-channels {
  margin-top: 10px;
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.mayhaps-chan-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: rgba(170, 145, 159, 0.15);
  border: 1px solid rgba(170, 145, 159, 0.4);
  border-radius: 14px;
  font-size: 12px;
  color: #806874;
  letter-spacing: 0.3px;
}
.mayhaps-chan-tag .chan-icon { font-size: 13px; }

/* ===== 庆祝层中的 Mayhaps 签名（logo 和"物托邦"并排同行） ===== */
.celebrate-mayhaps {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: titleBounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s backwards;
}
.celebrate-mayhaps-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.celebrate-mayhaps-logo {
  height: 20px;
  opacity: 0.9;
  display: inline-block;
  vertical-align: middle;
}
.celebrate-mayhaps-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--mayhaps-purple);
  letter-spacing: 2px;
  vertical-align: middle;
}
.celebrate-mayhaps-text {
  font-size: 12px;
  color: var(--mayhaps-purple);
  letter-spacing: 1px;
  opacity: 0.85;
}

/* ===== Demo 切换栏 ===== */
.demo-switch {
  position: fixed;
  top: 14px;
  right: 64px;
  z-index: 999;
}
.demo-switch button {
  background: rgba(60,36,21,0.85);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 18px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  backdrop-filter: blur(4px);
}

/* ===== 活动礼遇横幅（首页 brand-header 之后） ===== */
.campaign-banner {
  max-width: 720px;
  margin: 4px auto 14px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #fff7e6 0%, #fff2d6 100%);
  border: 1px dashed rgba(184, 89, 62, 0.45);
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(184, 89, 62, 0.08);
  animation: bannerFadeIn 0.5s ease both;
}
@keyframes bannerFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.campaign-banner-headline {
  font-size: 14px;
  font-weight: 700;
  color: var(--terracotta);
  letter-spacing: 0.5px;
}
.campaign-banner-body {
  font-size: 14px;
  color: var(--earth-dark);
  margin-top: 2px;
}
.campaign-banner-body strong {
  color: var(--terracotta);
  font-weight: 700;
  font-size: 16px;
}
.campaign-banner-hint {
  font-size: 11.5px;
  color: #9b7c5d;
  margin-top: 3px;
  letter-spacing: 0.3px;
}

/* ===== 庆祝层 · 角色专属祝福卡（视觉主角，最大、最醒目） ===== */
.blessing-card {
  margin: 22px auto 4px;
  max-width: 400px;
  padding: 26px 26px 22px;
  background: rgba(255, 253, 248, 0.98);
  border: 1.5px solid rgba(170, 145, 159, 0.5);
  border-radius: 20px;
  text-align: left;
  box-shadow: 0 10px 32px rgba(60, 36, 21, 0.16), 0 0 0 6px rgba(255, 253, 248, 0.4);
  animation: blessingPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s backwards;
  position: relative;
}
@keyframes blessingPop {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.blessing-card::before {
  /* 卡片右上角小装饰，增强"手写小卡片"感 */
  content: '✿';
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 16px;
  color: rgba(170, 145, 159, 0.55);
}
.blessing-char-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(170, 145, 159, 0.4);
}
.blessing-char-emoji { font-size: 28px; }
.blessing-char-name {
  font-size: 15px;
  color: var(--mayhaps-purple);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.blessing-text {
  font-size: 16.5px;
  color: var(--earth-dark);
  line-height: 1.9;
  white-space: pre-line;
  letter-spacing: 0.4px;
  font-weight: 500;
}
.blessing-signature {
  margin-top: 14px;
  font-size: 13px;
  color: #9b7c5d;
  font-style: italic;
  text-align: right;
  letter-spacing: 0.3px;
}
.blessing-signature:empty { display: none; }

/* ===== 庆祝层 · 花园礼遇合并卡（加购优惠 · 新客锁单 · 订单回填 · 客服） =====
   宽度与 .blessing-card 完全保持一致：max-width 400 / padding 26px / radius 20
   只是高度紧凑、视觉权重低于祝福卡（不抢主视觉） */
.garden-card {
  margin: 14px auto 0;
  max-width: 400px;
  padding: 18px 26px 16px;
  background: linear-gradient(180deg, #fffaf0 0%, #fff7ec 100%);
  border: 1px solid rgba(217, 119, 87, 0.28);
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(184, 89, 62, 0.1);
  animation: blessingPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s backwards;
}
.garden-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 1px dashed rgba(217, 119, 87, 0.22);
}
.garden-card-emoji { font-size: 16px; }
.garden-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--terracotta);
  letter-spacing: 0.6px;
}

/* 子板块通用 */
.garden-sub {
  padding: 8px 0 6px;
  border-bottom: 1px dashed rgba(217, 119, 87, 0.15);
}
.garden-sub:last-of-type { border-bottom: none; }
.garden-sub-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.garden-sub-tag {
  display: inline-block;
  padding: 1px 7px;
  background: var(--terracotta);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.garden-sub-tag-purple { background: #806874; }
.garden-sub-desc {
  font-size: 11.5px;
  color: var(--earth-dark);
  line-height: 1.5;
}
.garden-sub-desc strong {
  color: var(--terracotta);
  font-weight: 700;
  font-size: 13px;
}
.garden-sub-newuser .garden-sub-desc strong { color: #806874; }

/* 兑换码/优惠码行 */
.garden-code-row {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: #fffdf8;
  border: 1px dashed rgba(217, 119, 87, 0.5);
  border-radius: 6px;
  margin-bottom: 4px;
}
.garden-sub-newuser .garden-code-row {
  border-color: rgba(170, 145, 159, 0.45);
  background: #fbfaff;
}
.garden-code-label {
  font-size: 10.5px;
  color: #9b7c5d;
  flex-shrink: 0;
}
.garden-code {
  flex: 1;
  text-align: center;
  font-family: 'Playfair Display', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--terracotta);
  letter-spacing: 1.2px;
  word-break: break-all;
}
.garden-code-purple { color: #806874; }
.btn-garden-copy {
  flex-shrink: 0;
  border: none;
  background: var(--terracotta);
  color: #fff;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s;
}
.btn-garden-copy:hover { background: var(--terracotta-light); }
.btn-garden-copy:active { transform: scale(0.94); }
.btn-garden-copy.copied { background: #6b9b3a; }
.btn-garden-copy-purple { background: #806874; }
.btn-garden-copy-purple:hover { background: #6E5763; }

.garden-hint {
  font-size: 10px;
  color: #9b7c5d;
  text-align: center;
  letter-spacing: 0.2px;
}

/* 渠道按钮 */
.garden-channel-buttons {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.btn-garden-channel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 6px;
  border-radius: 7px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  transition: transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.btn-garden-channel:hover { box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1); }
.btn-garden-channel:active { transform: translateY(1px); }
/* 低饱和度品牌色（取自原品牌但降低饱和） */
.btn-garden-taobao {
  background: #e89a7c; /* 低饱和橘陶土色，呼应 terracotta 但更柔 */
  color: #fff;
}
.btn-garden-taobao:hover { background: #de8e6f; }
.btn-garden-xhs {
  background: #d49aa8; /* 低饱和粉藕色，柔和不抢眼 */
  color: #fff;
}
.btn-garden-xhs:hover { background: #c98ea0; }

/* 订单号回填 */
.garden-fill-form {
  display: flex;
  gap: 5px;
}
.garden-fill-input {
  flex: 1;
  min-width: 0;
  padding: 6px 9px;
  border: 1px solid #C9B3BF;
  border-radius: 5px;
  font-size: 12px;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}
.garden-fill-input:focus { border-color: #806874; }
.garden-fill-input:disabled { background: #f0eaf8; color: #888; }
.btn-garden-submit {
  flex-shrink: 0;
  border: none;
  background: #806874;
  color: #fff;
  padding: 6px 11px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.btn-garden-submit:hover { background: #6E5763; }
.btn-garden-submit:disabled { background: #aaa; cursor: default; }
.garden-fill-tip {
  margin-top: 4px;
  font-size: 10.5px;
  color: #8C7F79;
  min-height: 14px;
  text-align: center;
}
.garden-fill-tip.ok { color: #2c8c4a; }
.garden-fill-tip.err { color: #c0392b; }

/* 底部客服（唯一保留入口） */
.garden-cs {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(217, 119, 87, 0.18);
}
.garden-cs-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 10px;
  background: rgba(170, 145, 159, 0.15);
  border: 1px solid rgba(170, 145, 159, 0.4);
  border-radius: 12px;
  font-size: 11px;
  color: #806874;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background 0.15s;
}
.garden-cs-tag:hover { background: rgba(170, 145, 159, 0.28); }
.garden-cs-tag:active { transform: scale(0.96); }

@media (max-width: 480px) {
  .blessing-card { max-width: 92%; padding: 22px 20px 20px; }
  .blessing-text { font-size: 15.5px; line-height: 1.85; }
  .garden-card { max-width: 92%; padding: 16px 20px 14px; }
}

/* ===== 整批锁完的"已找到主人"关闭页 ===== */
.sold-out-card {
  grid-column: 1 / -1;
  max-width: 480px;
  margin: 30px auto;
  padding: 36px 28px;
  background: linear-gradient(180deg, #fffdf8 0%, #faf3e8 100%);
  border: 1px solid var(--earth-light);
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 10px 36px rgba(60, 36, 21, 0.08);
  animation: blessingPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sold-out-emoji {
  font-size: 46px;
  animation: boot-bob 2s ease-in-out infinite;
}
.sold-out-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--earth-dark);
  font-weight: 700;
  margin: 14px 0 10px;
  letter-spacing: 1px;
}
.sold-out-sub {
  font-size: 14px;
  color: var(--earth-mid);
  line-height: 1.7;
  letter-spacing: 0.3px;
}
.sold-out-actions {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.sold-out-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 14px;
  font-family: inherit;
  text-decoration: none;
  border: 1.5px solid var(--earth-light);
  background: #fff;
  color: var(--earth-dark);
  cursor: pointer;
  letter-spacing: 0.4px;
  transition: transform 0.15s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.sold-out-btn:active { transform: scale(0.97); }
.sold-out-btn.primary {
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-light) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 5px 16px rgba(184, 89, 62, 0.3);
}

/* ===== 移动端 / iOS 安全区微调 ===== */
/* 提交栏底部已有 env(safe-area-inset-bottom)，这里给 footer 也加 */
.mayhaps-footer {
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}
/* iPhone 大屏：防止底栏吸到 home indicator 上 */
@supports (padding: env(safe-area-inset-bottom)) {
  body {
    padding-bottom: 0;
  }
}

/* ===== 客服跳转链接的可点击反馈 ===== */
.cs-tag-link, .chan-link {
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: rgba(170, 145, 159, 0.3);
  transition: transform 0.15s ease, background 0.2s ease;
}
.cs-tag-link:active, .chan-link:active {
  transform: scale(0.96);
  background: rgba(170, 145, 159, 0.3);
}
.cs-tag-link:hover, .chan-link:hover {
  background: rgba(170, 145, 159, 0.25);
}

/* ===== 首屏骨架屏（弱网 1-2 秒不让用户看白屏） ===== */
.boot-skeleton {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: linear-gradient(180deg, #fdf9f3 0%, #faf3e8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.boot-skeleton.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.boot-logo {
  font-size: 38px;
  animation: boot-bob 1.4s ease-in-out infinite;
}
.boot-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  letter-spacing: 6px;
  color: #5b3e2a;
  font-weight: 700;
}
.boot-sub {
  font-size: 13px;
  color: #9b7c5d;
  letter-spacing: 1.5px;
}
.boot-dots {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.boot-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c4a978;
  animation: boot-dot 1.2s ease-in-out infinite;
}
.boot-dots span:nth-child(2) { animation-delay: 0.18s; }
.boot-dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes boot-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes boot-dot {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.2); }
}

/* 旧 .order-cta-block / .discount-code-* / .btn-channel-* / .order-fill-* 已迁入 .garden-* */
