* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.file-protocol-tip {
  background: #c62828;
  color: #fff;
  padding: 10px 16px;
  text-align: center;
  font-size: 14px;
  z-index: 9999;
}
.file-protocol-tip a {
  color: #ffeb3b;
  text-decoration: underline;
}

:root {
  --primary: #e53935;
  --primary-dark: #c62828;
  --bg-dark: #1a1a1a;
  --bg-card: rgba(30, 30, 30, 0.95);
  --text: #fff;
  --text-muted: rgba(255, 255, 255, 0.8);
  --border: rgba(255, 255, 255, 0.15);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* 顶部栏 */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
}

.header-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.header-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.25);
}

.header-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-left:-3px;
}

.live-badge {
  font-size: 12px;
  font-weight: 600;
}

.viewer-count {
  font-size: 12px;
  opacity: 0.95;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-share-btn {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 16px;
  cursor: pointer;
  line-height: 1.2;
}

.header-share-btn:active {
  opacity: 0.88;
}

.report-btn,
.header-refresh-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 主内容区：顶栏与底栏之间尽量占满视口，视频横竖屏均 object-fit: cover 铺满 */
.main {
  flex: 1;
  position: relative;
  z-index: 0;
  aspect-ratio: unset;
  max-height: none;
  min-height: calc(100vh - 64px);
  min-height: calc(100dvh - 64px);
  width: 100%;
  background: #000;
  overflow: hidden;
}

/* 必须高于侧栏聊天/商品，否则在部分 WebView 里会像「整块黑幕压在视频上」只剩一条边可见 */
.main > .video-container {
  z-index: 5;
}

/* 须高于 .video-container(5)，否则开抢角标打开仍被整屏视频层挡住 */
.main > .product-rush-corner-wrap {
  z-index: 8;
}

.video-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  background: #111;
  min-height: 100%;
  isolation: isolate;
}

/* 微信/X5 下 HLS 若用 absolute+四向定位，部分内核会按流分辨率算成窄条贴左；用 flex 子项铺满更稳 */
#video {
  position: relative;
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  min-width: 100%;
  max-width: none;
  min-height: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  display: block;
  box-sizing: border-box;
  z-index: 0;
  object-fit: cover;
  object-position: center center;
  background: #000;
}

/* 备用 CDN 仅提 z-index，勿加 transform，否则易触发窄条合成 bug */
#video.video-cdn-active {
  z-index: 1;
}
.video-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
}

.video-overlay {
  position: absolute;
  z-index: 4;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.video-overlay.promo {
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
}

.video-overlay.countdown {
  top: 50px;
  right: 16px;
  background: var(--primary);
  color: white;
}

/* 计划开播倒计时（数据来自直播间 ScheduledStartAt）
   须高于 .video-play-btn(z-index:10) 与 .stream-status-wrap(8)，否则与「点击播放」同区重叠时被完全挡住 */
.live-countdown-wrap {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  pointer-events: none;
  width: 90%;
  max-width: 340px;
}
.live-countdown-panel {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 12px;
  padding: 14px 18px 16px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(4px);
}
.live-countdown-title {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
.live-countdown-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 6px;
  font-size: 14px;
}
.lcd-num-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(0, 150, 255, 0.14);
}
.lcd-num {
  font-size: 22px;
  font-weight: 700;
  color: #0096ff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.lcd-unit {
  color: #222;
  font-weight: 600;
  margin-right: 2px;
}

