/* voucher-front.css —— 抖音代金券详情版式（前台） */
.vch-wrap { width: 100%; background: #f5f5f5; padding-bottom: 8px; }
.vch-wrap * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* ===== 券面 ===== */
.vch-hero { position: relative; padding: 18px 16px 20px; text-align: center; overflow: hidden; }
.vch-theme-gold .vch-hero { background: linear-gradient(180deg, #FFF6C9 0%, #FFE066 48%, #FFD22E 100%); }
.vch-theme-pink .vch-hero { background: linear-gradient(180deg, #FFE9F0 0%, #FFC2D6 48%, #FF9FC0 100%); }
.vch-theme-red  .vch-hero { background: linear-gradient(180deg, #FFE7E2 0%, #FFB3A1 48%, #FF8664 100%); }
.vch-theme-blue .vch-hero { background: linear-gradient(180deg, #E8F4FF 0%, #B9DEFF 48%, #8CC8FF 100%); }
.vch-hero::before, .vch-hero::after {
  content: ""; position: absolute; width: 210px; height: 210px; border-radius: 50%;
  background: rgba(255,255,255,.35); filter: blur(2px);
}
.vch-hero::before { top: -120px; left: -60px; }
.vch-hero::after { bottom: -140px; right: -70px; }
.vch-hero-face { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.vch-num { font-size: 60px; line-height: 1; font-weight: 900; color: #E8542B; letter-spacing: -2px; font-family: -apple-system, "PingFang SC", "Helvetica Neue", Arial, sans-serif; }
.vch-unit { font-size: 20px; font-weight: 800; color: #E8542B; margin-bottom: 8px; }
.vch-hero-title { position: relative; margin-top: 4px; font-size: 13px; color: #A65A18; font-weight: 600; }
.vch-hero-pill {
  position: relative; display: inline-block; margin-top: 10px; padding: 5px 14px;
  background: #fff; border-radius: 999px; font-size: 13px; font-weight: 700; color: #B4620A;
  box-shadow: 0 2px 8px rgba(180,98,10,.16);
}

/* ===== 团购价条：大价格 + 折扣标签 + 划线原价 + 已售 + 补贴/共省 ===== */
.vch-pricebar { position: relative; display: flex; align-items: center; padding: 12px 14px 13px; background: #fff; overflow: hidden; }
.vch-pricebar.has-badge { padding-right: 116px; }
.vch-pb-left { position: relative; z-index: 2; flex: 1 1 auto; min-width: 0; }
.vch-pb-l1 { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.vch-pb-cur { font-size: 17px; font-weight: 800; color: #FF2E63; line-height: 1; }
.vch-pb-int { font-size: 33px; line-height: .95; font-weight: 900; color: #FF2E63; letter-spacing: -.8px; margin-left: -2px; font-family: -apple-system, "PingFang SC", "Helvetica Neue", Arial, sans-serif; }
.vch-pb-dec { font-size: 19px; line-height: 1; font-weight: 900; color: #FF2E63; margin-left: -3px; }
.vch-pb-disc { font-size: 11px; font-weight: 700; color: #FF2E63; border: 1px solid #FF2E63; border-radius: 3px; padding: 0 4px; line-height: 16px; align-self: center; white-space: nowrap; }
.vch-pb-old { font-size: 13px; color: #9a9ca3; text-decoration: line-through; }
.vch-pb-sold { font-size: 13px; color: #9a9ca3; }
.vch-pb-l2 { display: flex; align-items: center; gap: 5px; margin-top: 7px; }
.vch-pb-ic { width: 14px; height: 14px; border-radius: 50%; background: #FF2E63; color: #fff; font-size: 9px; line-height: 14px; text-align: center; font-weight: 700; flex: 0 0 auto; }
.vch-pb-txt { font-size: 12.5px; color: #FF2E63; font-weight: 600; }
.vch-pb-arw { color: #FF2E63; font-size: 13px; line-height: 1; opacity: .9; }
.vch-pb-badge { position: absolute; right: -26px; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 32px 0 26px; background: linear-gradient(135deg, #FF5C86 0%, #FF2E63 100%); transform: skewX(-14deg); z-index: 1; }
.vch-pb-badge > span { display: block; transform: skewX(14deg); color: #fff; font-size: 15px; font-weight: 900; letter-spacing: .5px; white-space: nowrap; }

/* ===== 卡片通用 ===== */
.vch-card { margin: 8px 8px 0; background: #fff; border-radius: 12px; padding: 12px 12px 4px; }
.vch-title { font-size: 15px; font-weight: 700; line-height: 1.4; color: #161823; word-break: break-word; }
.vch-stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.vch-stats span { font-size: 11px; color: #6b6f78; background: #f4f5f7; border-radius: 4px; padding: 2px 6px; }

.vch-row { display: flex; align-items: flex-start; gap: 8px; padding: 9px 0; border-top: 1px solid #f2f3f5; font-size: 12.5px; color: #161823; line-height: 1.5; }
.vch-row:first-of-type { border-top: 0; }
.vch-row-lb { flex: 0 0 30px; color: #8f939b; font-size: 12.5px; }
.vch-row-val { flex: 1 1 auto; min-width: 0; }
.vch-row-arrow { flex: 0 0 auto; color: #c3c6cc; font-size: 15px; line-height: 1.2; }
.vch-store-line { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.vch-store-name { font-weight: 600; }
.vch-store-dist { color: #FF2E63; font-size: 12px; margin-left: 2px; }
.vch-store-general { color: #FF6A00; font-size: 12px; margin-left: 4px; }
.vch-store-land { color: #9aa0a8; font-size: 12px; margin-left: 4px; }
.vch-store-addr { color: #9aa0a8; font-size: 11.5px; margin-top: 3px; }
.vch-locate-btn { border: 0; background: #fff3f5; color: #FF2E63; font-size: 11.5px; padding: 3px 8px; border-radius: 999px; margin-top: 6px; }

/* ===== 购买须知 ===== */
.vch-notice { padding-bottom: 12px; }
.vch-sec-title { font-size: 15px; font-weight: 700; color: #161823; margin-bottom: 4px; }
.vch-sec { padding: 11px 0; border-top: 1px solid #f2f3f5; }
.vch-sec:first-of-type { border-top: 0; }
.vch-sec-head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #161823; }
.vch-sec-ic { width: 15px; height: 15px; flex: 0 0 15px; }
.vch-sec-body { margin-top: 5px; padding-left: 21px; font-size: 12.5px; color: #4c4f57; line-height: 1.65; }
.vch-sec-body .vch-li { display: block; }
.vch-sec-body .vch-li::before { content: "·"; margin-right: 5px; color: #9aa0a8; }
.vch-sec-body ul { margin: 0; padding-left: 16px; }
.vch-sec-body li { margin: 2px 0; }
.vch-sec-body p { margin: 3px 0; }
.vch-sec-body img { max-width: 100%; border-radius: 6px; margin: 4px 0; display: block; }
.vch-warm { margin-top: 10px; display: flex; align-items: flex-start; gap: 6px; background: #FFF8E9; color: #B77800; font-size: 12px; line-height: 1.5; padding: 8px 10px; border-radius: 8px; }

/* 详情页价格改造 */
.vch-price-old { font-size: 12px; color: #9aa0a8; text-decoration: line-through; margin-left: 6px; font-weight: 400; }
.vch-price-off { font-size: 11px; color: #FF2E63; border: 1px solid #ffd0da; background: #fff3f5; border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: middle; font-weight: 600; }

/* ===== 落地页新增：适用门店 / 更多本店团购 / 团购评价 ===== */
.vch-hrt {
  display: inline-block; width: 11px; height: 11px; flex: 0 0 11px; margin-right: 1px;
  background: #E3E5EA;
  -webkit-mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.7-9.3-9.2C1.4 8.4 3.4 5 6.8 5c2 0 3.6 1.1 5.2 3.2C13.6 6.1 15.2 5 17.2 5c3.4 0 5.4 3.4 4.1 6.8C19.5 16.3 12 21 12 21z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.7-9.3-9.2C1.4 8.4 3.4 5 6.8 5c2 0 3.6 1.1 5.2 3.2C13.6 6.1 15.2 5 17.2 5c3.4 0 5.4 3.4 4.1 6.8C19.5 16.3 12 21 12 21z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.vch-hrt.on { background: #FF2E63; }
.vch-hrt.half { background: linear-gradient(90deg, #FF2E63 0 48%, #E3E5EA 48% 100%); }

.vch-shop, .vch-mg, .vch-rv { padding-bottom: 12px; }
.vch-shop-head { display: flex; align-items: center; gap: 8px; padding: 2px 0 10px; }
.vch-sec-t { font-size: 15px; font-weight: 700; color: #161823; flex: 1 1 auto; }
.vch-shop-all { font-size: 12px; color: #8f939b; flex: 0 0 auto; cursor: pointer; }
.vch-shop-all i { font-style: normal; color: #c3c6cc; margin-left: 1px; }

.vch-shop-body { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.vch-shop-avw { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #f2f3f5; }
.vch-shop-av { width: 64px; height: 64px; object-fit: cover; display: block; border-radius: 12px; }
.vch-shop-avph { width: 64px; height: 64px; border-radius: 12px; background: linear-gradient(135deg,#FFE066,#FFD22E); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: #B4620A; }
.vch-shop-avph.hide { display: none; }
.vch-shop-info { flex: 1 1 auto; min-width: 0; }
.vch-shop-name { font-size: 14.5px; font-weight: 700; color: #161823; line-height: 1.35; word-break: break-word; }
.vch-shop-rate { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 4px; font-size: 11.5px; color: #6b6f78; }
.vch-shop-hearts { display: inline-flex; align-items: center; }
.vch-shop-score { color: #1a1c20; font-weight: 600; }
.vch-shop-rec { color: #FF2E63; }
.vch-shop-cnt { color: #9aa0a8; }
.vch-shop-meta { margin-top: 4px; font-size: 11.5px; color: #6b6f78; display: flex; flex-wrap: wrap; gap: 8px; }
.vch-shop-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.vch-shop-tags span { font-size: 10.5px; color: #B4620A; background: #FFF4DC; border-radius: 3px; padding: 1px 5px; line-height: 1.6; }

/* 更多本店团购 */
.vch-mg-list { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vch-mg-list::-webkit-scrollbar { display: none; }
.vch-mg-item { flex: 0 0 31%; min-width: 0; cursor: pointer; }
.vch-mg-cover {
  position: relative; width: 100%; padding-top: 78%; border-radius: 8px; overflow: hidden;
  background: linear-gradient(180deg, #FFF3B8 0%, #FFD22E 100%);
}
.vch-mg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; }
.vch-mg-cover.has-img .vch-mg-face,
.vch-mg-cover.has-img .vch-mg-unit,
.vch-mg-cover.has-img .vch-mg-sub { display: none; }
.vch-mg-face { position: absolute; left: 0; right: 0; top: 26%; text-align: center; font-size: 20px; font-weight: 900; color: #C2410C; letter-spacing: -.5px; }
.vch-mg-unit { position: absolute; left: 0; right: 0; top: 50%; text-align: center; font-size: 10px; font-weight: 700; color: #C2410C; }
.vch-mg-sub { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-size: 9px; color: rgba(160,80,10,.85); transform: scale(.92); }
.vch-mg-title { margin-top: 6px; font-size: 11.5px; line-height: 1.35; color: #4c4f57; height: 31px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vch-mg-price { margin-top: 3px; font-size: 13px; font-weight: 800; color: #FF2E63; }

/* 团购评价 */
.vch-rv-live { font-size: 11px; color: #8f939b; flex: 0 0 auto; }
.vch-rv-list { margin-top: 2px; }
.vch-rv-item { display: flex; gap: 8px; padding: 10px 0; border-top: 1px solid #f2f3f5; }
.vch-rv-item:first-child { border-top: 0; padding-top: 0; }
.vch-rv-avw { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: #f2f3f5; }
.vch-rv-av { width: 32px; height: 32px; object-fit: cover; display: block; border-radius: 50%; }
.vch-rv-main { flex: 1 1 auto; min-width: 0; }
.vch-rv-top { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 11px; color: #8f939b; }
.vch-rv-nick { font-size: 12px; color: #6b6f78; }
.vch-rv-lv { font-size: 9.5px; color: #fff; background: #C9CED6; border-radius: 3px; padding: 0 4px; line-height: 1.6; }
.vch-rv-yr { font-size: 9.5px; color: #B4620A; background: #FFF4DC; border-radius: 3px; padding: 0 4px; line-height: 1.6; }
.vch-rv-time { margin-left: auto; color: #b3b7be; }
.vch-rv-rate { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 4px; font-size: 11px; color: #8f939b; }
.vch-rv-hearts { display: inline-flex; align-items: center; }
.vch-rv-hearts .vch-hrt { width: 9px; height: 9px; flex: 0 0 9px; }
.vch-rv-word { color: #FF2E63; }
.vch-rv-flag { color: #b3b7be; }
.vch-rv-text { margin-top: 5px; font-size: 13px; line-height: 1.62; color: #1a1c20; word-break: break-word; }
.vch-rv-imgs { display: flex; gap: 5px; margin-top: 7px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vch-rv-imgs::-webkit-scrollbar { display: none; }
.vch-rv-img { flex: 0 0 auto; width: 84px; height: 84px; border-radius: 6px; object-fit: cover; background: #f2f3f5; cursor: zoom-in; }
.vch-rv-more { margin-top: 8px; text-align: center; font-size: 12.5px; color: #6b6f78; padding: 8px 0 2px; border-top: 1px solid #f2f3f5; cursor: pointer; }
.vch-rv-empty { font-size: 12.5px; color: #9aa0a8; padding: 14px 0; text-align: center; }

/* ===== 页面照片 ===== */
.vch-photos-wrap { position: relative; background: #fff; }
.vch-photos { padding: 0; background: #fff; display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.vch-photos::-webkit-scrollbar { display: none; }
.vch-photos img { display: block; flex: 0 0 100%; width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: 0; background: #f2f3f5; scroll-snap-align: start; scroll-snap-stop: always; }
.vch-photos.multi { align-items: flex-start; padding: 0; gap: 0; }
.vch-photos.multi img { flex: 0 0 100%; width: 100%; min-width: 0; aspect-ratio: auto; height: auto; max-height: 560px; object-fit: cover; border-radius: 0; }
.vch-photo-idx { position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 2px 9px; border-radius: 999px; background: rgba(0,0,0,.42); color: #fff; font-size: 11.5px; line-height: 18px; letter-spacing: .3px; pointer-events: none; }


/* ===== 套餐内容（菜品清单） ===== */
.vch-dishes { }
.vch-dish-g { padding: 11px 0; border-top: 1px solid #f2f3f5; }
.vch-dish-g:first-of-type { border-top: 0; padding-top: 2px; }
.vch-dish-gh { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #161823; margin-bottom: 5px; }
.vch-dish-gh::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: #FFC300; flex: 0 0 3px; }
.vch-dish-list { display: flex; flex-direction: column; }
.vch-dish-item { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 6px 0 6px 9px; border-bottom: 1px dashed #f4f5f7; }
.vch-dish-item:last-child { border-bottom: 0; }
.vch-dish-n { font-size: 13px; color: #2b2f36; line-height: 1.5; word-break: break-word; }
.vch-dish-q { flex: 0 0 auto; font-size: 12px; color: #8a8f98; }


/* ===== 主图全屏查看（点击放大 / 左右滑动） ===== */
.vch-photos img { cursor: zoom-in; }
.vch-photos.multi img { cursor: zoom-in; }
.vp-viewer { position: fixed; inset: 0; z-index: 99999; background: #000; display: none; opacity: 0; transition: opacity .18s ease; }
.vp-viewer.on { display: block; opacity: 1; }
.vp-viewer-track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.vp-viewer-track::-webkit-scrollbar { display: none; }
.vp-viewer-cell { flex: 0 0 100%; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; }
.vp-viewer-cell img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; -webkit-user-select: none; user-select: none; }
.vp-viewer-top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; pointer-events: none; }
.vp-viewer-idx { color: #fff; font-size: 13px; line-height: 1; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.16); }
.vp-viewer-x { pointer-events: auto; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.vp-viewer-x:active { background: rgba(255,255,255,.28); }
body.vp-lock { overflow: hidden; }
