/* 🎨 诺公子直播间 - 主样式 */
:root {
  --primary: #065f46;
  --primary-light: #047857;
  --primary-dark: #064e3b;
  --accent: #f59e0b;
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --text: #f1f5f9;
  --border: #334155;
  --text-muted: #94a3b8;
  --danger: #dc2626;
  --success: #059669;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%; height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  overflow: hidden;
}

/* ===== 默认页（无直播） ===== */
.default-page {
  height: 100vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  padding-bottom: env(safe-area-inset-bottom);
}

.brand-header {
  padding: 12px; margin-bottom: 16px;
  text-align: center;
  background: linear-gradient(135deg, #065f46, #047857);
}

.brand-logo { font-size: 28px; font-weight: 800; color: #fff; }
.brand-sub { font-size: 14px; color: rgba(255,255,255,0.8); margin-top: 4px; }

/* 直播状态条 */
.status-section { padding: 12px; margin-bottom: 12px; }
.status-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.status-offline .status-icon { font-size: 48px; margin-bottom: 8px; }
.status-offline .status-text { font-size: 16px; color: var(--text-muted); }

/* 预告卡片 */
.next-live-card {
  background: linear-gradient(135deg, #065f46, #064e3b);
  border-radius: 16px;
  padding: 20px;
  margin: 16px;
}

.next-live-label { font-size: 12px; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1px;
  white-space: nowrap; }
.next-live-title { font-size: 20px; font-weight: 700; margin: 8px 0 4px; }
.next-live-time { font-size: 14px; color: rgba(255,255,255,0.8); }

.btn-appointment {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 16px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-appointment:active { opacity: 0.8; }
.btn-appoint.done { background: #334155; color: var(--text-muted); }

/* 区块标题 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px; margin-bottom: 12px;
}
.section-title { font-size: 16px; font-weight: 700; }
.section-more { font-size: 13px; color: var(--primary-light); cursor: pointer; }

/* 回放列表 */
.replay-list { padding: 0 16px 16px; display: flex; gap: 12px; overflow-x: auto; }
.replay-list::-webkit-scrollbar { display: none; }
.replay-card {
  flex-shrink: 0;
  width: 200px;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}
.replay-thumb {
  height: 112px;
  background: linear-gradient(135deg, #1e293b, #334155);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.replay-info { padding: 12px; }
.replay-title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.replay-stats { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* 系列课程 */
.course-list { padding: 0 20px 24px; }
.course-item {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.course-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  margin-right: 14px; flex-shrink: 0;
}
.course-info { flex: 1; }
.course-name { font-size: 15px; font-weight: 600; }
.course-date { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.course-status { font-size: 12px; color: var(--accent); font-weight: 600; }

/* ===== 直播中页面 ===== */
.live-page {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  background: #000;
}
.live-page.keyboard-open {
  /* 键盘弹出时，live-page保持fixed不收缩 */
}
.live-page.keyboard-open .live-video {
  min-height: 0;
  height: auto;
  flex-shrink: 1;
}
/* 键盘打开时：底部栏 */
.live-page.keyboard-open .bottom-bar {
  padding-bottom: 0 !important;
  background: rgba(91,152,137,0.92);
}

/* 发送按钮 */
.send-btn {
  height: 46px;
  padding: 0 20px;
  border: none;
  border-radius: 23px;
  background: rgba(0,0,0,0.25);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  letter-spacing: 1px;
}
.send-btn:active { background: rgba(0,0,0,0.4); }
.send-btn-hidden { display: none !important; }
/* 输入框默认样式 - 正常模式占满宽度 */
.barrage-input {
  flex: 1;
  height: 46px;
  max-width: none;
  width: 100%;
  background: rgba(0,0,0,0.25);
  border: none;
  border-radius: 23px;
  padding: 0 16px;
  color: #fff;
  font-size: 15px;
  line-height: 46px;
  outline: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}
.barrage-input::placeholder { color: rgba(255,255,255,0.35); }

/* 聚焦态输入框 - 给发送按钮留位置 */
.barrage-input:focus {
  max-width: calc(100% - 70px);
  flex: 1;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(6,95,70,0.5);
}


.live-video {
  flex: 1;
  background: #000;
  min-height: 0;
}

/* Rotated video support */
.live-video.rotated {
  max-width: 100vh;
  max-height: 100vw;
}

/* 播放按钮覆盖层 */
.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  z-index: 10;
  cursor: pointer;
}
.play-overlay:hover {
  background: rgba(0,0,0,0.4);
}

.live-video video, .live-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 顶部浮层 */


.live-badge {
  display: inline-flex;
  align-items: center;
  background: var(--danger);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.live-badge .dot {
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse 1.5s infinite;
}

.viewer-count { margin-left: 4px; font-size: 12px; opacity: 0.9; }

.btn-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* 主播信息浮层 */
.host-bar {
  position: absolute;
  left: 16px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.4);
  border-radius: 12px;
  backdrop-filter: blur(4px);
  margin-bottom: 8px;
}






.btn-follow {
  padding: 6px 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* 弹幕区域 */
/* 弹幕区：纯文字，无背景卡片，全部左对齐 */
.barrage-area {
  text-align: left;
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 66px;
  max-height: 32%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  pointer-events: none;
  z-index: 5;
  padding: 8px 12px;
  background: transparent;
  border-radius: 0;
  backdrop-filter: none;
}



.barrage-item {
  color: #fff;
  font-size: 13px;
  padding: 4px 0;
  display: block;
  max-width: 100%;
  word-break: break-word;
  line-height: 1.5;
  background: transparent;
  border-radius: 0;
  backdrop-filter: none;
  align-self: flex-start;
  text-align: left;
  animation: barrageFadeIn 0.3s ease-out;
  box-shadow: none;
}

.barrage-item.system {
  color: rgba(255,255,255,0.7);
  text-align: left;
  font-size: 12px;
  padding: 4px 0;
  max-width: 100%;
  background: transparent;
  align-self: flex-start;
}

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

.barrage-user {
  font-weight: 600;
  color: #22c55e;
  font-size: 12px;
  margin-right: 0px;
}

.barrage-text {
  color: #fff;
  font-size: 14px;
}

.goods-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0;
}
.goods-scroll::-webkit-scrollbar { display: none; }

.goods-card {
  flex-shrink: 0;
  width: 140px;
  background: rgba(30,41,59,0.95);
  border-radius: 12px;
  padding: 12px;
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.goods-img {
  width: 100%; height: 80px;
  background: var(--bg-dark);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}

.goods-name { font-size: 13px; font-weight: 600; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goods-price { font-size: 16px; font-weight: 700; color: var(--accent); margin-top: 4px; }

.btn-buy {
  display: block;
  width: 100%;
  padding: 6px;
  margin-top: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* 底部操作栏 */
.bottom-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  padding: 6px 16px;
  padding-bottom: calc(env(safe-area-inset-bottom) + 12px);
  background: transparent;
  z-index: 10;
  transition: background 0.2s;
}


.bottom-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.bottom-actions 
.bottom-actions .bottom-btn:active {
  background: rgba(0,0,0,0.5);
}
.bottom-actions .bottom-btn svg {
  width: 28px;
  height: 28px;
  display: block;
}







/* 通知公告 */
.notice-bar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  animation: noticeIn 0.3s ease-out, noticeOut 0.3s 2.7s ease-in;
  pointer-events: none;
  z-index: 10;
}

/* ===== 预约弹窗 ===== */
.modal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.2s ease-out;
}

.modal-box {
  background: #1e293b;
  border-radius: 20px;
  padding: 32px 24px 24px;
  width: 320px;
  max-width: 90%;
  animation: slideUp 0.3s ease-out;
}

.modal-title { font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 4px; }
.modal-sub { font-size: 13px; color: var(--text-muted); text-align: center; margin-bottom: 20px; }

.modal-input {
  width: 100%;
  padding: 12px 16px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  margin-bottom: 12px;
  outline: none;
}
.modal-input:focus { border-color: var(--primary); }

.modal-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.modal-btn:active { opacity: 0.8; }
.modal-btn.done { background: #334155; cursor: default; }

.modal-close {
  display: block;
  text-align: center;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
}

/* 红心点赞动画 */
.heart-burst {
  position: absolute;
  pointer-events: none;
  z-index: 50;
  font-size: 32px;
  animation: heartFloat 1s ease-out forwards;
  will-change: transform, opacity;
}

/* 观看人数更新动画 */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes barrageIn {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes noticeIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes noticeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes heartFloat {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-120px) scale(0.5); }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

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

/* 响应式 */
@media (min-width: 768px) {
  .live-page { max-width: 420px; margin: 0 auto; }
  .default-page { max-width: 420px; margin: 0 auto; }
}


/* ===== Top bar (Douyin style) ===== */
.live-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 0;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 100%);
}

.top-left {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  cursor: pointer;
}







.live-tag {
  color: #FE2C55;
  font-size: 11px;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.top-right {
  display: flex;
  align-items: center;
  gap: 2px;
  pointer-events: auto;
  cursor: pointer;
  background: transparent;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 4px 10px 4px 6px;
  border-radius: 20px;
}

.viewer-avatars {
  display: flex;
  align-items: center;
  margin-right: 2px;
}

/* 观众头像 - 抖音风格，50+人群适配 */
.v-avatar {
  margin-right: -16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 2px solid rgba(255,255,255,0.5);
  
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.v-avatar:last-child {
  margin-right: 0;
}

.viewer-count {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  margin-left: 2px;
}

/* ===== 商品推送卡片 ===== */
.product-push-card {
  background: linear-gradient(135deg, #065f46, #047857);
  border-radius: 12px;
  padding: 10px 12px;
  width: 170px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  animation: pushIn 0.35s ease;
  border: 1px solid rgba(255,255,255,0.1);
}

@keyframes pushIn {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.push-reel {
  position: absolute;
  bottom: 66px;
  right: 12px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  max-width: 200px;
}
.push-reel > * {
  pointer-events: auto;
}
.push-header {
  font-size: 11px;
  color: #a7f3d0;
  margin-bottom: 8px;
  font-weight: 600;
}
.push-body {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.push-img {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  overflow: hidden;
}
.push-info {
  flex: 1;
  min-width: 0;
}
.push-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  display: block;
  margin-bottom: 2px;
}
.push-price {
  font-size: 16px;
  font-weight: 700;
  color: #FFC200;
  display: block;
  margin-bottom: 6px;
}
.push-btn {
  background: #f59e0b;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.push-btn:active {
  opacity: 0.8;
}

/* ===== 直播结束浮层 ===== */
.stream-ended-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}
.ended-box {
  text-align: center;
  padding: 40px 48px;
  background: #1e293b;
  border-radius: 20px;
  max-width: 280px;
}
.ended-icon { font-size: 48px; margin-bottom: 12px; }
.ended-title {
  font-size: 20px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 6px;
}
.ended-sub {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 20px;
}
.ended-btn {
  background: #1c1c1e;
  color: #d1fae5;
  border: none;
  border-radius: 10px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.ended-btn:active { opacity: 0.8; }

/* ===== Top bar stats (Douyin-style) ===== */

.live-top-bar > * {
  pointer-events: auto;
}







/* ===== SVG icons for bottom bar ===== */
.icon-svg {
  width: 22px;
  height: 22px;
  display: block;
}
.bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(0,0,0,0.3);
  border: none;
  color: #e2e8f0;
  padding: 8px;
  cursor: pointer;
  font-size: 10px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}
.bottom-btn:active { opacity: 0.7; background: rgba(0,0,0,0.5); }


/* Like animation */
.bottom-btn.liked .icon-svg {
  animation: heartPop 0.6s ease;
  fill: #FE2C55;
  stroke: #FE2C55;
}
@keyframes heartPop {
  0% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(0.95); }
  100% { transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== Yellow cart icon (小黄车) ===== */
.cart-icon { width: 24px; height: 24px; }
.like-icon { width: 26px; height: 26px; filter: drop-shadow(0 0 2px rgba(254,44,85,0.3)); }
.bottom-btn.liked .like-icon {
  animation: heartPop 0.6s ease;
  filter: drop-shadow(0 0 6px rgba(254,44,85,0.5));
}

/* Remove old like-count */


/* ===== 购物车商品面板 (抖音小黄车弹窗) ===== */
.cart-panel {
  position: absolute;
  bottom: 60px;
  right: 12px;
  width: 200px;
  max-height: 50vh;
  background: #1e293b;
  border-radius: 14px;
  overflow-y: auto;
  z-index: 200;
  flex-direction: column;
  padding: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
  animation: slideUp 0.25s ease;
}
.cart-panel::-webkit-scrollbar { width: 0; }
.cart-empty {
  text-align: center;
  color: #64748b;
  padding: 20px;
  font-size: 13px;
}
.cart-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0f172a;
}
.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cart-item-name {
  font-size: 12px;
  color: #e2e8f0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: #FE2C55;
}
.cart-item-buy {
  background: #FFC200;
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
}
.cart-item-buy:active { opacity: 0.8; }

/* ===== 商品详情弹窗 ===== */
.modal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.65);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
  animation: fadeIn 0.2s ease;
}
.modal-box {
  background: #1e293b;
  border-radius: 18px;
  padding: 20px;
  width: 280px;
  max-width: 85vw;
  text-align: center;
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.modal-img-wrap {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  margin-bottom: 12px;
}
.modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.modal-name {
  font-size: 16px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 6px;
  line-height: 1.4;
}
.modal-price {
  font-size: 22px;
  font-weight: 800;
  color: #FE2C55;
  margin-bottom: 18px;
}
.modal-buy {
  display: inline-block;
  background: #FFC200;
  color: #000;
  padding: 12px 36px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}
.modal-buy:active { opacity: 0.8; }

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





/* ===== 礼物动画特效 ===== */
.gift-effect-overlay {
  position: absolute;
  bottom: 180px;
  left: 12px;
  z-index: 999;
  pointer-events: none;
  animation: giftFadeIn 0.3s ease-out;
}
.gift-effect-overlay.fade-out {
  animation: giftFadeOut 0.5s ease-in forwards;
}
.gift-effect-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  background: rgba(0,0,0,0.55);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: giftSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.gift-effect-image {
  width: 52px;
  height: 52px;
  animation: giftPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 0 12px rgba(255,200,0,0.4));
  flex-shrink: 0;
}
.gift-effect-text {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  animation: giftTextUp 0.3s ease-out 0.15s both;
  white-space: nowrap;
  line-height: 1.4;
}
.gift-effect-text .gift-name-highlight {
  color: #FFC200;
  font-weight: 700;
}
/* Particle sparkles */
.gift-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: giftSparkle 1s ease-out forwards;
  pointer-events: none;
}
.gift-particle.star {
  width: 10px;
  height: 10px;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

@keyframes giftSlideIn {
  0% { opacity: 0; transform: translateX(-30px) scale(0.8); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes giftFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes giftFadeOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.3); } }
@keyframes giftBounceIn {
  0% { transform: scale(0.3) rotate(-10deg); opacity: 0; }
  60% { transform: scale(1.15) rotate(3deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes giftPop {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
@keyframes giftFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes giftTextUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes giftSparkle {
  0% { opacity: 1; transform: translate(0,0) scale(1); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0); }
}
/* ===== 礼物面板 ===== */
.gift-panel-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.gift-panel {
  background: #1e293b;
  border-radius: 20px 20px 0 0;
  padding: 20px 16px calc(env(safe-area-inset-bottom) + 20px);
  width: 100%;
  max-width: 420px;
  animation: slideUp 0.3s ease-out;
}
.gift-panel-title {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.gift-list {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  margin-bottom: 12px;
}
.gift-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
  min-width: 56px;
}
.gift-item:active {
  background: rgba(255,255,255,0.15);
}
.gift-emoji {
  font-size: 32px;
  line-height: 1;
}
.gift-name {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}
.gift-close {
  display: block;
  width: 100%;
  padding: 12px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 12px;
  color: rgba(255,255,255,0.5);
  font-size: 15px;
  cursor: pointer;
}
.gift-close:active { background: rgba(255,255,255,0.15); }

/* ===== Input area: default compact, expand on focus ===== */

.send-btn-hidden {
  display: none !important;
}
.input-active .send-btn-hidden {
  display: flex !important;
}
/* 发送按钮：水平药丸形 */
#sendBtn {
  height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: 20px;
  background: #065f46;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#sendBtn:active { opacity: 0.7; }

/* =============================== */
/* 直播商城：下单+支付 CSS          */
/* =============================== */

/* 购物车面板浮层 */
.cart-panel-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.cart-panel-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
}
.cart-panel {
  position: relative;
  background: #1a1a2e;
  border-radius: 16px 16px 0 0;
  height: 50vh; max-height: 50vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}
.cart-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 16px;
  font-weight: bold;
  color: #fff;
}
.cart-panel-close {
  font-size: 22px;
  color: #999;
  padding: 4px 8px;
  cursor: pointer;
}
.cart-panel-body {
  padding: 12px 16px;
  overflow-y: auto;
  flex: 1;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}
.cart-loading, .cart-empty {
  text-align: center;
  color: #999;
  padding: 40px 0;
  font-size: 15px;
}
.cart-prod-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  align-items: center;
}
.cart-prod-item:last-child { border-bottom: none; }
.cart-prod-img-wrap {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #2a2a3e;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-prod-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-prod-img-placeholder {
  font-size: 32px;
}
.cart-prod-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cart-prod-name {
  font-size: 15px;
  color: #fff;
  font-weight: 500;
  line-height: 1.4;
}
.cart-prod-price {
  font-size: 16px;
  color: #FE2C55;
  font-weight: bold;
}
.cart-orig-price {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
  margin-left: 0px;
}
.cart-prod-sales {
  font-size: 12px;
  color: #999;
}
.cart-buy-btn {
  flex-shrink: 0;
  background: #FE2C55;
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

/* 下单弹窗 */
.order-modal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.order-modal-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
}
.order-modal {
  position: relative;
  background: #1a1a2e;
  border-radius: 16px 16px 0 0;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}
.order-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 17px;
  font-weight: bold;
  color: #fff;
}
.order-modal-close {
  font-size: 22px;
  color: #999;
  padding: 4px 8px;
  cursor: pointer;
}
.order-modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.order-prod-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.order-prod-summary-name {
  font-size: 15px;
  color: #fff;
  flex: 1;
  margin-right: 12px;
}
.order-prod-summary-price {
  font-size: 20px;
  color: #FE2C55;
  font-weight: bold;
}
.order-section-title {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 10px;
  padding-top: 4px;
}
.order-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.order-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.order-field label {
  font-size: 13px;
  color: #888;
}
.order-input {
  background: #2a2a3e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  color: #fff;
  outline: none;
  -webkit-appearance: none;
}
.order-input:focus {
  border-color: #065f46;
  background: #333350;
}
.order-textarea {
  background: #2a2a3e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  color: #fff;
  outline: none;
  resize: none;
  -webkit-appearance: none;
}
.order-textarea:focus {
  border-color: #065f46;
  background: #333350;
}
.order-qty-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}
.order-qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: #2a2a3e;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.order-qty-btn:active {
  background: #065f46;
}
.order-qty-val {
  font-size: 20px;
  color: #fff;
  font-weight: bold;
  min-width: 24px;
  text-align: center;
}
.order-total {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
  padding: 16px 0 12px;
  font-size: 16px;
  color: #fff;
}
.order-total-price {
  font-size: 22px;
  color: #FE2C55;
  font-weight: bold;
}
.order-submit-btn {
  width: 100%;
  background: #FE2C55;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px; margin-bottom: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.2s;
}
.order-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.order-submit-btn:active {
  opacity: 0.8;
}
.order-agreement {
  text-align: center;
  color: #666;
  font-size: 12px;
  padding: 10px 0 6px;
}
.order-error {
  color: #FE2C55;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
  padding: 4px 0;
}

/* 支付成功 */
.pay-success-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
}
.pay-success-modal {
  background: #1a1a2e;
  border-radius: 16px;
  padding: 32px 24px;
  width: 300px;
  text-align: center;
  animation: fadeIn 0.3s ease;
}
.pay-success-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.pay-success-title {
  font-size: 20px;
  color: #4ade80;
  font-weight: bold;
  margin-bottom: 8px;
}
.pay-success-amount {
  font-size: 28px;
  color: #FE2C55;
  font-weight: bold;
  margin-bottom: 12px;
}
.pay-success-desc {
  font-size: 14px;
  color: #aaa;
  line-height: 1.5;
  margin-bottom: 20px;
}
.pay-success-btn {
  background: #065f46;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px 40px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.pay-success-btn:active {
  opacity: 0.8;
}

/* 动画 */
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


/* 直播结束 */
.live-ended-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  background: #0a0a1a;
  color: #fff;
}
.live-ended-icon {
  font-size: 64px;
  margin-bottom: 12px;
}
.live-ended-text {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 8px;
}
.live-ended-sub {
  font-size: 14px;
  color: #888;
}

/* 地址选择器 */
.order-address-row {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}
.order-select {
  flex: 1;
  min-width: 80px;
  background: #2a2a3e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 8px;
  font-size: 15px;
  color: #fff;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
}
.order-select:disabled {
  opacity: 0.4;
}
.order-select:focus {
  border-color: #065f46;
}
.order-select option {
  background: #1a1a2e;
  color: #fff;
}

/* 商品卡片新布局 */
.cart-prod-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cart-prod-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  align-items: center;
}
.cart-prod-card:active {
  background: rgba(255,255,255,0.08);
}
.cart-prod-card-left {
  flex-shrink: 0;
}
.cart-prod-img-wrap {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #2a2a3e;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-prod-card-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}
.cart-prod-name {
  font-size: 15px;
  color: #fff;
  font-weight: 500;
  line-height: 1.3;
}
.cart-prod-price {
  font-size: 16px;
  color: #FE2C55;
  font-weight: bold;
}
.cart-buy-btn {
  background: #FE2C55;
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 8px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-end;
  -webkit-tap-highlight-color: transparent;
}
.cart-buy-btn:active {
  opacity: 0.8;
}

/* 加载动画 */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


/* ===== 用户面板（订单+地址）===== */
.profile-panel-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.profile-panel-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
}
.profile-panel {
  position: relative;
  background: #1a1a2e;
  border-radius: 16px 16px 0 0;
  max-height: 80vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}
.profile-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.profile-tab {
  flex: 1;
  text-align: center;
  padding: 16px 0;
  font-size: 16px;
  color: #999;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  -webkit-tap-highlight-color: transparent;
}
.profile-tab.active {
  color: #065f46;
  border-bottom-color: #065f46;
  font-weight: 600;
}
.profile-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  -webkit-overflow-scrolling: touch;
  max-height: 60vh;
}
.profile-loading {
  text-align: center;
  color: #999;
  padding: 40px 0;
  font-size: 15px;
}
.profile-empty {
  text-align: center;
  color: #999;
  padding: 40px 16px;
  font-size: 14px;
  line-height: 1.6;
}

