/* ===================================================== */
/* 真实页面样式 - 基于5张截图原样还原                        */
/* ===================================================== */

.real-page {
  background: #f0e8e4; max-width: 480px; margin: 0 auto;
  padding-bottom: 70px; min-height: 100vh; position: relative;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 背景层模糊 */
.rp-bg { transition: filter .35s ease; }
.rp-bg.blurred { filter: blur(6px); pointer-events: none; }

/* ====== 固定顶栏(红粉渐变) ====== */
.topbar-fixed {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: linear-gradient(135deg, #E24B4A, #F06C94);
  color: #fff; padding: 10px 14px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 160; font-size: 15px; font-weight: 600;
}
.tb-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-icons { font-size: 18px; letter-spacing: 6px; }

/* 右侧浮动按钮(仅个人中心,灰色) */
.float-btns { position: fixed; right: 8px; top: 55%; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.fb-btn {
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: rgba(120,120,120,.75); box-shadow: 0 2px 8px rgba(0,0,0,.18);
  font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #fff;
}

/* ====== 区块A: 完整海报(直接贴图) ====== */
.hero-sec {
  position: relative; padding: 44px 0 0; overflow: hidden;
  background: linear-gradient(180deg, #FFEEF2 0%, #f5e8e4 100%);
}
.hero-poster-img {
  display: block; width: 100%; height: auto;
}
.sakura-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(255,182,193,.4) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(255,192,203,.35) 0%, transparent 45%),
    radial-gradient(circle at 50% 75%, rgba(221,160,221,.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(255,218,185,.25) 0%, transparent 40%),
    linear-gradient(180deg, #FFEEF2 0%, #FFF0F3 30%, #FFE8EC 60%, #f5e8e4 100%);
  z-index: 0;
}
.hero-sec > * { position: relative; z-index: 1; }

.brand-row {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 14px; color: #333; margin-bottom: 2px;
}
.brand-logo { font-size: 18px; }
.brand-x { color: #E24B4A; font-weight: bold; margin: 0 2px; }
.brand-sub { font-size: 11px; color: #888780; margin-bottom: 10px; letter-spacing: 1px; }

.hero-main-title {
  font-size: 24px; font-weight: 900; color: #222; line-height: 1.35;
  margin: 8px 0 12px; letter-spacing: 2px;
}

.price-badges { display: flex; justify-content: center; gap: 12px; margin: 10px 0 8px; }
.pb-item {
  border: 2px solid #E24B4A; border-radius: 10px; padding: 6px 14px;
  font-size: 13px; color: #333; line-height: 1.4; text-align: center;
}
.pb-item b { font-size: 22px; color: #E24B4A; font-weight: 900; }
.pb-group { background: rgba(226,75,74,.06); border-color: #E24B4A; transform: scale(1.08); }

.hero-subtitle { font-size: 13px; color: #666; line-height: 1.6; margin: 4px 0 16px; }

.dual-photo { display: flex; justify-content: center; gap: 16px; padding: 0 10px; }
.photo-left, .photo-right {
  width: 140px; height: 190px; border-radius: 14px;
  background: linear-gradient(160deg, #FFD9B8, #FFB07A);
  display: flex; align-items: center; justify-content: center;
  color: rgba(138,90,0,.6); font-size: 28px; text-align: center; line-height: 1.4;
}
.photo-right { background: linear-gradient(200deg, #FFD4D4, #FFB0B0); }

/* 主视觉区底部浏览条(页面内嵌,非悬浮) */
.hero-browse-bar {
  display: flex; gap: 8px; padding: 10px 4px 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hero-browse-bar::-webkit-scrollbar { display: none; }
.hbb-item {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.55); backdrop-filter: blur(6px);
  border-radius: 16px; padding: 4px 10px 4px 4px;
  white-space: nowrap; font-size: 11px; color: #555;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  flex-shrink: 0;
}
.hbb-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10px; font-weight: 700; flex-shrink: 0;
}

/* ====== 区块B: 福利卡片区 ====== */
.benefit-card {
  background: linear-gradient(180deg, #F5E0EA, #FCE8EF);
  border-radius: 16px; margin: 0 10px 14px; padding: 14px 10px;
  box-shadow: 0 2px 10px rgba(226,75,74,.08);
}

.benefit-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 8px; padding: 0 4px; }
.bh-left { display: flex; flex-direction: column; align-items: flex-start; }
.bh-tag {
  background: linear-gradient(135deg, #E24B4A, #F06C94); color: #fff;
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 6px;
}
.bh-subtag { font-size: 11px; color: #888; margin-top: 2px; }
.bh-price { font-size: 38px; font-weight: 900; color: #222; line-height: 1; }
.bh-price b { font-size: 52px; }

.benefit-section { margin: 10px 0; padding: 8px 0; border-bottom: 1px dashed rgba(226,75,74,.15); }
.benefit-section:last-child { border-bottom: none; }
.bs-right { background: rgba(255,255,255,.45); border-radius: 10px; padding: 10px; }
.bs-full { text-align: center; }

.bs-title { font-size: 14px; font-weight: 800; color: #222; margin-bottom: 6px; }
.hl-pink { color: #E24B4A; }
.bs-note { font-size: 11px; color: #888; margin-bottom: 4px; }

.bs-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.bs-table td { padding: 4px 3px; border-bottom: 1px solid rgba(0,0,0,.04); vertical-align: top; color: #444; line-height: 1.4; }
.bs-table tr:last-child td { border-bottom: none; }
.bs-table .bs-count { text-align: center; color: #E24B4A; font-weight: 700; white-space: nowrap; width: 32px; }
.bs-table .bs-price { text-align: center; color: #E24B4A; font-weight: 700; white-space: nowrap; width: 36px; }
.bs-table .bs-val { text-align: right; color: #888; white-space: nowrap; }
.bs-table.sm { font-size: 11px; }
.bs-table.sm td { padding: 3px 4px; }
.bs-table.compact td { padding: 2px 4px; }
.bs-footnote { font-size: 10px; color: #aaa; margin: 3px 0; }
.bs-card-type { font-size: 11px; color: #E24B4A; font-weight: 600; margin: 4px 0; }

.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.prod-item { text-align: center; }
.prod-img {
  width: 100%; aspect-ratio: 1; border-radius: 8px;
  background: linear-gradient(135deg, #333, #111); color: #ffd700;
  display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 3px;
}
.prod-name { font-size: 9px; color: #555; line-height: 1.3; }

.fl-six-text { font-size: 14px; font-weight: 700; color: #E24B4A; }

/* ====== 区块C: 倒计时+统计+头像 一体化粉紫背景 ====== */
.countdown-wrap {
  background: linear-gradient(180deg, #D5AEC3 0%, #D5AEC3 55%, #E3C9D8 100%);
  padding: 16px 12px 18px;
}

/* 倒计时直接写在粉紫背景上 */
.countdown-sec {
  background: transparent; padding: 0 0 6px; text-align: center;
}
.cd-title { font-size: 17px; font-weight: 800; color: #222; margin-bottom: 12px; }
.cd-boxes { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }
.cd-label { font-size: 14px; color: #444; margin-right: 4px; font-weight: 600; }
.cd-num {
  background: #333; color: #fff; font-size: 22px; font-weight: 900;
  padding: 6px 10px; border-radius: 8px; min-width: 38px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.cd-unit { font-size: 13px; color: #444; margin: 0 2px; font-weight: 600; }

/* ====== 白色浮窗卡: 报名统计 ====== */
.data-card {
  background: #fff; border-radius: 14px; margin: 12px 18px; padding: 16px;
  box-shadow: 0 4px 16px rgba(160,90,120,.25);
}
.dc-stats { display: flex; justify-content: space-between; align-items: center; }
.dc-stat { font-size: 14px; color: #555; }
.dc-stat.dc-right { text-align: right; }
.dc-red { font-size: 28px; font-weight: 900; color: #E24B4A; }

/* ====== 白色浮窗卡: 头像墙 ====== */
.avatar-card {
  background: #fff; border-radius: 14px; margin: 0 18px; padding: 14px;
  box-shadow: 0 4px 16px rgba(160,90,120,.25);
  overflow: hidden;
}
.dc-avatars {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px 10px; justify-items: center;
}
.dc-avatar {
  width: 56px; display: flex; flex-direction: column; align-items: center;
  gap: 4px;
}
.dc-avatar img {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; display: block;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12);
  background: #f0f0f0;
}
.dc-name {
  font-size: 10px; color: #666; max-width: 56px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.avatar-fade .dc-avatar { animation: avatarIn .5s ease both; }
.avatar-fade .dc-avatar:nth-child(2) { animation-delay: .06s; }
.avatar-fade .dc-avatar:nth-child(3) { animation-delay: .12s; }
.avatar-fade .dc-avatar:nth-child(4) { animation-delay: .18s; }
.avatar-fade .dc-avatar:nth-child(5) { animation-delay: .24s; }
.avatar-fade .dc-avatar:nth-child(6) { animation-delay: .30s; }
.avatar-fade .dc-avatar:nth-child(7) { animation-delay: .36s; }
.avatar-fade .dc-avatar:nth-child(8) { animation-delay: .42s; }
@keyframes avatarIn {
  from { opacity: 0; transform: scale(.6) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ====== 区块E: 邀请加入团购(深色) ====== */
.invite-dark {
  background: #2a2a2a; padding: 24px 16px 20px; text-align: center;
}
.id-title { font-size: 20px; font-weight: 800; color: #FF8000; margin-bottom: 16px; }
.id-slots { display: flex; justify-content: center; gap: 14px; margin-bottom: 14px; }
.id-slot {
  flex: 0 0 58px;            /* 禁止 flex 压缩宽度 */
  width: 58px; height: 58px;
  min-width: 58px; min-height: 58px;
  max-width: 58px; max-height: 58px;
  border-radius: 999px;      /* 正圆(最兼容写法) */
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #555; font-size: 24px; color: #fff;
  overflow: hidden;
  box-sizing: content-box;
}
.id-slot.filled img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.id-slot.empty {
  background: transparent;
  border: none;
  outline: none;
  flex: 0 0 58px; width: 58px; height: 58px;
  min-width: 58px; min-height: 58px;
  max-width: 58px; max-height: 58px;
  border-radius: 999px !important;
  box-sizing: content-box;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden !important;
}
.id-slot.empty svg {
  display: block; flex-shrink: 0;
}
.id-empty-icon {
  font-size: 26px; color: #999; font-weight: 300; line-height: 1;
}
.id-progress {
  height: 10px; background: #444; border-radius: 5px; overflow: hidden; margin-bottom: 10px;
  max-width: 200px; margin-left: auto; margin-right: auto;
}
.id-bar { height: 100%; background: linear-gradient(90deg, #FF8000, #FFB04D); border-radius: 5px; transition: width .5s; }
.id-text { font-size: 13px; color: #ccc; line-height: 1.8; }
.hl-orange { color: #FF8000; font-weight: 700; }
.celebrate-emojis { font-size: 15px; letter-spacing: 2px; }

/* 绿色接受按钮(占深色背景1/2宽) */
.btn-accept-invite {
  display: block; width: 50%; max-width: 180px; margin: 16px auto 4px;
  height: 46px; border: none; border-radius: 23px;
  background: linear-gradient(135deg, #01AB0E, #0B8A14); color: #fff;
  font-size: 15px; font-weight: 800; cursor: pointer;
}

/* ====== 底部1/2滑出确认弹窗 ====== */
.bottom-sheet-overlay {
  align-items: flex-end !important; padding: 0 !important;
}
.confirm-sheet {
  width: 100%; max-width: 480px; background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 14px 20px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.2,.9,.3,1);
  max-height: 75vh; overflow-y: auto;
}
.confirm-sheet.sheet-up { transform: translateY(0); }
.sheet-handle {
  width: 40px; height: 5px; border-radius: 3px; background: #ddd;
  margin: 0 auto 12px;
}
.sheet-title { font-size: 17px; font-weight: 800; color: #222; text-align: center; margin-bottom: 16px; }
.plan-options { display: flex; gap: 10px; margin-bottom: 16px; }
.plan-option {
  flex: 1; border: 2px solid #eee; border-radius: 12px; padding: 12px 8px;
  text-align: center; cursor: pointer; transition: all .2s;
}
.plan-option.active { border-color: #01AB0E; background: rgba(1,171,14,.05); }
.plan-name { font-size: 13px; color: #333; margin-bottom: 6px; }
.plan-price { font-size: 12px; color: #888; }
.plan-price b { font-size: 22px; color: #E24B4A; font-weight: 900; }
.hl-white { color: #fff; font-weight: 700; }

/* ====== 会员类型选择(仅新会员/老会员两个固定选项) ====== */
.member-type-options { display: flex; gap: 10px; }
.member-type-option {
  flex: 1; border: 2px solid #eee; border-radius: 12px; padding: 12px 8px;
  text-align: center; cursor: pointer; transition: all .2s;
  font-size: 14px; color: #555; background: #fff;
}
.member-type-option.active { border-color: #01AB0E; background: rgba(1,171,14,.05); color: #01AB0E; font-weight: 700; }

/* ====== 区块F: 团购列表 ====== */
.group-list-sec { padding: 0 10px 14px; }
.gl-title { font-size: 17px; font-weight: 800; color: #222; margin: 14px 0 10px; text-align: center; }
.gl-row {
  display: flex; align-items: center; gap: 10px; padding: 12px 10px;
  background: #fff; border-radius: 28px; margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05); border: 1px solid #f0f0f0;
}
.gl-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  overflow: hidden;
}
.gl-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.gl-info { flex: 1; font-size: 13px; color: #555; }
.gl-info b { color: #E24B4A; font-weight: 800; }
.gl-btn {
  border: none; border-radius: 20px; padding: 7px 18px;
  background: linear-gradient(135deg, #E24B4A, #F06C94); color: #fff;
  font-size: 13px; font-weight: 700; cursor: pointer; flex-shrink: 0; white-space: nowrap;
}

/* ====== 区块G: 重复主视觉(同一张海报图) ====== */
.repeat-hero {
  margin: 10px; border-radius: 16px; overflow: hidden;
  cursor: pointer; box-shadow: 0 4px 16px rgba(226,75,74,.15);
}

/* ====== 区块H: 联系方式 ====== */
.contact-sec-real {
  background: #fff; border-radius: 16px; margin: 10px; padding: 20px 16px;
  text-align: center; box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.cs-pill {
  display: inline-block; border: 2px solid #333; border-radius: 20px;
  padding: 6px 28px; font-size: 16px; font-weight: 800; color: #222; margin-bottom: 14px;
}
/* 两家联合门店并排 */
.cs-stores { display: flex; gap: 12px; align-items: stretch; }
.cs-store {
  flex: 1; min-width: 0; background: #faf7f8; border: 1px solid #f0e6ea;
  border-radius: 12px; padding: 14px 10px 12px; text-align: center;
  display: flex; flex-direction: column;
}
.cs-store-name { font-size: 14px; font-weight: 800; color: #222; }
.cs-store-addr { font-size: 11px; color: #888; line-height: 1.5; margin: 6px 0; }
.cs-store-tel {
  display: inline-block; font-size: 19px; font-weight: 900; color: #E24B4A;
  text-decoration: none; margin-bottom: 10px; letter-spacing: 0.5px;
}
.cs-store-qr { margin-top: auto; }
.cs-store-qr img {
  display: block; width: 118px; max-width: 100%; height: auto;
  margin: 0 auto; border-radius: 8px; background: #fff; padding: 4px;
  cursor: zoom-in;
}
/* 二维码点击放大预览层 */
.qr-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.82); z-index: 999;
  display: flex; align-items: center; justify-content: center;
}
.qr-mask img {
  width: 72%; max-width: 340px; border-radius: 10px; background: #fff; padding: 8px;
}
/* 客服卡片二维码 */
.kefu-qr img {
  display: block; width: 150px; height: auto; margin: 0 auto;
  border: 1px solid #eee; border-radius: 10px; background: #fff; padding: 6px;
  cursor: zoom-in;
}

/* ====== 底部固定栏 ====== */
.bottom-bar-real {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: #fff; border-top: 1px solid #eee;
  display: flex; align-items: center; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  z-index: 100; gap: 8px;
}
.bbr-left { display: flex; gap: 4px; }
.bbr-icon {
  border: 1px solid #ddd; border-radius: 8px; background: #fff;
  padding: 6px 12px; font-size: 12px; color: #666; cursor: pointer;
}
.bbr-btn {
  flex: 1; height: 42px; border: none; border-radius: 21px;
  font-size: 15px; font-weight: 800; color: #fff; cursor: pointer;
}
.bbr-signup { background: linear-gradient(135deg, #FF8000, #F67639); }
.bbr-group { background: linear-gradient(135deg, #E24B4A, #F06C94); }

/* ====== 深色邀请弹窗 ====== */
.invite-modal-dark {
  background: #2a2a2a; border-radius: 20px;
  width: 100%; max-width: 360px; padding: 32px 24px; text-align: center;
  animation: cardPop .35s cubic-bezier(.2,1.2,.4,1) both;
}
.imd-text { font-size: 14px; line-height: 1.9; color: #ddd; margin-bottom: 22px; }
.btn-green-big {
  width: 100%; height: 48px; border: none; border-radius: 24px;
  background: linear-gradient(135deg, #01AB0E, #0B8A14); color: #fff;
  font-size: 16px; font-weight: 800; cursor: pointer;
}

/* ====== 邀请分享面板 ====== */
.share-sub {
  font-size: 13px; color: #888; text-align: center;
  line-height: 1.6; margin: -6px 0 16px;
}
.share-link-box {
  background: #F7F7F7; border: 1px dashed #DDD; border-radius: 10px;
  padding: 12px; font-size: 12px; color: #666; word-break: break-all;
  line-height: 1.6; margin-bottom: 16px; text-align: center;
}
.share-actions { display: flex; gap: 10px; margin-bottom: 14px; }
.share-btn {
  flex: 1; height: 46px; border: none; border-radius: 23px;
  font-size: 14px; font-weight: 700; cursor: pointer; color: #fff;
}
.share-btn-green { background: linear-gradient(135deg, #01AB0E, #0B8A14); }
.share-btn-orange { background: linear-gradient(135deg, #FF8000, #F67639); }
.share-hint {
  font-size: 12px; color: #AAA; text-align: center;
  padding-bottom: 8px; line-height: 1.7;
}