/* 福袋（开抢倒计时） */
.lucky-bag-wrap {
  position: absolute;
  left: 10px;
  top: 52px;
  z-index: 7;
  pointer-events: auto;
}
.lucky-bag-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px 8px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(145deg, #e53935, #c62828);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(198, 40, 40, 0.45);
  -webkit-tap-highlight-color: transparent;
}
.lucky-bag-btn:active { transform: scale(0.97); }
.lucky-bag-icon { letter-spacing: 0.06em; }
.lucky-bag-countdown {
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  opacity: 0.95;
}
.lucky-bag-modal .lucky-bag-body { padding: 0 4px 8px; }
.lucky-bag-product-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.lucky-bag-name { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.lucky-bag-cd-label { font-size: 12px; color: #f48fb1; margin-bottom: 2px; }
.lucky-bag-cd-big { font-size: 28px; font-weight: 800; color: #ff5252; font-variant-numeric: tabular-nums; }
.lucky-bag-end-bj { font-size: 12px; color: #b0bec5; margin-top: 8px; line-height: 1.4; }
.lucky-bag-img {
  width: 72px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  background: #222;
  flex-shrink: 0;
}
.lucky-bag-rules { margin-bottom: 16px; }
.lucky-bag-rules-title { font-size: 14px; color: #aaa; margin-bottom: 10px; }
.lucky-bag-rule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #ddd;
  padding: 8px 0;
  border-bottom: 1px solid #333;
}
.lucky-bag-status { font-size: 12px; color: #81c784; }
.lucky-bag-status.no { color: #ffb74d; }
.lucky-bag-action { width: 100%; margin-top: 4px; }
.lucky-bag-action:disabled {
  opacity: 0.85;
  cursor: default;
}

/* 福袋开奖 / 未中奖 — 居中遮罩 + 渐变卡 + 底部圆形关闭（对齐运营视觉稿） */
.lucky-bag-result-modal.modal {
  align-items: center;
  justify-content: center;
  padding: 24px 18px calc(28px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 120;
}
.lucky-bag-result-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 320px;
  width: 100%;
  pointer-events: none;
}
.lucky-bag-result-stack > * {
  pointer-events: auto;
}

/* 礼盒插画（CSS 3D 感） */
.lucky-bag-gift-scene {
  position: relative;
  width: 132px;
  height: 108px;
  margin-bottom: 4px;
  flex-shrink: 0;
}
.lucky-bag-gift-scene--win {
  margin-bottom: -6px;
}
.lucky-bag-gift-glow {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(255, 182, 193, 0.35) 35%, rgba(255, 105, 180, 0.12) 55%, transparent 72%);
  pointer-events: none;
}
.lucky-bag-gift-base {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 50px;
  background: linear-gradient(165deg, #ff9ec9 0%, #f06292 45%, #d81b60 100%);
  border-radius: 10px 10px 12px 12px;
  box-shadow: 0 10px 24px rgba(136, 14, 79, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.lucky-bag-gift-base--lose {
  background: linear-gradient(165deg, #ffb7d5 0%, #f48fb1 50%, #ec407a 100%);
  box-shadow: 0 12px 28px rgba(194, 24, 91, 0.35), inset 0 -8px 16px rgba(173, 20, 87, 0.25);
}
.lucky-bag-gift-base--lose::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  bottom: 8px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(136, 14, 79, 0.2), rgba(255, 255, 255, 0.08));
}
.lucky-bag-gift-lid {
  position: absolute;
  left: 50%;
  width: 82px;
  height: 24px;
  margin-left: -41px;
  background: linear-gradient(180deg, #ffc1d9 0%, #f48fb1 55%, #ec407a 100%);
  border-radius: 8px 8px 5px 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.lucky-bag-gift-lid--win {
  bottom: 50px;
  transform: rotate(-6deg);
}
.lucky-bag-gift-lid--lose {
  bottom: 58px;
  transform: translateX(-4px) rotate(-14deg);
  z-index: 2;
}
.lucky-bag-gift-ribbon-v {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 56px;
  background: linear-gradient(90deg, #ffe082, #ffca28 40%, #ffb300);
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  z-index: 1;
}
.lucky-bag-gift-ribbon-h {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 14px;
  background: linear-gradient(180deg, #ffecb3, #ffc107 50%, #ffa000);
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  z-index: 1;
}
.lucky-bag-gift-bow {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 20px;
  z-index: 3;
  background: radial-gradient(ellipse at 30% 50%, #fff59d 0%, #ffca28 60%, #ff8f00 100%);
  border-radius: 50% 50% 40% 40%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.lucky-bag-gift-bow::before,
.lucky-bag-gift-bow::after {
  content: '';
  position: absolute;
  top: 4px;
  width: 18px;
  height: 14px;
  background: linear-gradient(135deg, #ffe082, #ffb300);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.lucky-bag-gift-bow::before { left: -10px; transform: rotate(-35deg); }
.lucky-bag-gift-bow::after { right: -10px; transform: rotate(35deg); }
.lucky-bag-gift-bow--lose {
  bottom: 56px;
}

.lucky-bag-result-card {
  width: 100%;
  border-radius: 22px;
  padding: 22px 20px 20px;
  text-align: center;
  box-sizing: border-box;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
.lucky-bag-result-card--win {
  background: linear-gradient(105deg, #b71c5c 0%, #e91e63 38%, #ff7043 88%, #ff8a65 100%);
}
.lucky-bag-result-card--lose {
  background: linear-gradient(180deg, #ff3a85 0%, #ff6b9d 42%, #ffa07a 78%, #ffc299 100%);
  padding-top: 28px;
  padding-bottom: 26px;
}

.lucky-bag-result-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}
.lucky-bag-result-star {
  color: #ffeb3b;
  font-size: 18px;
  line-height: 1;
  text-shadow: 0 0 8px rgba(255, 235, 59, 0.75);
  transform: translateY(-1px);
}

.lucky-bag-result-product {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
  word-break: break-word;
}

.lucky-bag-result-winner-pill {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 14px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fff5f8 100%);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  text-align: left;
}
.lucky-bag-result-winner-name,
.lucky-bag-result-winner-phone {
  font-size: 15px;
  font-weight: 700;
  color: #c2185b;
  word-break: break-all;
}
.lucky-bag-result-winner-name {
  flex: 1;
  min-width: 0;
}
.lucky-bag-result-winner-phone {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.lucky-bag-result-no-winner {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.lucky-bag-lose-heading {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 14px rgba(255, 255, 255, 0.35), 0 2px 10px rgba(0, 0, 0, 0.15);
}
.lucky-bag-gift-scene--lose {
  width: 140px;
  height: 130px;
  margin: 10px auto 18px;
}
.lucky-bag-lose-sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.98);
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.lucky-bag-result-close {
  margin-top: 18px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.lucky-bag-result-close span {
  display: block;
  margin-top: -2px;
}
.lucky-bag-result-close:active {
  transform: scale(0.96);
}

.address-region-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.address-region-select {
  flex: 1;
  min-width: 30%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #333;
  color: #fff;
  font-size: 13px;
}

.video-overlay.stream-status {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.75);
  padding: 12px 20px;
  font-size: 14px;
}

.video-overlay.stream-status-wrap {
  z-index: 8;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: min(92vw, 340px);
  box-sizing: border-box;
  background: rgba(0,0,0,0.75);
  padding: 16px 20px;
  font-size: 14px;
}
.stream-retry-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 6px;
  background: #e53935;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.stream-retry-btn:hover {
  background: #c62828;
}

.video-overlay.video-play-btn {
  z-index: 10;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 8px;
}
.video-overlay.video-play-btn:hover {
  background: rgba(0,0,0,0.85);
}

/* 静音态有声解锁：贴底极薄透明条，高于视频、低于大播放按钮与状态条 */
.video-audio-unlock-tap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  z-index: 9;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
.video-audio-unlock-tap:hover {
  background: rgba(255, 255, 255, 0.08);
}
.video-audio-unlock-tap:focus {
  outline: none;
}
.video-audio-unlock-tap:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: -2px;
}

/* 左侧活动流：顶部置顶通知 + 下方可滚动消息 */
.activity-feed {
  position: absolute;
  left: 8px;
  bottom: 80px;
  width: 70%;
  max-width: 260px;
  max-height: 45%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  pointer-events: none;
  z-index: 7;
}

.chat-pinned-wrap {
  flex-shrink: 0;
  pointer-events: auto;
  max-height: 42%;
  overflow: hidden;
}
.chat-pinned-wrap[hidden] {
  display: none !important;
}
.chat-pinned-inner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 10px 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.chat-pinned-tag {
  flex-shrink: 0;
  margin-top: 1px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
}
.chat-pinned-body {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  color: #fff;
  max-height: 8.5em;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.chat-pinned-body .user {
  color: #91BECF;
  font-weight: 700;
  margin-right: 4px;
}
.chat-pinned-body .msg-text {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.chat-pinned-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin: -4px -4px 0 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-pinned-close:active {
  opacity: 0.75;
}

.activity-list-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto;
  /* 仍可上下滑动，但不显示纵向滚动条 */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.activity-list-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.activity-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 8px 0;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: rgba(0, 0, 0, 0.5);
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  padding: 6px 8px 6px 10px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
  animation: slideIn 0.3s ease;
  color: #fff;
  pointer-events: auto;
}
.activity-item-body {
  flex: 1 1 auto;
  min-width: 0;
}
.activity-pin-btn {
  flex-shrink: 0;
  margin: 0;
  padding: 2px 6px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  align-self: center;
}
.activity-pin-btn:active {
  background: rgba(255, 255, 255, 0.22);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.activity-item.purchase {
  border-left: 3px solid #FFA32A;
  background: rgba(255, 183, 77, 0.18);
  color: #fff;
}

.activity-item .user {
  color: #91BECF;
  margin-right: 0;
  font-weight: 700;
}

.activity-item.purchase .user {
  color: #E8CCE6;
  font-weight: 700;
}

.activity-item .msg-text {
  color: #fff;
  font-size: 14px;
}

/* 右下角开抢商品：外层容器（热卖 + 卡片），宽度与下方商品卡一致 */
.product-rush-corner-wrap {
  position: absolute;
  right: 8px;
  bottom: 80px;
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 140px;
  max-width: min(140px, calc(100vw - 20px));
  pointer-events: none;
}

.product-rush-corner-wrap .product-card {
  pointer-events: auto;
}

.hot-sale-badge {
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
  padding: 6px 10px 6px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffc107 0%, #ff9100 38%, rgba(22, 22, 28, 0.94) 100%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  white-space: nowrap;
}

.hot-sale-ico {
  font-size: 13px;
  line-height: 1;
}

.hot-sale-prefix {
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hot-sale-count {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  margin-left: auto;
  min-width: 0;
  text-align: right;
}

/* 右侧商品卡片（角标内相对定位） */
.product-card {
  position: relative;
  right: auto;
  bottom: auto;
  width: 140px;
  background: var(--bg-card);
  border-radius: 8px;
  padding: 10px;
  border: 1px solid var(--border);
}

.product-card img {
  width: 100%;
  height: 80px;
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 6px;
  border:1px solid #333;
}

.product-card h3 {
  font-size: 13px;
  margin-bottom: 4px;
  line-height: 1.3;
}

.features {
  list-style: none;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.features li::before {
  content: "• ";
  color: var(--primary);
}

.specs, .benefits {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.price {
  font-size: 18px;
  color: var(--primary);
  font-weight: 700;
  margin: 6px 0;
}

.buy-btn {
  width: 100%;
  padding: 8px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.buy-btn:hover {
  background: var(--primary-dark);
}

.buy-btn:active {
  transform: scale(0.98);
}

/* 底部栏 + 未授权提示条 */
.footer-stack {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

/* 常用聊天语：在输入框上方，横向滑动（无整行底条，仅词条自带圆角底） */
.chat-quick-phrases-wrap {
  flex-shrink: 0;
  padding: 6px 10px 4px;
  background: transparent;
  border-top: none;
  pointer-events: auto;
}
.chat-quick-phrases-wrap[hidden] {
  display: none !important;
}
.chat-quick-phrases-scroller {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.chat-quick-phrases-scroller::-webkit-scrollbar {
  height: 4px;
}
.chat-quick-phrases-scroller::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}
.chat-quick-chip {
  flex: 0 0 auto;
  max-width: 220px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  touch-action: manipulation;
}
.chat-quick-chip:active {
  opacity: 0.88;
}

.app.has-chat-quick-phrases .activity-feed {
  bottom: 124px;
}
.app.has-chat-quick-phrases .product-rush-corner-wrap {
  bottom: 124px;
}

.footer {
  position: relative;
  padding: 10px 12px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.guest-auth-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: #0d0d0d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.65);
}

.guest-auth-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.guest-auth-text {
  flex: 1;
  min-width: 0;
}

.guest-auth-link {
  flex-shrink: 0;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.guest-auth-link:active {
  opacity: 0.85;
}

#chatInput:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#sendBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#chatInput {
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(38vw, 148px);
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.footer #sendBtn {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 14px;
  padding: 4px 2px;
}

/* 小黄车、订单、点赞靠右 */
.footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

#chatInput::placeholder {
  color: var(--text-muted);
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 4px;
  flex-shrink: 0;
}

.icon-btn:hover {
  opacity: 0.8;
}
#cartBtn {
  position: relative;
}

#sendBtn {
	border:1px solid #ccc;
	border-radius:10px;
	padding:5px 8px !important;
 }
/* 小黄车按钮（手机窄屏与输入框并排时略小，避免挤压文字换行） */
.xiaohuangche-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(180deg, #FFD54F 0%, #FFC107 100%);
  color: #5D4037;
  font-size: 17px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(255, 193, 7, 0.35);
}
.xiaohuangche-btn:hover {
  background: linear-gradient(180deg, #FFE082 0%, #FFD54F 100%);
  box-shadow: 0 3px 12px rgba(255, 193, 7, 0.5);
}
.cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  background: #E65100;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 购买弹窗 */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  align-items: flex-end;
  justify-content: center;
}
.modal.show {
  display: flex;
}
/* 订单列表内打开的申请退款层，须盖在订单抽屉之上 */
#refundRequestModal.modal {
  z-index: 110;
  align-items: center;
  padding: 16px;
}
/* 观众端 .app 内弹窗：遮罩半透明，购买/支付时仍能看见背后直播画面（福袋开奖层保留自身样式） */
.app .modal:not(.lucky-bag-result-modal) {
  background: rgba(0, 0, 0, 0.32);
}
.modal-content {
  background: #2a2a2a;
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 430px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.address-prompt, .address-info {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px;
  background: rgba(229, 57, 53, 0.15);
  border-radius: 8px;
  margin-bottom: 12px;
}
.address-prompt a, .address-info a {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
}
.address-icon {
  font-size: 16px;
}
.modal-product {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.modal-product img {
  width: 80px;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
  background: #111;
}
.modal-product-info {
  flex: 1;
  min-width: 0;
}
.modal-product-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}
.modal-product-specs {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.modal-price {
  font-size: 20px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 6px;
}
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quantity-selector button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #333;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quantity-selector span {
  font-size: 16px;
  min-width: 24px;
  text-align: center;
}
.modal-buy-btn {
  width: 50%;
  padding: 14px;
  margin-top: 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.modal-buy-btn:disabled {
  background: #666;
  cursor: not-allowed;
}
.modal-buy-btn:not(:disabled):active {
  transform: scale(0.98);
}
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.modal-actions .modal-buy-btn {
  flex: 1;
  margin-top: 0;
}
.modal-add-cart-btn {
  flex: 1;
  padding: 14px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0;
}
.modal-add-cart-btn:hover {
  background: rgba(229, 57, 53, 0.1);
}
.modal-add-cart-btn:active {
  transform: scale(0.98);
}

/* 小黄车 / 购物车弹窗 */
.modal-cart .modal-content {
  display: flex;
  flex-direction: column;
  max-height: 70vh;
}
.modal-xiaohuangche .modal-content {
  max-height: 80vh;
}
.xiaohuangche-title {
  color: #5D4037;
  font-weight: 700;
}
.shelf-section {
  margin-bottom: 16px;
}
.shelf-section-title,
.my-cart-section .shelf-section-title {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 600;
}
.cart-count-label {
  font-weight: 400;
  color: var(--primary);
}
.shelf-product-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 36vh;
  overflow-y: auto;
  margin: 0 -16px;
  padding: 0 16px;
}
.shelf-product-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.shelf-product-item:last-child {
  border-bottom: none;
}
.shelf-product-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  background: #111;
  flex-shrink: 0;
}
.shelf-product-info {
  flex: 1;
  min-width: 0;
}
.shelf-product-name {
  font-size: 14px;
  margin-bottom: 4px;
  line-height: 1.3;
}
.shelf-product-price {
  font-size: 16px;
  color: var(--primary);
  font-weight: 700;
}
.shelf-product-item .shelf-buy-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  background: linear-gradient(180deg, #FFD54F 0%, #FFC107 100%);
  color: #5D4037;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255, 193, 7, 0.3);
}
.shelf-product-item .shelf-buy-btn:hover {
  background: linear-gradient(180deg, #FFE082 0%, #FFD54F 100%);
}
.shelf-empty {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-muted);
}
.shelf-empty-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 8px;
  opacity: 0.6;
}
.shelf-empty p {
  font-size: 14px;
}
.shelf-loading {
  display: block;
  text-align: center;
  padding: 16px;
  color: var(--text-muted);
  font-size: 14px;
}
.my-cart-section {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.cart-list {
  flex: 1;
  overflow-y: auto;
  margin: 0 -16px;
  padding: 0 16px;
}
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cart-item:last-child {
  border-bottom: none;
}
.cart-item img {
  width: 60px;
  height: 75px;
  object-fit: contain;
  border-radius: 6px;
  background: #111;
  flex-shrink: 0;
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-name {
  font-size: 14px;
  margin-bottom: 4px;
  line-height: 1.3;
}
.cart-item-specs {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.cart-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-item-price {
  font-size: 16px;
  color: var(--primary);
  font-weight: 700;
}
.cart-item-qty {
  font-size: 13px;
  color: var(--text-muted);
}
.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
}
.cart-item-remove:hover {
  color: var(--primary);
}
.cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.cart-empty-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
  opacity: 0.5;
}
.cart-empty p {
  margin-bottom: 6px;
  font-size: 15px;
}
.cart-empty-hint {
  font-size: 13px;
  opacity: 0.8;
}
.cart-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.cart-total {
  font-size: 16px;
  font-weight: 600;
}
.cart-total span {
  color: var(--primary);
  font-size: 20px;
}
.cart-footer .modal-buy-btn {
  margin-top: 0;
  flex-shrink: 0;
}

/* 点赞爱心飘飞效果 */
/* 必须在视频之上才能看到飘心，但不宜高于 100 以免压过弹窗；pointer-events:none 不挡操作 */
.like-hearts-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}
.like-heart {
  position: absolute;
  font-size: 28px;
  line-height: 1;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', sans-serif;
  animation: likeHeartFloat 1.35s ease-out forwards;
  filter: drop-shadow(0 0 4px rgba(229, 57, 53, 0.45));
}
@keyframes likeHeartFloat {
  0% {
    opacity: 1;
    transform: translateY(0) scale(0.5);
  }
  18% {
    opacity: 1;
    transform: translateY(-36px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(calc(-1 * min(48vh, 280px))) scale(0.82);
  }
}
#likeBtn.liked {
  animation: likeBtnPop 0.4s ease;
}
@keyframes likeBtnPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.4); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.address-form .address-field-label {
  display: block;
  font-size: 13px;
  color: #ccc;
  margin: 10px 0 6px;
}
.address-form .address-field-label:first-of-type {
  margin-top: 0;
}
.address-form .req-star {
  color: #e53935;
  margin-right: 2px;
  font-weight: 600;
}
.address-form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #333;
  color: #fff;
  font-size: 14px;
  box-sizing: border-box;
}
.address-form input::placeholder {
  color: var(--text-muted);
}
.modal-address .modal-content {
  padding: 20px;
}
.address-info {
  flex-wrap: wrap;
}
.address-info #addressText {
  flex: 1;
  min-width: 0;
  font-size: 13px;
}
.address-info #changeAddressLink {
  flex-shrink: 0;
}

/* 订单链接（小黄车右侧） */
.order-link {
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  margin:2px 6px;
  border:1px solid #ccc;
  border-radius:10px;
}
.order-link:hover {
  opacity: 0.9;
}

/* 订单弹窗（底部抽屉风格） */
.order-modal .modal-content {
  background: #f5f5f5;
  color: #333;
}
.order-modal-content {
  display: flex;
  flex-direction: column;
  min-height: 40vh;
  max-height: 75vh;
}
.order-sheet-handle {
  width: 36px;
  height: 4px;
  background: #ccc;
  border-radius: 2px;
  margin: 10px auto 16px;
  flex-shrink: 0;
}
.order-tabs {
  display: flex;
  gap: 0;
  padding: 0 8px 12px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.order-tab {
  flex: 1;
  padding: 8px 4px;
  background: none;
  border: none;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  position: relative;
}
.order-tab.active {
  color: #333;
  font-weight: 600;
}
.order-tab.active::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: #ff6b35;
  border-radius: 1px;
}

.order-search-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 12px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
  background: #fafafa;
}
.order-search-input {
  flex: 1 1 140px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  box-sizing: border-box;
  background: #fff;
  color: #333;
}
.order-search-input::placeholder {
  color: #999;
}
.order-search-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}
.order-search-btn {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: #ff6b35;
  color: #fff;
}
.order-search-btn:active {
  opacity: 0.9;
}
.order-search-btn--ghost {
  background: #fff;
  color: #666;
  border: 1px solid #ccc;
}

.order-list-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0;
  min-height: 120px;
}
.order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.order-empty {
  text-align: center;
  padding: 48px 20px;
  color: #999;
  font-size: 15px;
}
.order-empty p {
  margin: 0;
}
.order-item {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.order-item-name-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.order-item-name-text {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.order-item-no {
  flex-shrink: 0;
  font-size: 12px;
  color: #888;
  font-family: ui-monospace, monospace, sans-serif;
  max-width: 48%;
  text-align: right;
  word-break: break-all;
  line-height: 1.35;
}
.order-item-meta { font-size: 12px; color: #999; margin-bottom: 6px; }
.order-item-name { font-size: 14px; font-weight: 500; margin-bottom: 4px; color: #333; }
.order-item-price { font-size: 16px; color: var(--primary); font-weight: 600; }
.order-item-pay { font-size: 12px; color: #f5a623; margin-top: 4px; }
.order-item-pay--clickable {
  cursor: pointer;
  user-select: none;
}
.order-item-pay--clickable:active {
  opacity: 0.92;
}
.order-item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}
.order-item-btn {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  cursor: pointer;
  line-height: 1.2;
}
.order-item-btn:active {
  opacity: 0.9;
}
.order-item-btn--danger {
  border-color: #f0a0a0;
  color: #c62828;
  background: #fff8f8;
}
.order-item-refund-hint {
  font-size: 12px;
  color: #888;
}
.order-item-refund-hint--refunded {
  color: #1e88e5;
  font-weight: 700;
}
.order-item--refund .order-item-refund-detail {
  font-size: 12px;
  color: #666;
  margin-top: 6px;
  line-height: 1.45;
  word-break: break-word;
}

/* 支付层：盖在直播与其它弹窗之上，仅关闭本层 */
.modal.payment-layer-modal {
  z-index: 320;
  align-items: center;
  justify-content: center;
  padding: 8px;
  /* 略亮于普通弹窗，扫码支付时尽量保留视频可见 */
  background: rgba(0, 0, 0, 0.22);
}
.payment-layer-modal .payment-layer-content {
  max-width: 430px;
  width: 100%;
  max-height: 92vh;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  text-align: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.payment-qr-modal { max-width: 320px; text-align: center; }
.payment-qr-wrap { margin: 12px auto; display: flex; justify-content: center; }
.payment-qr-wrap img { display: block; border: 1px solid #eee; border-radius: 8px; }
.payment-qr-hint { font-size: 13px; color: #666; margin: 8px 0 0; line-height: 1.45; }
.payment-qr-status { font-size: 14px; color: #16a34a; min-height: 1.2em; margin-top: 8px; }
.payment-qr-amount { font-size: 16px; font-weight: 600; margin: 0 0 8px; color: #eee; }

/* 支付中：主视频改为左下角小窗（PiP），支付结束移除 .is-live-checkout-pip */
.app.is-live-checkout-pip .main > .video-container {
  position: fixed;
  left: 10px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  width: min(42vw, 168px);
  max-height: min(30vh, 220px);
  height: auto;
  aspect-ratio: 9 / 16;
  inset: auto;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
  z-index: 325;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.app.is-live-checkout-pip .main > .video-container .activity-feed {
  display: none !important;
}
.app.is-live-checkout-pip .main > .video-container .like-hearts-container {
  display: none !important;
}
.app.is-live-checkout-pip .main > .product-rush-corner-wrap {
  opacity: 0;
  pointer-events: none;
}
.live-checkout-pip-chrome {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 24;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 6px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
}
.app.is-live-checkout-pip .live-checkout-pip-chrome {
  display: flex;
  pointer-events: auto;
}
.live-pip-back-btn,
.live-pip-mute-btn {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.live-pip-mute-btn {
  font-size: 14px;
  padding: 2px 6px;
}
.live-pip-back-btn:active,
.live-pip-mute-btn:active {
  opacity: 0.85;
}

/* 订单详情式支付页 */
.modal.payment-checkout-page {
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(0, 0, 0, 0.38);
}
.payment-checkout-page .payment-checkout-sheet {
  background: #f5f5f7;
  color: #1a1a1a;
  border-radius: 16px 16px 0 0;
  max-width: 430px;
  width: 100%;
  max-height: min(92vh, 100dvh);
  padding: 0 0 calc(12px + env(safe-area-inset-bottom, 0px));
  text-align: left;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 1;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
}
.pay-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 6px;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.pay-detail-close {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #333;
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
}
.pay-detail-title-block {
  flex: 1;
  text-align: center;
}
.pay-detail-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #111;
}
.pay-detail-sub {
  margin: 2px 0 0;
  font-size: 11px;
  color: #999;
  word-break: break-all;
}
.pay-detail-top-spacer {
  width: 40px;
  flex-shrink: 0;
}
.pay-detail-status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: linear-gradient(90deg, #ff4d7d 0%, #ff2d55 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}
.pay-detail-status-ico {
  font-size: 18px;
  opacity: 0.95;
}
.pay-detail-card {
  margin: 10px 12px 0;
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.pay-detail-address-card {
  padding-bottom: 10px;
}
.pay-detail-addr-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.pay-detail-addr-pin {
  font-size: 16px;
  line-height: 1.4;
  flex-shrink: 0;
}
.pay-detail-addr-main {
  margin: 0;
  font-size: 14px;
  color: #333;
  line-height: 1.45;
}
.pay-detail-addr-sub {
  margin: 6px 0 0;
  font-size: 14px;
  color: #666;
}
.pay-detail-addr-dashes {
  height: 4px;
  margin-top: 12px;
  border-radius: 2px;
  background: repeating-linear-gradient(
    90deg,
    #7ecbff 0 6px,
    #ff9ec7 6px 12px,
    #fff 12px 18px
  );
  background-size: 18px 4px;
  opacity: 0.85;
}
.pay-detail-shop-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}
.pay-detail-shop-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e91e63, #9c27b0);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pay-detail-shop-name {
  flex: 1;
  font-size: 13px;
  color: #333;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pay-detail-shop-status {
  font-size: 12px;
  color: #ff2d55;
  flex-shrink: 0;
}
.pay-detail-product-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.pay-detail-product-img {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
  background: #f0f0f0;
  flex-shrink: 0;
}
.pay-detail-product-mid {
  flex: 1;
  min-width: 0;
}
.pay-detail-product-name {
  margin: 0;
  font-size: 14px;
  color: #222;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pay-detail-product-right {
  text-align: right;
  flex-shrink: 0;
}
.pay-detail-line-price {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #111;
}
.pay-detail-qty {
  margin: 4px 0 0;
  font-size: 13px;
  color: #888;
}
.pay-detail-price-rows {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}
.pay-detail-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}
.pay-detail-price-row:last-child {
  margin-bottom: 0;
}
.pay-detail-price-row--strong {
  font-weight: 700;
  color: #111;
  margin-top: 4px;
}
.pay-detail-payable {
  color: #ff2d55 !important;
  font-size: 18px;
}
.pay-detail-meta-card {
  padding-top: 10px;
  padding-bottom: 10px;
}
.pay-detail-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
  min-width: 0;
}
.pay-detail-meta-row > span:first-of-type {
  flex-shrink: 0;
}
.pay-detail-meta-row:last-child {
  margin-bottom: 0;
}
.pay-detail-meta-val-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 86%;
  justify-content: flex-end;
}
.pay-detail-order-no {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #333;
  min-width: 0;
  flex: 1 1 auto;
  text-align: right;
  overflow-wrap: anywhere;
  word-break: normal;
}
.pay-detail-copy-btn {
  flex-shrink: 0;
  border: 1px solid #ddd;
  background: #fafafa;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  color: #555;
  cursor: pointer;
}
.pay-detail-meta-val {
  font-size: 13px;
  color: #333;
}
.pay-detail-qr-block {
  margin: 12px 12px 0;
  padding: 16px 12px;
  background: #fff;
  border-radius: 10px;
  text-align: center;
}
#paymentQrVisualWrap.pay-detail-qr--hidden {
  display: none !important;
}
.pay-detail-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 14px 12px 8px;
  font-size: 12px;
  color: #999;
}
.pay-detail-foot-link {
  cursor: default;
}
.pay-detail-foot-dot {
  opacity: 0.5;
}
.pay-detail-bottom-bar {
  display: flex;
  gap: 12px;
  padding: 8px 12px 4px;
  background: #fff;
  margin-top: 4px;
  border-top: 1px solid #eee;
}
.pay-detail-btn {
  flex: 1;
  padding: 12px 14px;
  border-radius: 22px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.pay-detail-btn--ghost {
  background: #f0f0f0;
  color: #444;
}
.pay-detail-btn--primary {
  background: linear-gradient(90deg, #ff5a8c 0%, #ff2d55 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 45, 85, 0.35);
}
.pay-detail-btn:active {
  opacity: 0.92;
}

/* ========== 全屏举报页（观众端） ========== */
.report-page {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #fff;
  color: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.report-page-sheet {
  width: 100%;
  max-width: 430px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
}
.report-page-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 8px 12px 4px;
  border-bottom: 1px solid #f0f0f0;
}
.report-back-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #111;
  cursor: pointer;
  border-radius: 8px;
}
.report-back-btn:active {
  background: #f5f5f5;
}
.report-page-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}
.report-header-spacer {
  width: 44px;
  height: 44px;
}
.report-page-form {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 8px;
  -webkit-overflow-scrolling: touch;
}
.report-form-field {
  margin-bottom: 20px;
}
.report-form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #222;
  margin-bottom: 8px;
}
.report-req {
  color: #e53935;
  margin-right: 2px;
}
.report-select-shell {
  position: relative;
}
.report-select-shell::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #bbb;
  border-bottom: 2px solid #bbb;
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}
.report-select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 36px 12px 14px;
  font-size: 15px;
  color: #111;
  background: #f7f7f7;
  border: 1px solid #eee;
  border-radius: 10px;
  appearance: none;
  -webkit-appearance: none;
}
.report-live-preview {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  background: #f7f7f7;
  border-radius: 10px;
  border: 1px solid #eee;
}
.report-live-cover {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #e8e8e8;
}
.report-live-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #222;
  font-weight: 500;
}
.report-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.5;
  color: #111;
  background: #f7f7f7;
  border: 1px solid #eee;
  border-radius: 10px;
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}
.report-textarea::placeholder {
  color: #aaa;
}
.report-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 15px;
  color: #111;
  background: #f7f7f7;
  border: 1px solid #eee;
  border-radius: 10px;
}
.report-input::placeholder {
  color: #aaa;
}
.report-form-spacer {
  height: 88px;
}
.report-page-footer {
  flex-shrink: 0;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0));
  background: #fff;
  border-top: 1px solid #f0f0f0;
}
.report-submit-btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, #ff6b9d 0%, #e53935 100%);
  box-shadow: 0 4px 14px rgba(229, 57, 53, 0.35);
}
.report-submit-btn:active {
  opacity: 0.92;
  transform: scale(0.99);
}
.report-submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