/* 订单卡片 */
.order-card {
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.order-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.order-card-name {
  font-size: 15px;
  color: #fff;
  font-weight: 500;
}
.order-card-status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  color: #999;
}
.status-pending { color: #f59e0b; background: rgba(245,158,11,0.15); }
.status-paid { color: #059669; background: rgba(5,150,105,0.15); }
.status-shipped { color: #3b82f6; background: rgba(59,130,246,0.15); }
.status-completed { color: #999; background: rgba(153,153,153,0.15); }
.status-cancelled { color: #999; background: rgba(153,153,153,0.1); }
.order-card-qty {
  font-size: 13px;
  color: #888;
  margin-bottom: 6px;
}
.order-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.order-card-total {
  font-size: 16px;
  color: #FE2C55;
  font-weight: bold;
}
.order-card-date {
  font-size: 12px;
  color: #666;
}

/* 地址卡片 */
.addr-list {
  margin-bottom: 12px;
}
.addr-card {
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.addr-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.addr-card-name {
  font-size: 15px;
  color: #fff;
  font-weight: 500;
}
.addr-card-phone {
  font-size: 13px;
  color: #999;
}
.addr-default-tag {
  font-size: 10px;
  color: #059669;
  background: rgba(5,150,105,0.15);
  padding: 1px 6px;
  border-radius: 4px;
}
.addr-card-addr {
  font-size: 13px;
  color: #aaa;
  line-height: 1.4;
  margin-bottom: 8px;
}
.addr-card-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.addr-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: #ccc;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.addr-btn:active { opacity: 0.7; }
.addr-btn-del { color: #ef4444; border-color: rgba(239,68,68,0.3); }
.addr-add-btn {
  width: 100%;
  background: #065f46;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.addr-add-btn:active { opacity: 0.8; }

/* 地址表单 */
.addr-form {
  padding: 4px 0;
}
.addr-form-title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}
.addr-form-field {
  margin-bottom: 12px;
}
.addr-form-input {
  width: 100%;
  background: #2a2a3e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 14px 12px;
  font-size: 15px;
  color: #fff;
  outline: none;
}
.addr-form-input:focus { border-color: #065f46; }
.addr-form-input::placeholder { color: #666; }
.addr-form-row {
  display: flex;
  gap: 2px;
}
.addr-form-select {
  flex: 1;
  min-width: 0;
  background: #2a2a3e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 14px 8px;
  font-size: 14px;
  color: #fff;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 6px center;
  padding-right: 22px;
}
.addr-form-select:disabled { opacity: 0.4; }
.addr-form-select:focus { border-color: #065f46; }
.addr-form-select option { background: #1a1a2e; color: #fff; }
.addr-form-check-row {
  display: flex;
  align-items: center;
}
.addr-form-check-row label {
  font-size: 14px;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}
.addr-form-check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #065f46;
}
.addr-form-submit {
  width: 100%;
  background: #065f46;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
  -webkit-tap-highlight-color: transparent;
}
.addr-form-submit:disabled { opacity: 0.5; }
.addr-form-cancel {
  width: 100%;
  background: none;
  color: #999;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  cursor: pointer;
}
.addr-form-error {
  color: #ef4444;
  font-size: 13px;
  margin-top: 8px;
  text-align: center;
}



/* ===== 默认页面 - 用户管理入口 ===== */
.profile-entry {
  display: flex;
  gap: 10px;
  margin: 0 16px;
}
.profile-entry-btn {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #e2e8f0;
  padding: 14px 0;
  border-radius: 12px;
  font-size: 15px;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.profile-entry-btn:active {
  background: rgba(255,255,255,0.15);
}


/* ===== 同步提示 ===== */
.sync-tip {
  padding: 32px 16px;
  text-align: center;
}
.sync-tip-icon { font-size: 40px; margin-bottom: 12px; }
.sync-tip-text { font-size: 15px; color: #fff; margin-bottom: 8px; }
.sync-tip-desc { font-size: 13px; color: #666; line-height: 1.6; }

/* ===== 添加地址提示 ===== */
.add-addr-section { margin-top: 8px; }
.add-addr-hint { 
  text-align: center; 
  font-size: 11px; 
  color: #555; 
  line-height: 1.5;
  padding: 10px 16px;
}

/* 直播顶部右侧 */
.top-right {
  display: flex;
  align-items: center;
  gap: 2px;
  pointer-events: auto;
}
.viewer-avatars {
  display: flex;
  align-items: center;
  margin-right: 0px;
}
.v-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  margin-left: -6px;
}
.v-avatar:first-child { margin-left: 0; }




/* ===== 用户菜单 ===== */
.user-menu-section {
  margin: 16px 16px 12px;
}
.user-menu-grid {
  display: flex;
  gap: 8px;
}
.user-menu-item {
  flex: 1;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s;
}
.user-menu-item:active {
  background: rgba(6,95,70,0.1);
}
.user-menu-icon {
  font-size: 24px;
  margin-bottom: 4px;
}
.user-menu-label {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

/* ===== 我的面板 ===== */
.my-panel-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
}
.my-panel-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
}
.my-panel {
  position: relative;
  width: 100%;
  height: 50vh; max-height: 50vh;
  background: var(--bg-dark);
  border-radius: 16px 16px 0 0;
  overflow-y: auto;
  animation: slideUp 0.25s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.my-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  font-weight: 600;
  position: sticky;
  top: 0;
  background: var(--bg-dark);
  z-index: 1;
}
.my-panel-close {
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}
.my-panel-body {
  padding: 12px 16px;
}
.my-panel-loading, .my-panel-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ===== 订单/地址列表 ===== */
.my-order-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.my-order-item:last-child { border-bottom: none; }
.my-order-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}
.my-order-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}
.my-order-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
}
.my-order-status.paid { background: #fef3c7; color: #92400e; }
.my-order-status.shipped { background: #dbeafe; color: #1e40af; }
.my-order-status.completed { background: #d1fae5; color: #065f46; }
.my-order-status.pending { background: #fce7f3; color: #9d174d; }
.my-order-status.cancelled { background: #f1f5f9; color: #64748b; }
.my-order-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.my-addr-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.my-addr-item:last-child { border-bottom: none; }
.my-addr-item.addr-default { }
.my-addr-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}
.my-addr-detail {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== 观众头像 ===== */
.viewer-avatars {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 0px;
}
.v-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  margin-left: -5px;
}
.v-avatar:first-child { margin-left: 0; }

/* ===== 用户菜单（预约界面） ===== */
.user-menu-section {
  margin: 16px 16px 12px;
}
.user-menu-grid {
  display: flex;
  gap: 8px;
}
.user-menu-item {
  flex: 1;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
}
.user-menu-item:active { background: rgba(6,95,70,0.1); }
.user-menu-icon { font-size: 24px; margin-bottom: 4px; }
.user-menu-label { font-size: 13px; color: var(--text); font-weight: 500; }

/* ===== 我的面板（订单/地址） ===== */
.my-panel-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
}
.my-panel-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
}
.my-panel {
  position: relative;
  width: 100%;
  height: 50vh; max-height: 50vh;
  background: var(--bg-dark);
  border-radius: 16px 16px 0 0;
  overflow-y: auto;
  animation: slideUp 0.25s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.my-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  font-weight: 600;
  position: sticky;
  top: 0;
  background: var(--bg-dark);
  z-index: 1;
}
.my-panel-close { font-size: 16px; color: var(--text-muted); cursor: pointer; padding: 4px; }
.my-panel-body { padding: 12px 16px; }
.my-panel-loading, .my-panel-empty { text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 14px; }
.my-order-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.my-order-item:last-child { border-bottom: none; }
.my-order-name { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.my-order-info { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-muted); }
.my-order-status { font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.my-order-status.paid { background: #fef3c7; color: #92400e; }
.my-order-status.shipped { background: #dbeafe; color: #1e40af; }
.my-order-status.completed { background: #d1fae5; color: #065f46; }
.my-order-status.pending { background: #fce7f3; color: #9d174d; }
.my-order-status.cancelled { background: #f1f5f9; color: #64748b; }
.my-order-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.my-addr-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.my-addr-item:last-child { border-bottom: none; }
.my-addr-name { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.my-addr-detail { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ===== 四象限直播UI (20260610-0345) ===== */

/* 左上：LOGO + 标题 */
.top-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
/* LOGO显示完整，不裁剪 */
.live-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: none;
  object-fit: contain;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
  display: block;
  padding: 6px;
}
.live-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.live-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-likes {
  font-size: 13px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 500;
}
.live-likes span { color: #fff; font-weight: 600; }
.heart-icon { font-size: 14px; }

/* 右上：头像 + 人次 */
.top-right {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.viewer-count {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}
.viewer-label {
  color: rgba(255,255,255,0.6);
  font-size: 11px;
}

/* 底部按钮：50px 统一尺寸 */
/* 底部按钮 - 背景加深 */
.bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 50px; height: 50px;
  border: none;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}
.bar-btn:active { background: rgba(0,0,0,0.7); }
.bar-icon { font-size: 20px; line-height: 1; }
.bar-btn-label {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  line-height: 1;
}

/* 底部输入区 */
.bottom-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-right: 2px;
}

/* 发送按钮 */
.send-btn {
  height: 46px;
  padding: 0 20px;
  border: none;
  border-radius: 23px;
  background: rgba(0,0,0,0.25);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  letter-spacing: 1px;
}
.send-btn:active { background: rgba(0,0,0,0.4); }
.send-btn-hidden { display: none !important; }
  border-radius: 12px 12px 0 0;
}
