/* ===== 设计令牌：H5 深色主题 ===== */
:root {
  --bg: #0a0c11;
  --bg-soft: #0f1219;
  --surface: #151922;
  --surface-2: #1d222d;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3f5fa;
  --muted: #8a93a6;
  --primary: #ff3355;
  --primary-2: #ff7a45;
  --gold: #ffc53d;
  --green: #2ed47a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  --tabbar-h: 62px;
  color-scheme: dark;
}

/* 直播商品、抽奖与点赞 */
.live-domain-section {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(243,247,255,.96));
  border: 1px solid rgba(111, 136, 196, .16);
  box-shadow: 0 10px 30px rgba(25, 39, 76, .08);
}
.live-domain-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.live-domain-head > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.live-domain-head b { color: #1c2740; font-size: 14px; }
.live-domain-head span { color: #8b95a8; font-size: 10px; }
.live-domain-actions { display: flex; gap: 6px; }
.live-domain-actions button { height: 30px; padding: 0 10px; border-radius: 15px; border: 1px solid #dce5fb; color: #365dd1; background: #fff; font-size: 11px; font-weight: 650; }
.live-domain-actions button:active { transform: scale(.96); }
.live-product-list { display: grid; gap: 8px; margin-top: 11px; }
.live-product-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid #e6ebf5; border-radius: 12px; background: #fff; }
.live-product-main { min-width: 0; flex: 1; }
.live-product-main b { display: block; overflow: hidden; color: #202b42; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.live-product-main span { color: #8a94a7; font-size: 10px; }
.live-product-price { color: #d63e58; font-weight: 750; font-size: 13px; }
.live-product-buy { height: 30px; padding: 0 12px; border-radius: 15px; color: #fff; background: linear-gradient(135deg, #466be4, #2949b1); font-size: 11px; font-weight: 700; }
.live-domain-status { margin-top: 8px; color: #8792a7; font-size: 10px; }
.live-domain-status.is-error { color: #c53349; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(900px 460px at 12% -8%, rgba(255, 51, 85, 0.14), transparent 62%),
    radial-gradient(760px 380px at 110% 8%, rgba(255, 122, 69, 0.09), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }

/* ===== 顶部提示 ===== */
.toast-wrap {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: min(92vw, 420px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 13px;
  text-align: center;
  backdrop-filter: blur(14px);
  background: rgba(28, 32, 42, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: toast-in 0.28s ease both;
}

.toast-success { color: #b7f5d0; border-color: rgba(46, 212, 122, 0.35); }
.toast-error { color: #ffc2cd; border-color: rgba(255, 51, 85, 0.4); }
.toast-warning { color: #ffe1a8; border-color: rgba(255, 197, 61, 0.4); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 页面骨架 ===== */
.page-header {
  padding: calc(22px + env(safe-area-inset-top)) 20px 6px;
  max-width: 620px;
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 0 4px rgba(255, 51, 85, 0.16);
}

.notice {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.page {
  max-width: 620px;
  margin: 0 auto;
  padding: 14px 16px calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom));
}

/* ===== 底部导航 ===== */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  max-width: 620px;
  margin: 0 auto;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(12, 15, 21, 0.86);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
  transition: color 0.18s ease;
}

.tab-item svg { width: 22px; height: 22px; fill: currentColor; opacity: 0.72; }
.tab-item.is-active { color: var(--primary); font-weight: 600; }
.tab-item.is-active svg { opacity: 1; }

/* ===== 直播列表 ===== */
.room-list { display: flex; flex-direction: column; gap: 14px; }

.room-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.room-card:active { transform: scale(0.985); }

.cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover img { width: 100%; height: 100%; object-fit: cover; }

.cover-0 { background: linear-gradient(135deg, #3b1d3f, #7a2a55 55%, #b23a3a); }
.cover-1 { background: linear-gradient(135deg, #1a2b4a, #22507a 55%, #2f7d8c); }
.cover-2 { background: linear-gradient(135deg, #2d2415, #6b4d1d 55%, #a06a2a); }
.cover-3 { background: linear-gradient(135deg, #1d3327, #245843 55%, #2c7a55); }
.cover-4 { background: linear-gradient(135deg, #2a2336, #4b3a6b 55%, #7a4a8a); }

.cover-word {
  font-size: 42px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 2px;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.badge-live { background: rgba(255, 51, 85, 0.92); color: #fff; }
.badge-live i {
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
  animation: pulse 1.4s ease-in-out infinite;
}
.badge-soon { background: rgba(255, 197, 61, 0.16); color: var(--gold); border: 1px solid rgba(255, 197, 61, 0.36); }
.badge-end { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.6); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.82); }
}

.cover-online {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
}

.cover-online svg { width: 14px; height: 14px; fill: currentColor; opacity: 0.8; }

.room-meta { padding: 12px 14px 14px; }
.room-meta h2 {
  font-size: 15.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.room-meta p { margin-top: 4px; font-size: 12.5px; color: var(--muted); }

/* ===== 空态与提示卡 ===== */
.empty {
  padding: 54px 20px;
  text-align: center;
  color: var(--muted);
}
.empty-icon {
  width: 64px; height: 64px; margin: 0 auto 14px;
  border-radius: 20px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
}
.empty-icon svg { width: 28px; height: 28px; fill: var(--muted); opacity: 0.8; }
.empty h3 { font-size: 15px; color: var(--text); font-weight: 600; }
.empty p { margin-top: 5px; font-size: 13px; }

.tip-card {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, rgba(255, 197, 61, 0.09), rgba(255, 51, 85, 0.06));
  border: 1px solid rgba(255, 197, 61, 0.18);
}
.tip-card h4 { font-size: 13.5px; color: var(--gold); font-weight: 600; }
.tip-card p { margin-top: 5px; font-size: 12.5px; color: var(--muted); }

/* ===== 直播间 ===== */
body.room-page {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}

.player-wrap {
  position: relative;
  flex: none;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.player-wrap video { width: 100%; height: 100%; object-fit: contain; background: #000; }

.player-live-preview {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 30%, rgba(118, 209, 183, .42), transparent 44%),
    radial-gradient(circle at 78% 72%, rgba(33, 126, 111, .5), transparent 48%),
    linear-gradient(145deg, #194c44, #2f7568 52%, #173f3a);
  opacity: 1;
  transition: opacity .36s ease;
}
.player-live-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.player-live-preview.is-hidden { opacity: 0; }

.player-back {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  left: 12px;
  z-index: 6;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.player-back svg {
  width: 18px; height: 18px;
  fill: none; stroke: #fff; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}


.live-entry-button {
  position: absolute;
  z-index: 8;
  top: 50%;
  left: 50%;
  display: flex;
  min-width: 126px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 11px;
  padding: 14px 18px;
  border: 0;
  color: rgba(255, 255, 255, .96);
  background: transparent;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .72);
  transform: translate(-50%, -50%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.live-entry-button[hidden] { display: none; }
.live-entry-copy {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .12em;
  line-height: 1.2;
  white-space: nowrap;
}
.live-entry-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .42), 0 0 10px rgba(255, 255, 255, .78);
  animation: live-entry-dot-breathe 1.8s ease-in-out infinite;
}
.live-entry-button:active { transform: translate(-50%, -50%) scale(.96); }
@keyframes live-entry-dot-breathe {
  0%, 100% { opacity: .55; transform: scale(.82); box-shadow: 0 0 0 0 rgba(255, 255, 255, .36), 0 0 8px rgba(255, 255, 255, .6); }
  50% { opacity: 1; transform: scale(1.08); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0), 0 0 15px rgba(255, 255, 255, .92); }
}
.player-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.55);
  transition: opacity 0.3s ease;
}
.player-state.is-hidden { opacity: 0; pointer-events: none; }

.player-replay-entry {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #17c9a7, #0aa88f);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .4), 0 1px 0 rgba(255, 255, 255, .35) inset;
}
.player-replay-entry:active { transform: translate(-50%, -50%) scale(.97); }

.latency-badge {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: 12px;
  z-index: 6;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  color: #ffd27a;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 197, 61, 0.3);
  backdrop-filter: blur(6px);
  font-variant-numeric: tabular-nums;
}
.latency-badge[hidden] { display: none; }

.spinner {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.player-bar {
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.live-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
}
.live-tag.is-live { color: #fff; background: rgba(255, 51, 85, 0.9); }
.live-tag.is-off { color: rgba(255, 255, 255, 0.65); }
.live-tag i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.online-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
}
.online-tag svg { width: 13px; height: 13px; fill: currentColor; opacity: 0.85; }
.online-tag b { font-weight: 600; }

.room-panel {
  position: relative;
  z-index: 3;
  flex: 1;
  min-height: 0;
  max-width: 620px;
  margin: 0 auto;
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
  background: var(--bg-soft);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.room-head h1 { font-size: 17px; font-weight: 650; line-height: 1.4; }
.room-desc { margin-top: 6px; font-size: 12.5px; color: var(--muted); }

/* 红包进度 */
.rp-panel {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(255, 197, 61, 0.14), rgba(255, 51, 85, 0.1));
  border: 1px solid rgba(255, 197, 61, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.rp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.rp-title {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: #ffdf9a;
}
.rp-title svg { width: 17px; height: 17px; fill: var(--gold); }

.rp-badge {
  font-size: 11px;
  color: #ffd27a;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 197, 61, 0.14);
  border: 1px solid rgba(255, 197, 61, 0.28);
  white-space: nowrap;
}

.rp-progress-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rp-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.rp-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  box-shadow: 0 0 12px rgba(255, 197, 61, 0.5);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.rp-time { font-size: 12px; color: #ffdf9a; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-hint { margin-top: 8px; font-size: 11.5px; color: rgba(255, 226, 168, 0.65); }

.rp-bar {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rp-bar[hidden] { display: none; }
.rp-bar-amount { font-size: 15px; font-weight: 700; color: var(--gold); }
.rp-bar-tip { font-size: 11.5px; color: var(--muted); }

.rp-login-btn {
  display: block;
  margin-top: 12px;
  padding: 10px 0;
  text-align: center;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 8px 20px rgba(255, 51, 85, 0.3);
}

/* 聊天 */
.chat { margin-top: 18px; }

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.chat-head h3 { font-size: 13.5px; font-weight: 600; }
.chat-online { font-size: 11.5px; color: var(--muted); }
.chat-online b { color: var(--primary); }

.chat-list {
  padding: 12px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 140px;
}

.chat-empty { padding: 34px 0; text-align: center; font-size: 12.5px; color: var(--muted); }

.chat-item { display: flex; gap: 8px; align-items: flex-start; animation: msg-in 0.22s ease both; }

@keyframes msg-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.chat-avatar {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-2);
  color: #cfd6e6;
}

.chat-body { min-width: 0; }
.chat-name { font-size: 11.5px; color: var(--muted); }
.chat-name b { color: #cfd6e6; font-weight: 500; }
.chat-text {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.55;
  color: #e6eaf3;
  word-break: break-word;
}

.chat-input {
  position: sticky;
  bottom: 0;
  margin-top: 12px;
  padding: 18px 0 8px;
  display: flex;
  gap: 8px;
  background: linear-gradient(to bottom, rgba(15, 18, 25, 0), var(--bg-soft) 34%);
}

.chat-input input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  outline: none;
  transition: border-color 0.18s ease;
}
.chat-input input:focus { border-color: rgba(255, 51, 85, 0.5); }
.chat-input input::placeholder { color: rgba(138, 147, 166, 0.7); }

.chat-send {
  flex: none;
  padding: 0 18px;
  height: 40px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.chat-send:disabled { opacity: 0.5; }

.chat-input-guest {
  position: static;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.chat-input-guest a { color: var(--primary); font-weight: 600; }

/* 红包弹窗 */
.rp-mask {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  background: rgba(4, 5, 8, 0.68);
  backdrop-filter: blur(8px);
  animation: fade-in 0.24s ease both;
}
.rp-mask[hidden] { display: none; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.rp-card {
  position: relative;
  width: min(78vw, 320px);
  padding: 26px 22px 22px;
  border-radius: 22px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(165deg, #e0203f, #b5132d 62%, #8d0d22);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
  animation: pop-in 0.36s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}

@keyframes pop-in {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

.rp-card-glow {
  position: absolute;
  top: -60px; left: 50%;
  width: 220px; height: 140px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 211, 122, 0.5), transparent);
  pointer-events: none;
}

.rp-card-label { font-size: 12.5px; color: rgba(255, 255, 255, 0.78); letter-spacing: 0.5px; }

.rp-card-amount {
  margin: 8px 0 4px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  color: #ffe6a8;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}
.rp-card-amount span { font-size: 20px; font-weight: 600; }
.rp-card-amount b { font-size: 46px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums;

 }
.rp-card-rule { font-size: 11.5px; color: rgba(255, 255, 255, 0.62); }

.rp-card-btn {
  margin-top: 20px;
  width: 100%;
  height: 44px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  color: #a5122a;
  background: linear-gradient(180deg, #ffe9ae, #ffc53d);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}
.rp-card-btn:active { transform: scale(0.98); }

/* ===== 我的 ===== */
.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  overflow: hidden;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 700;
  background: linear-gradient(135deg, #2a2f3c, #414a5e);
  color: #e8ecf5;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.profile-info h2 { font-size: 16.5px; font-weight: 650; }
.profile-info p { margin-top: 5px; display: flex; align-items: center; gap: 8px; }

.member-chip {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
}
.member-chip.is-member {
  color: #ffdf9a;
  background: rgba(255, 197, 61, 0.12);
  border-color: rgba(255, 197, 61, 0.3);
}

.expire { font-size: 11.5px; color: var(--muted); }

.balance-card {
  margin-top: 14px;
  padding: 20px 18px;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  background: linear-gradient(140deg, rgba(255, 51, 85, 0.16), rgba(255, 122, 69, 0.08));
  border: 1px solid rgba(255, 51, 85, 0.26);
}
.balance-label { display: block; font-size: 11.5px; color: rgba(255, 255, 255, 0.6); }
.balance-main strong { font-size: 32px; font-weight: 800; letter-spacing: -0.6px; font-variant-numeric: tabular-nums; }
.balance-link { font-size: 12.5px; color: #ffb1a5; }

.section { margin-top: 20px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 2px;
}
.section-head h3 { font-size: 13.5px; font-weight: 600; }
.section-head span { font-size: 11.5px; color: var(--muted); }

.section-empty {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

.record-list {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.record-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.record-list li:last-child { border-bottom: 0; }

.record-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.record-main b { font-size: 13.5px; font-weight: 600; }
.record-main span {
  font-size: 11.5px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.record-plus { font-style: normal; font-size: 14px; font-weight: 700; color: var(--gold); }
.record-minus { font-style: normal; font-size: 14px; font-weight: 700; color: var(--primary); }
.record-time { font-style: normal; font-size: 12px; color: var(--muted); }

.logout-form { margin-top: 24px; }

.ghost-btn {
  width: 100%;
  height: 44px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
}
.ghost-btn:active { background: rgba(255, 255, 255, 0.04); }

/* ===== 会员 ===== */
.level-list { display: flex; flex-direction: column; gap: 14px; }

.level-card {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.level-top { display: flex; align-items: center; justify-content: space-between; }
.level-top h2 { font-size: 16px; font-weight: 650; }
.level-mult {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 999px;
  color: #ffdf9a;
  background: rgba(255, 197, 61, 0.12);
  border: 1px solid rgba(255, 197, 61, 0.28);
}

.level-price { margin-top: 8px; display: flex; align-items: baseline; gap: 3px; color: var(--gold); }
.level-price span { font-size: 15px; }
.level-price strong { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; }
.level-price em { font-size: 12px; color: var(--muted); font-style: normal; }

.level-benefits { margin-top: 10px; display: flex; flex-direction: column; gap: 5px; }
.level-benefits li {
  position: relative;
  padding-left: 15px;
  font-size: 12.5px;
  color: var(--muted);
}
.level-benefits li::before {
  content: "";
  position: absolute;
  left: 2px; top: 7px;
  width: 5px; height: 5px;
  border-radius: 2px;
  background: var(--gold);
  opacity: 0.7;
}

.redeem-form { display: flex; gap: 8px; }
.redeem-form input {
  flex: 1; min-width: 0; height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  outline: none;
}
.redeem-form input:focus { border-color: rgba(255, 197, 61, 0.45); }

.form-hint { margin-top: 8px; font-size: 11.5px; color: var(--muted); }

.login-tip {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
}
.login-tip a { color: var(--primary); font-weight: 600; }

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-list li {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.faq-list b { display: block; font-size: 12.5px; color: #cfd6e6; font-weight: 600; }
.faq-list span { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }

/* ===== 登录 / 错误页 ===== */
.login-page {
  min-height: 100dvh;
  max-width: 420px;
  margin: 0 auto;
  padding: 18vh 26px calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.login-logo {
  width: 64px; height: 64px;
  border-radius: 22px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.login-logo .brand-dot { width: 18px; height: 18px; box-shadow: 0 0 0 6px rgba(255, 51, 85, 0.14); }

.login-page h1 { margin-top: 18px; font-size: 20px; font-weight: 700; }

.login-tip-text { margin-top: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 650;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 26px rgba(255, 51, 85, 0.3);
}
.primary-btn:active { transform: scale(0.985); }

.login-btn, .dev-form { margin-top: 26px; width: 100%; }

.dev-form { display: flex; flex-direction: column; gap: 10px; }
.dev-form input {
  height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  text-align: center;
  outline: none;
}

.login-agreement { margin-top: 14px; font-size: 11px; color: rgba(138, 147, 166, 0.7); }
.existing-login-card { width: 100%; margin-top: 20px; padding: 15px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: left; }
.existing-login-card h2 { color: var(--text); font-size: 14px; font-weight: 700; }
.existing-login-card > p { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.existing-login-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.existing-login-form select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--surface-2); font-size: 13px; outline: none; }
.existing-login-form select:focus { border-color: rgba(0,154,145,.48); box-shadow: 0 0 0 3px rgba(0,154,145,.08); }
.existing-login-form .primary-btn { width: 100%; }
.login-divider { width: 100%; display: flex; align-items: center; gap: 10px; margin-top: 18px; color: #98aaa6; font-size: 10.5px; }
.login-divider::before, .login-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.login-create-note { width: 100%; margin-top: 17px; color: var(--muted); font-size: 10.5px; line-height: 1.65; text-align: left; }

.login-back { margin-top: 20px; font-size: 12.5px; color: var(--muted); }

.error-code {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.login-page h1 { margin-top: 6px; font-size: 16px; color: var(--muted); font-weight: 500; }

@media (min-width: 700px) {
  body.room-page { max-width: 620px; margin: 0 auto; box-shadow: 0 0 80px rgba(0, 0, 0, 0.6); }
}

/* ================= 青绿色高端前台主题 ================= */
:root {
  --bg: #eef7f4;
  --bg-soft: #f7fcfb;
  --surface: #ffffff;
  --surface-2: #e9f5f1;
  --line: rgba(10, 83, 76, 0.11);
  --text: #153a36;
  --muted: #758d89;
  --primary: #009a91;
  --primary-2: #13b7a5;
  --gold: #d69a28;
  --green: #0a9f69;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 16px 42px rgba(10, 63, 57, 0.10);
  --tabbar-h: 68px;
  color-scheme: light;
}
body {
  color: var(--text);
  background:
    radial-gradient(900px 500px at 8% -10%, rgba(0, 184, 163, 0.14), transparent 62%),
    radial-gradient(760px 440px at 105% 4%, rgba(4, 123, 121, 0.10), transparent 62%),
    linear-gradient(180deg, #f5fbf9 0%, #edf6f3 100%);
}
.toast { background: rgba(8, 66, 62, 0.94); color: #effcf9; border-color: rgba(119, 231, 216, 0.18); }
.toast-success { color: #bff7e1; border-color: rgba(20, 179, 150, 0.34); }
.toast-error { color: #ffd3d5; border-color: rgba(222, 84, 92, 0.34); }
.tabbar { max-width: 760px; background: rgba(255, 255, 255, 0.86); border-top-color: rgba(7, 88, 80, 0.12); box-shadow: 0 -10px 30px rgba(10, 63, 57, 0.06); }
.tab-item { color: #8aa09d; }
.tab-item.is-active { color: var(--primary); }
.brand-dot { background: linear-gradient(135deg, #0a9f92, #15c1a8); box-shadow: 0 0 0 4px rgba(0, 154, 145, 0.13); }

/* 首页 */
.home-shell { width: min(760px, 100%); margin: 0 auto; padding: calc(16px + env(safe-area-inset-top)) 18px calc(var(--tabbar-h) + 32px + env(safe-area-inset-bottom)); }
.home-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 4px 2px 16px; }
.home-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.home-brand-mark { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #04aa9d, #007d79); box-shadow: 0 10px 22px rgba(0, 154, 145, 0.22); }
.home-brand-mark svg { width: 22px; height: 22px; fill: #fff; }
.home-brand-copy { min-width: 0; }
.home-brand-copy span { color: #7d9590; font-size: 9.5px; font-weight: 700; letter-spacing: .14em; }
.home-brand-copy h1 { margin-top: 1px; color: #163c38; font-size: 21px; font-weight: 750; letter-spacing: -.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-live-state { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; color: #087e73; background: #e6f7f3; border: 1px solid rgba(0, 154, 145, .2); font-size: 12px; font-weight: 600; }
.home-live-state i { width: 6px; height: 6px; border-radius: 50%; background: #0bb092; box-shadow: 0 0 0 4px rgba(11, 176, 146, .11); animation: pulse 1.4s ease-in-out infinite; }
.home-page { display: flex; flex-direction: column; gap: 22px; }
.home-hero {
  position: relative; overflow: hidden; min-height: 240px; padding: 26px 24px 20px; border-radius: 28px; color: #f7fffd;
  background:
    radial-gradient(420px 220px at 92% -5%, rgba(91, 238, 215, 0.22), transparent 65%),
    radial-gradient(360px 260px at 0% 110%, rgba(0, 159, 154, 0.3), transparent 66%),
    linear-gradient(135deg, #092925, #0d4844 55%, #0a6861);
  box-shadow: 0 24px 54px rgba(6, 50, 46, 0.23), inset 0 1px 0 rgba(255,255,255,.12);
}
.hero-ring { position: absolute; border: 1px solid rgba(132, 241, 222, 0.14); border-radius: 50%; pointer-events: none; }
.hero-ring-a { width: 240px; height: 240px; right: -78px; top: -94px; }
.hero-ring-b { width: 160px; height: 160px; left: -63px; bottom: -88px; border-color: rgba(228, 199, 130, .11); }
.hero-copy { position: relative; z-index: 2; max-width: 460px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: #9fe5db; font-size: 11px; font-weight: 650; letter-spacing: .08em; }
.hero-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #6de1c7; box-shadow: 0 0 13px rgba(109, 225, 199, .7); }
.hero-copy h2 { margin-top: 12px; font-size: 31px; line-height: 1.22; font-weight: 780; letter-spacing: -1px; }
.hero-copy p { margin-top: 9px; max-width: 440px; color: rgba(224, 247, 242, .72); font-size: 14px; line-height: 1.7; }
.hero-metrics { position: relative; z-index: 2; display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.hero-metrics > div { min-width: 92px; flex: 1; padding: 11px 13px; border-radius: 12px; background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.06)); border: 1px solid rgba(191, 245, 234, .16); backdrop-filter: blur(9px); }
.hero-metrics b { display: block; font-size: 23px; line-height: 1; font-weight: 720; color: #fff; }
.hero-metrics span { display: block; margin-top: 4px; color: rgba(218, 246, 239, .62); font-size: 11px; }
.home-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 0 3px 11px; }
.home-section-head span { color: #8aa29e; font-size: 9.5px; font-weight: 700; letter-spacing: .13em; }
.home-section-head h2 { margin-top: 3px; font-size: 20px; font-weight: 720; letter-spacing: -.4px; }
.home-section-head p { padding-bottom: 2px; color: var(--muted); font-size: 12px; }
.room-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.room-card { display: block; overflow: hidden; border-radius: 19px; background: #fff; border: 1px solid rgba(14, 95, 86, .12); box-shadow: 0 13px 32px rgba(10, 63, 57, .09); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.room-card:hover { transform: translateY(-3px); border-color: rgba(0, 154, 145, .26); box-shadow: 0 21px 42px rgba(10, 63, 57, .14); }
.room-card:active { transform: scale(.985); }
.cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(4, 38, 35, .04) 0%, rgba(4, 38, 35, .03) 48%, rgba(4, 38, 35, .56) 100%); }
.cover-0 { background: linear-gradient(135deg, #0d3c39, #0b7168 55%, #1ba692); }
.cover-1 { background: linear-gradient(135deg, #112f39, #135c68 55%, #15a2a0); }
.cover-2 { background: linear-gradient(135deg, #243b2e, #19725b 55%, #6eb483); }
.cover-3 { background: linear-gradient(135deg, #1b3533, #2d7d73 55%, #55b7a1); }
.cover-4 { background: linear-gradient(135deg, #172f3d, #235c78 55%, #0f9b9d); }
.cover-word { position: relative; z-index: 1; font-size: 48px; font-weight: 800; color: rgba(255,255,255,.9); text-shadow: 0 12px 32px rgba(0,0,0,.28); }
.badge { top: 12px; left: 12px; padding: 5px 10px; font-size: 12px; }
.badge-live { color: #fff; background: linear-gradient(135deg, #009d92, #08b49c); box-shadow: 0 5px 16px rgba(0, 135, 125, .3); }
.badge-live i { background: #cffff3; }
.badge-soon { color: #fff7df; background: rgba(156, 105, 24, .4); border-color: rgba(255, 221, 147, .36); }
.badge-end { color: rgba(255,255,255,.82); background: rgba(24, 60, 57, .5); }
.cover-online { right: 12px; bottom: 12px; padding: 4px 9px; font-size: 11.5px; background: rgba(5, 46, 43, .55); border: 1px solid rgba(178, 237, 225, .16); }
.room-meta { padding: 15px 16px 14px; }
.room-title-line { display: flex; align-items: center; gap: 10px; }
.room-meta h2 { min-width: 0; flex: 1; margin: 0; color: #173c38; font-size: 17px; font-weight: 680; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-enter-arrow { flex: none; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #008d82; background: #e6f6f2; font-size: 14px; }
.room-meta p { margin-top: 5px; color: #78908c; font-size: 13px; }
.room-card-foot { display: flex; align-items: center; gap: 7px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #edf2f1; color: #5d7672; font-size: 11.5px; }
.room-state-dot { width: 6px; height: 6px; border-radius: 50%; background: #c7d4d1; }
.room-state-dot.is-live { background: #00a58f; box-shadow: 0 0 0 4px rgba(0, 165, 143, .09); }
.feature-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.feature-item { padding: 15px 12px; text-align: center; border-radius: 15px; background: rgba(255,255,255,.76); border: 1px solid rgba(12, 91, 83, .09); box-shadow: 0 8px 24px rgba(10, 63, 57, .05); }
.feature-icon { width: 30px; height: 30px; display: grid; place-items: center; margin: 0 auto 8px; border-radius: 9px; color: #00897f; background: #e4f6f1; font-size: 13px; font-weight: 700; }
.feature-item h4 { font-size: 13px; font-weight: 650; }
.feature-item p { margin-top: 3px; color: var(--muted); font-size: 10.5px; }
.empty { padding: 64px 20px; border-radius: 22px; background: rgba(255,255,255,.7); }
.empty-icon { background: #fff; border-color: var(--line); }
.empty-icon svg { fill: var(--primary); }
.tip-card { display: none; }

/* 直播间：上播放器，下评论 */
body.room-page {
  height: 100dvh; overflow: hidden; background:
    radial-gradient(700px 420px at 50% -10%, rgba(25, 176, 155, .2), transparent 62%),
    linear-gradient(180deg, #061d1b 0%, #071412 100%);
}
.live-stage { flex: none; width: 100%; max-width: 760px; margin: 0 auto; background: #041210; }
.live-topbar {
  height: calc(56px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 14px 0;
  display: flex; align-items: center; gap: 11px;
  color: #e9fffa;
  background: linear-gradient(180deg, rgba(8, 54, 49, .9), rgba(4, 28, 26, .9));
  border-bottom: 1px solid rgba(137, 232, 214, .09);
}
.player-back {
  position: static; width: 34px; height: 34px; flex: none;
  background: rgba(255,255,255,.075); border-color: rgba(193, 245, 233, .14);
}
.live-stage-brand { min-width: 0; flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.live-stage-brand > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-stage-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #54e1bf; box-shadow: 0 0 0 4px rgba(84, 225, 191, .11), 0 0 15px rgba(84, 225, 191, .45); }
.online-tag { padding: 4px 9px; font-size: 11.5px; color: #dcfff8; background: rgba(4, 50, 45, .55); border: 1px solid rgba(172, 235, 223, .14); }
.player-wrap { width: 100%; max-width: none; margin: 0; aspect-ratio: 16 / 9; background: #010a09; }
.player-bar { bottom: 9px; left: 12px; right: 12px; }
.live-tag { padding: 4px 10px; font-size: 11.5px; }
.live-tag.is-live { background: linear-gradient(135deg, #009e91, #08b69d); box-shadow: 0 4px 13px rgba(0, 140, 130, .26); }
.player-state { font-size: 13px; background: rgba(1, 14, 12, .62); }
.spinner { border-top-color: #62dccc; }
.room-sheet {
  position: relative; z-index: 3; flex: 1; min-height: 0; width: 100%; max-width: 760px; margin: 0 auto;
  display: flex; flex-direction: column; border-radius: 24px 24px 0 0; overflow: hidden;
  background:
    radial-gradient(600px 260px at 100% 0%, rgba(0, 166, 151, .06), transparent 68%),
    linear-gradient(180deg, #fbfefd, #f2f9f6);
  box-shadow: 0 -16px 42px rgba(0, 17, 15, .3);
}
.room-panel {
  height: 100%; min-height: 0; max-width: none; margin: 0;
  padding: 18px 18px calc(12px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
  border-radius: 0; background: transparent; overflow: hidden;
}
.room-scroll {
  flex: 1; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.room-scroll::-webkit-scrollbar { display: none; }
.room-head-line { display: flex; align-items: center; gap: 7px; }
.room-kicker { padding: 3px 8px; border-radius: 5px; color: #087f75; background: #e4f6f2; font-size: 11px; font-weight: 650; }
.room-status-chip { padding: 3px 8px; border-radius: 5px; color: #7c8f8c; background: #eef3f2; font-size: 11px; font-weight: 600; }
.room-status-chip.is-live { color: #fff; background: #009d91; }
.room-head h1 { margin-top: 9px; color: #173d39; font-size: 20px; font-weight: 720; line-height: 1.35; letter-spacing: -.35px; }
.room-desc { margin-top: 7px; color: #7b918d; font-size: 13px; line-height: 1.65; }
.rp-panel {
  flex: none;
  margin-top: 16px; padding: 15px;
  background: linear-gradient(135deg, rgba(255, 250, 237, .9), rgba(232, 249, 245, .92));
  border: 1px solid rgba(0, 155, 142, .16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 24px rgba(10, 63, 57, .06);
}
.rp-title { color: #17635b; font-size: 14px; }
.rp-title svg { fill: var(--gold); }
.rp-badge { color: #8b6a25; background: rgba(234, 191, 98, .13); border-color: rgba(204, 157, 62, .2); font-size: 11px; }
.rp-track { height: 8px; background: #dcebe7; }
.rp-fill { background: linear-gradient(90deg, #00a398, #dfaa43); box-shadow: 0 0 10px rgba(0, 154, 145, .18); }
.rp-time { color: #007f76; font-size: 12px; }
.rp-hint { color: #8b9c98; font-size: 12px; }
.rp-login-btn { height: 42px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #08a396, #07877f); box-shadow: 0 9px 20px rgba(0, 145, 135, .22); font-size: 14px; }
.chat { min-height: 0; margin-top: 20px; }
.chat-head { align-items: center; padding: 0 0 12px; border-bottom-color: #e5efed; }
.chat-head-copy { display: flex; align-items: center; gap: 10px; }
.chat-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #e6f6f2; }
.chat-icon svg { width: 17px; height: 17px; fill: #009087; }
.chat-head h3 { color: #183e3a; font-size: 16px; font-weight: 680; }
.chat-head p { margin-top: 2px; color: #8a9c99; font-size: 10.5px; }
.chat-online { color: #7d918e; font-size: 11.5px; }
.chat-online b { color: #008f85; }
.chat-list {
  padding: 10px 0 12px;
  display: flex; flex-direction: column; gap: 3px;
}
.chat-item {
  flex: none; padding: 7px 0;
  border-radius: 0; background: transparent; border: 0; animation: none;
}
.chat-item.is-new { animation: chat-rise-in .28s cubic-bezier(.22, .8, .36, 1) both; }
@keyframes chat-rise-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.chat-avatar { width: 28px; height: 28px; color: #fff; background: linear-gradient(145deg, #00a397, #128d86); font-size: 11px; }
.chat-name { color: #7e9490; font-size: 11.5px; }
.chat-name b { color: #42625e; font-weight: 600; }
.chat-text { margin-top: 3px; color: #304f4b; font-size: 13px; line-height: 1.6; }
.chat-empty { padding: 46px 0 38px; color: #95a7a4; font-size: 12.5px; }
.chat-input {
  position: static; flex: none;
  margin-top: 8px; padding: 10px 0 0;
  background: #f2f9f6;
}
.chat-input input { height: 44px; padding: 0 15px; background: #fff; border-color: #d9e7e3; box-shadow: 0 5px 16px rgba(10, 63, 57, .05); font-size: 14px; }
.chat-input input:focus { border-color: #4ecabd; box-shadow: 0 0 0 3px rgba(0, 154, 145, .08); }
.chat-input input::placeholder { color: #9aaba8; }
.chat-send { height: 44px; padding: 0 20px; color: #fff; background: linear-gradient(180deg, #08ab9d, #008c85); box-shadow: 0 6px 16px rgba(0, 145, 135, .2); font-size: 14px; }
.chat-input-guest { background: #eaf5f2; border-color: #dce9e6; color: #718985; font-size: 12.5px; }
.chat-input-guest a { color: #008c82; }
.rp-mask { background: rgba(3, 31, 28, .72); backdrop-filter: blur(10px); }
.rp-card { background: linear-gradient(165deg, #0c4b45, #093a37 62%, #062a28); border-color: rgba(150, 243, 221, .17); box-shadow: 0 28px 70px rgba(0, 15, 13, .55); }
.rp-card-glow { background: radial-gradient(closest-side, rgba(255, 208, 119, .42), transparent); }
.rp-card-amount { color: #ffe0a0; }
.rp-card-btn { color: #5b430e; background: linear-gradient(180deg, #fff0bf, #e8b94d); }

@media (min-width: 700px) {
  body.room-page { max-width: 760px; }
  .room-sheet { border-radius: 24px 24px 0 0; }
}
@media (max-width: 560px) {
  .home-shell { padding-left: 14px; padding-right: 14px; }
  .home-hero { min-height: 224px; padding: 22px 20px 18px; border-radius: 24px; }
  .hero-copy h2 { font-size: 27px; }
  .hero-copy p { font-size: 13px; }
  .hero-metrics > div { min-width: 0; padding: 10px; }
  .hero-metrics b { font-size: 21px; }
  .room-list { grid-template-columns: 1fr; gap: 14px; }
  .home-section-head p { display: none; }
  .feature-item { padding: 13px 8px; }
  .feature-item h4 { font-size: 12px; }
  .feature-item p { font-size: 9.5px; }
  .live-topbar { padding-left: 12px; padding-right: 12px; }
  .room-panel { padding: 16px 14px calc(10px + env(safe-area-inset-bottom)); }
  .room-head h1 { font-size: 19px; }
}

/* 营销活动参与面板 */
.activity-panel {
  margin-top: 16px;
  padding: 15px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(235, 250, 247, .96), rgba(255, 252, 243, .92));
  border: 1px solid rgba(0, 154, 145, .18);
  box-shadow: 0 8px 24px rgba(10, 63, 57, .06);
}
.activity-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.activity-kicker { color: #8a9b97; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; }
.activity-head h3 { margin-top: 2px; color: #173f3a; font-size: 16px; font-weight: 700; }
.activity-reward-badge { flex: none; padding: 4px 8px; border-radius: 999px; color: #9a6814; background: #fff4d8; border: 1px solid #f0dba9; font-size: 11px; }
.activity-rule-text { margin-top: 8px; color: #68837f; font-size: 12.5px; line-height: 1.6; }
.activity-watch-row { display: flex; align-items: center; gap: 9px; margin-top: 12px; color: #778e8a; font-size: 11.5px; }
.activity-track { flex: 1; height: 7px; overflow: hidden; border-radius: 99px; background: #dbeae6; }
.activity-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #009f94, #e2ad47); transition: width .4s ease; }
.activity-watch-row b { min-width: 32px; color: #008d82; font-size: 11.5px; text-align: right; font-variant-numeric: tabular-nums; }
.activity-checkin-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; padding-top: 11px; border-top: 1px dashed #dcebe7; color: #6f8782; font-size: 12px; }
.activity-checkin-row b { color: #008e83; }
.activity-checkin-btn { min-height: 31px; padding: 0 13px; border-radius: 999px; color: #fff; background: linear-gradient(180deg, #09aa9c, #008a82); box-shadow: 0 5px 13px rgba(0, 145, 135, .16); font-size: 12px; font-weight: 600; }
.activity-checkin-btn:disabled { opacity: .55; cursor: default; }
.activity-quiz-note { margin-top: 10px; color: #b07822; font-size: 11.5px; line-height: 1.55; }
.activity-reward-state { margin-top: 11px; padding: 7px 10px; border-radius: 7px; color: #587570; background: rgba(255,255,255,.7); font-size: 11.5px; }
.activity-reward-state.is-rewarded { color: #087d68; background: #e2f7ee; }

/* 我的优惠券 */
.coupon-list { display: flex; flex-direction: column; gap: 11px; }
.coupon-card { position: relative; display: flex; align-items: stretch; overflow: hidden; border-radius: 16px; background: #fff; border: 1px solid rgba(14, 94, 85, .1); box-shadow: 0 10px 26px rgba(10, 63, 57, .07); }
.coupon-card::before { content: ""; width: 5px; flex: none; background: linear-gradient(180deg, #009e92, #13b9a7); }
.coupon-card.is-used::before { background: #c5d2cf; }
.coupon-main { min-width: 0; flex: 1; padding: 14px 14px 13px; }
.coupon-type { display: inline-flex; padding: 2px 7px; border-radius: 4px; color: #078e82; background: #e7f7f3; font-size: 10.5px; font-weight: 600; }
.coupon-main h4 { margin-top: 7px; color: #173e39; font-size: 16px; font-weight: 700; }
.coupon-main p { margin-top: 3px; color: #7b908c; font-size: 12px; }
.coupon-code { display: flex; align-items: center; gap: 8px; margin-top: 9px; color: #7a8e8b; font-size: 11px; }
.coupon-code b { color: #315752; font-family: "Cascadia Mono", Consolas, monospace; font-size: 12px; letter-spacing: .04em; }
.coupon-main small { display: block; margin-top: 7px; color: #91a19e; font-size: 10.5px; }
.coupon-side { width: 104px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px; border-left: 1px dashed #dbe8e5; }
.coupon-side strong { color: #b27718; font-size: 21px; font-weight: 750; }
.coupon-status { padding: 3px 8px; border-radius: 999px; font-size: 10.5px; }
.coupon-status.is-issued { color: #087e70; background: #e4f7f2; }
.coupon-status.is-ended { color: #879593; background: #f1f4f3; }

@media (max-width: 390px) {
  .coupon-side { width: 88px; }
  .coupon-side strong { font-size: 18px; }
  .activity-head { flex-direction: column; }
}

/* 微信获客设置 */
.settings-section-mark.mark-wechat { background: linear-gradient(135deg, #08a878, #41c86d); }
.wechat-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.wechat-metrics > div {
  padding: 14px 16px;
  border: 1px solid #dfeae7;
  border-radius: 11px;
  background: linear-gradient(145deg, #f6fcfa, #eef9f5);
}
.wechat-metrics span { color: #7d918d; font-size: 12px; }
.wechat-metrics b { display: block; margin-top: 5px; color: #174840; font-size: 18px; font-weight: 700; }

/* 个人中心手机绑定 */
.phone-bind-card {
  margin-top: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.phone-bind-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.phone-bind-head span { color: #8a9c99; font-size: 11px; font-weight: 650; letter-spacing: .05em; }
.phone-bind-head h3 { margin-top: 3px; color: #173c38; font-size: 16px; font-weight: 680; }
.phone-bind-state { padding: 4px 9px; border-radius: 999px; color: #7c918d; background: #f1f5f4; font-size: 11px; }
.phone-bind-state.is-bound { color: #087d70; background: #e4f7f2; }
.phone-bind-form { display: flex; gap: 8px; margin-top: 13px; }
.phone-bind-form input { flex: 1; min-width: 0; height: 42px; padding: 0 13px; border: 1px solid #dce8e5; border-radius: 10px; background: #fbfefd; font-size: 14px; outline: none; }
.phone-bind-form input:focus { border-color: #50cbbd; box-shadow: 0 0 0 3px rgba(0,154,145,.08); }
.phone-bind-btn { flex: none; padding: 0 16px; height: 42px; border-radius: 10px; color: #fff; background: linear-gradient(180deg, #09aa9c, #008b83); box-shadow: 0 6px 15px rgba(0,145,135,.18); font-size: 13px; font-weight: 600; }
.phone-bind-hint { margin-top: 8px; color: #8a9c99; font-size: 11px; line-height: 1.6; }
@media (max-width: 560px) {
  .wechat-metrics { grid-template-columns: 1fr; }
  .phone-bind-form { flex-direction: column; }
  .phone-bind-btn { width: 100%; }
}

/* ===== 高级个人中心 ===== */
.personal-top {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top)) 18px 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.personal-kicker { color: #7f9893; font-size: 9.5px; font-weight: 700; letter-spacing: .14em; }
.personal-top h1 { margin-top: 2px; color: #163c38; font-size: 24px; font-weight: 750; letter-spacing: -.6px; }
.personal-home-link { padding: 6px 10px; border-radius: 999px; color: #087e74; background: #e6f7f3; border: 1px solid rgba(0,154,145,.16); font-size: 12px; font-weight: 600; }
.personal-page { width: min(760px, 100%); max-width: 760px; padding-top: 6px; }
.profile-hero {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 26px;
  color: #f5fffc;
  background:
    radial-gradient(420px 220px at 96% -14%, rgba(107, 234, 208, .2), transparent 64%),
    radial-gradient(360px 220px at 0% 112%, rgba(0, 177, 167, .25), transparent 68%),
    linear-gradient(138deg, #092a27, #0a4b46 58%, #08736a);
  box-shadow: 0 22px 48px rgba(5, 48, 44, .24), inset 0 1px 0 rgba(255,255,255,.12);
}
.profile-orbit { position: absolute; border: 1px solid rgba(146, 238, 220, .13); border-radius: 50%; pointer-events: none; }
.profile-orbit-a { width: 230px; height: 230px; right: -80px; top: -120px; }
.profile-orbit-b { width: 150px; height: 150px; left: -55px; bottom: -90px; border-color: rgba(236, 203, 127, .1); }
.profile-hero-main { position: relative; z-index: 2; display: flex; align-items: flex-start; gap: 14px; }
.avatar-hero { width: 72px; height: 72px; flex: none; color: #fff; background: linear-gradient(145deg, #1cb9aa, #087f7b); border: 2px solid rgba(255,255,255,.22); box-shadow: 0 9px 25px rgba(0, 22, 20, .28), inset 0 1px 0 rgba(255,255,255,.3); font-size: 25px; }
.profile-hero-copy { min-width: 0; flex: 1; }
.profile-tag-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.wechat-account-label { padding: 3px 8px; border-radius: 999px; color: rgba(210, 250, 241, .72); background: rgba(255,255,255,.08); border: 1px solid rgba(174, 239, 227, .14); font-size: 10.5px; }
.profile-hero-copy h2 { margin-top: 8px; color: #fff; font-size: 22px; font-weight: 750; letter-spacing: -.5px; }
.profile-hero-copy p { margin-top: 4px; color: rgba(217, 247, 241, .64); font-size: 12px; }
.hero-member-btn {
  flex: none;
  align-self: center;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 9px;
  color: #694a13;
  background: linear-gradient(180deg, #fff2c6, #e9bd5e);
  border: 1px solid #f6dd9a;
  box-shadow: inset 0 1px 0 #fff9dd, 0 3px 0 #a97d2d, 0 8px 18px rgba(21, 54, 49, .22);
  font-size: 12px;
  font-weight: 700;
}
.hero-member-btn:active { transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(92, 64, 14, .18), 0 1px 0 #a97d2d; }
.profile-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 20px; }
.profile-stats > div { padding: 11px 12px; border-radius: 12px; background: rgba(255,255,255,.085); border: 1px solid rgba(188, 238, 229, .11); backdrop-filter: blur(7px); }
.profile-stats span { display: block; color: rgba(206, 244, 236, .58); font-size: 10.5px; }
.profile-stats strong { display: block; margin-top: 5px; color: #fff; font-size: 19px; line-height: 1; font-weight: 720; font-variant-numeric: tabular-nums; }
.profile-stats strong em { margin-right: 2px; color: rgba(220, 251, 245, .72); font-size: 11px; font-style: normal; font-weight: 500; }
.profile-stats > div:nth-child(n+2) strong em { margin-left: 3px; margin-right: 0; }
.quick-action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
.quick-action {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f4faf8);
  border: 1px solid rgba(14, 96, 87, .12);
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 #cfdfdb, 0 10px 22px rgba(10, 63, 57, .07);
  transition: transform .14s ease, box-shadow .14s ease;
}
.quick-action:active { transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(13, 69, 62, .08), 0 1px 0 #cfdfdb; }
.quick-icon { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px; color: #fff; background: linear-gradient(145deg, #08a79b, #0b817c); box-shadow: 0 5px 12px rgba(0, 145, 135, .17); font-size: 12px; font-weight: 700; }
.quick-action > span:nth-child(2) { min-width: 0; flex: 1; }
.quick-action b { display: block; color: #173f3a; font-size: 13px; font-weight: 670; }
.quick-action small { display: block; margin-top: 2px; color: #7d918d; font-size: 10px; }
.quick-action i { color: #8ba09c; font-size: 17px; font-style: normal; }
.center-card { margin-top: 14px; padding: 17px 18px; border-radius: 18px; background: #fff; border: 1px solid rgba(14, 96, 87, .11); box-shadow: 0 12px 30px rgba(10, 63, 57, .07); }
.center-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #e8f0ee; }
.center-card-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.center-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; color: #078c81; background: #e4f7f2; font-size: 12px; font-weight: 700; }
.center-card-title h3 { color: #173f3a; font-size: 16px; font-weight: 680; }
.center-card-title p { margin-top: 2px; color: #879d99; font-size: 10.5px; }
.center-count { color: #849b97; font-size: 11.5px; white-space: nowrap; }
.phone-bind-form { display: flex; gap: 9px; margin-top: 13px; }
.phone-bind-form input { flex: 1; min-width: 0; height: 42px; padding: 0 13px; border: 1px solid #dce8e5; border-radius: 10px; background: #fbfefd; font-size: 14px; outline: none; }
.phone-bind-form input:focus { border-color: #51cabd; box-shadow: 0 0 0 3px rgba(0,154,145,.08); }
.premium-action {
  flex: none;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(180deg, #0aac9f, #008a83);
  border: 1px solid #00847d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 3px 0 #00635e, 0 7px 16px rgba(0,145,135,.18);
  font-size: 13px;
  font-weight: 650;
}
.premium-action:active { transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(0,54,51,.2), 0 1px 0 #00635e; }
.phone-bind-hint { margin-top: 8px; color: #8a9c99; font-size: 11px; line-height: 1.6; }
.coupon-list { margin-top: 13px; }
.record-list { margin-top: 12px; }
.center-card .section-empty { margin-top: 12px; }
.money-balance-tag { color: #8c6018; font-size: 15px; font-weight: 720; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bean-balance-tag { color: #8c6018; font-size: 15px; font-weight: 720; white-space: nowrap; font-variant-numeric: tabular-nums; }
.account-rule-note { margin-top: 11px; color: #7e918d; font-size: 11px; line-height: 1.65; }
.bean-purchase-form {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 12px;
  background: #f6fbf9;
  border: 1px solid #e0ece8;
}
.bean-purchase-main { min-width: 0; flex: 1; }
.bean-purchase-main span { display: block; color: #355750; font-size: 12px; font-weight: 650; }
.bean-purchase-main small { display: block; margin-top: 2px; color: #8b9d99; font-size: 10px; }
.bean-purchase-form input { width: 70px; height: 38px; padding: 0 8px; border-radius: 9px; border: 1px solid #dce9e6; background: #fff; color: #2c504a; font-size: 13px; text-align: center; outline: none; }
.bean-purchase-form input:focus { border-color: #55cbbb; box-shadow: 0 0 0 3px rgba(0, 154, 145, .08); }
.bean-purchase-form .premium-action { height: 38px; padding: 0 14px; }
.logout-form { margin-top: 20px; }
.logout-premium {
  width: 100%;
  height: 44px;
  border-radius: 11px;
  color: #607975;
  background: linear-gradient(180deg, #fff, #f4f8f7);
  border: 1px solid #dce8e5;
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 #d1dedb, 0 7px 16px rgba(10,63,57,.05);
  font-size: 13px;
  font-weight: 600;
}
.logout-premium:active { transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(20,70,64,.08), 0 1px 0 #d1dedb; }
.staff-members-page { padding-bottom: calc(var(--tabbar-h) + 34px + env(safe-area-inset-bottom)); }
.staff-members-hero { position: relative; overflow: hidden; padding: 21px; border-radius: 24px; color: #f4fffc; background: radial-gradient(330px 210px at 98% -10%, rgba(107, 234, 208, .2), transparent 65%), linear-gradient(138deg, #092b28, #0a4d47 58%, #08736a); box-shadow: 0 20px 44px rgba(5, 48, 44, .22); }
.staff-members-orbit { position: absolute; border: 1px solid rgba(146, 238, 220, .12); border-radius: 50%; pointer-events: none; }
.staff-members-orbit-a { width: 210px; height: 210px; right: -70px; top: -115px; }
.staff-members-orbit-b { width: 130px; height: 130px; left: -45px; bottom: -80px; border-color: rgba(236, 203, 127, .1); }
.staff-members-hero-copy { position: relative; z-index: 1; }
.staff-members-badge { display: inline-flex; padding: 4px 9px; border-radius: 999px; color: #9ef0d9; background: rgba(116, 236, 207, .12); border: 1px solid rgba(157, 242, 220, .2); font-size: 10px; font-weight: 700; }
.staff-members-hero h1 { margin-top: 8px; color: #fff; font-size: 23px; font-weight: 750; letter-spacing: -.5px; }
.staff-members-hero p { margin-top: 4px; color: rgba(220, 250, 243, .66); font-size: 11.5px; }
.staff-members-metrics { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 17px; }
.staff-members-metrics > div { padding: 10px 11px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(188, 238, 229, .11); }
.staff-members-metrics span { display: block; color: rgba(206, 244, 236, .58); font-size: 10px; }
.staff-members-metrics strong { display: block; margin-top: 5px; color: #fff; font-size: 18px; font-weight: 720; font-variant-numeric: tabular-nums; }
.staff-members-metrics em { margin-right: 2px; color: rgba(220, 251, 245, .72); font-size: 10px; font-style: normal; font-weight: 500; }
.staff-members-metrics > div:nth-child(n+2) em { margin-right: 0; margin-left: 2px; }
.staff-members-card { margin-top: 14px; }
.staff-member-list { display: flex; flex-direction: column; gap: 10px; margin-top: 13px; }
.staff-member-card { padding: 12px; border-radius: 14px; background: #fbfefd; border: 1px solid #e0ece8; }
.staff-member-head { display: flex; align-items: flex-start; gap: 10px; }
.staff-member-avatar { width: 46px; height: 46px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 14px; color: #fff; background: linear-gradient(145deg, #18b5a7, #087d77); font-size: 17px; font-weight: 750; }
.staff-member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.staff-member-copy { min-width: 0; flex: 1; }
.staff-member-name { display: flex; align-items: center; gap: 7px; }
.staff-member-name b { overflow: hidden; color: #284a43; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.staff-member-name span { flex: none; padding: 2px 6px; border-radius: 999px; color: #7d691f; background: #fff5d8; font-size: 9.5px; }
.staff-member-copy > p { margin-top: 3px; color: #839793; font-size: 10.5px; }
.staff-member-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.staff-member-tags span { padding: 2px 6px; border-radius: 4px; color: #4b7770; background: #edf7f4; font-size: 9.5px; }
.staff-member-store { margin-top: 10px; padding: 9px 10px; border-radius: 10px; background: #f6fbfa; border: 1px solid #e0eeea; }
.staff-member-store span { display: block; color: #8a9d98; font-size: 9.5px; }
.staff-member-store b { display: block; margin-top: 2px; color: #2d514a; font-size: 12px; font-weight: 680; }
.staff-member-store small { display: block; margin-top: 2px; color: #9aa9a5; font-size: 9.5px; }
.staff-member-data { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 9px; padding-top: 9px; border-top: 1px dashed #e1ebe8; }
.staff-member-data > div { min-width: 0; }
.staff-member-data span { display: block; color: #99a8a4; font-size: 9px; }
.staff-member-data b { display: block; overflow: hidden; margin-top: 3px; color: #31574f; font-size: 12px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.staff-member-data b em { margin-right: 1px; color: #7a918b; font-size: 9px; font-style: normal; }
.staff-member-data .staff-member-code { color: #4c6c66; font-family: "Cascadia Mono", Consolas, monospace; font-size: 10px; }
.staff-members-empty { display: flex; flex-direction: column; align-items: center; padding: 38px 18px 25px; color: #8da09c; text-align: center; }
.staff-members-empty > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: #0b8d81; background: #e6f7f3; font-size: 18px; font-weight: 750; }
.staff-members-empty b { margin-top: 10px; color: #496b64; font-size: 13px; }
.staff-members-empty small { max-width: 290px; margin-top: 5px; font-size: 10.5px; line-height: 1.65; }
@media (max-width: 560px) {
  .staff-members-hero { padding: 18px; border-radius: 21px; }
  .staff-members-hero h1 { font-size: 20px; }
  .staff-members-metrics { gap: 6px; }
  .staff-members-metrics > div { padding: 9px 8px; }
  .staff-members-metrics strong { font-size: 16px; }
  .staff-member-card { padding: 10px; }
  .staff-member-data { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-member-data > div:last-child { grid-column: 1 / -1; }
}
.me-orders-panel { position: relative; overflow: hidden; }
.me-orders-all { color: #078d82; font-size: 11.5px; font-weight: 650; white-space: nowrap; }
.me-order-status-strip { display: flex; gap: 6px; margin-top: 13px; padding-bottom: 3px; overflow-x: auto; scrollbar-width: none; }
.me-order-status-strip::-webkit-scrollbar { display: none; }
.me-order-status-strip a { flex: 1 0 74px; min-width: 74px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 6px; border-radius: 10px; color: #718a85; background: #f4f9f7; border: 1px solid #e2ece9; text-align: center; }
.me-order-status-strip a span { font-size: 10.5px; white-space: nowrap; }
.me-order-status-strip a b { color: #2d514b; font-size: 15px; line-height: 1; font-variant-numeric: tabular-nums; }
.me-order-status-strip a.is-active { color: #fff; background: linear-gradient(150deg, #0ca99c, #087c75); border-color: #078b82; box-shadow: 0 6px 14px rgba(0,145,135,.18); }
.me-order-status-strip a.is-active b { color: #fff; }
.me-order-list { display: flex; flex-direction: column; gap: 10px; margin-top: 13px; }
.me-order-card { overflow: hidden; padding: 12px; border-radius: 15px; background: linear-gradient(180deg, #fff, #fbfefd); border: 1px solid #e1ece9; box-shadow: 0 7px 18px rgba(17, 72, 64, .055); }
.me-order-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.me-order-number { min-width: 0; }
.me-order-number b { display: block; overflow: hidden; color: #27453f; font-family: "Cascadia Mono", Consolas, monospace; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.me-order-number span { display: block; margin-top: 3px; color: #91a29e; font-size: 10px; }
.me-order-state { flex: none; padding: 4px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 650; white-space: nowrap; }
.me-order-state.is-pending { color: #9a6815; background: #fff4dd; }
.me-order-state.is-paid { color: #087964; background: #e8f7f1; }
.me-order-state.is-shipped { color: #2e69a8; background: #eaf3ff; }
.me-order-state.is-refunding { color: #a56b1d; background: #fff2df; }
.me-order-state.is-refunded { color: #a34f57; background: #fff0f1; }
.me-order-state.is-cancelled, .me-order-state.is-closed { color: #7f8e8b; background: #f0f4f3; }
.me-order-products { display: flex; flex-direction: column; gap: 8px; margin-top: 11px; padding: 9px; border-radius: 11px; background: #f7fbfa; }
.me-order-product { display: flex; align-items: center; gap: 9px; }
.me-order-thumb { width: 44px; height: 44px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 9px; color: #5e837c; background: #e9f2f0; border: 1px solid #dce9e6; font-size: 15px; font-weight: 750; }
.me-order-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.me-order-thumb [hidden] { display: none; }
.me-order-product-copy { min-width: 0; flex: 1; }
.me-order-product-copy b { display: block; overflow: hidden; color: #294941; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.me-order-product-copy span { display: block; margin-top: 3px; color: #8a9d98; font-size: 10.5px; }
.me-order-product em { flex: none; color: #3c5c55; font-size: 11.5px; font-style: normal; font-weight: 650; font-variant-numeric: tabular-nums; }
.me-order-delivery { margin-top: 10px; padding: 9px 10px; border-radius: 9px; background: #fffaf1; border: 1px solid #f2e6ce; }
.me-order-delivery > span { display: block; color: #a0804d; font-size: 9.5px; font-weight: 650; letter-spacing: .04em; }
.me-order-delivery b { display: block; margin-top: 3px; color: #5c5444; font-size: 11px; font-weight: 600; }
.me-order-delivery small { display: block; margin-top: 2px; color: #8f8a7f; font-size: 10.5px; line-height: 1.55; }
.me-order-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 9px; border-top: 1px dashed #e2ebe8; }
.me-order-card-foot > span { color: #849892; font-size: 10.5px; }
.me-order-card-foot > div { flex: none; display: flex; align-items: baseline; gap: 8px; }
.me-order-card-foot small { color: #9aa8a4; font-size: 10px; }
.me-order-card-foot strong { color: #136a5e; font-size: 13px; font-weight: 720; font-variant-numeric: tabular-nums; }
.me-orders-empty { display: flex; flex-direction: column; align-items: center; padding: 28px 15px 20px; color: #8ba09b; text-align: center; }
.me-orders-empty > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #148f83; background: #e7f7f3; font-size: 16px; font-weight: 750; }
.me-orders-empty b { margin-top: 9px; color: #496a63; font-size: 13px; }
.me-orders-empty small { margin-top: 3px; font-size: 10.5px; }
.me-orders-empty a { margin-top: 12px; padding: 8px 14px; border-radius: 999px; color: #fff; background: linear-gradient(180deg, #0aaa9d, #07877f); font-size: 11.5px; font-weight: 650; }
.me-orders-page-card .me-order-list { margin-top: 14px; }
@media (max-width: 560px) {
  .me-order-status-strip a { flex-basis: 68px; min-width: 68px; padding: 7px 5px; }
  .me-order-card { padding: 10px; border-radius: 13px; }
  .me-order-number b { max-width: 205px; font-size: 10px; }
  .me-order-delivery small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .me-order-card-foot { align-items: flex-start; flex-direction: column; gap: 6px; }
  .me-order-card-foot > div { width: 100%; justify-content: space-between; }
}

@media (max-width: 560px) {
  .profile-hero { padding: 18px; border-radius: 22px; }
  .avatar-hero { width: 62px; height: 62px; font-size: 22px; }
  .profile-hero-copy h2 { font-size: 19px; }
  .hero-member-btn { min-height: 32px; padding: 0 10px; font-size: 11px; }
  .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-stats strong { font-size: 18px; }
  .quick-action-grid { gap: 7px; }
  .quick-action { min-height: 70px; padding: 9px; gap: 7px; }
  .quick-icon { width: 28px; height: 28px; }
  .quick-action b { font-size: 12px; }
  .quick-action small { font-size: 9px; }
  .center-card { padding: 15px; border-radius: 16px; }
  .phone-bind-form { flex-direction: column; }
  .premium-action { width: 100%; }
  .bean-purchase-form { flex-wrap: wrap; }
  .bean-purchase-main { flex-basis: calc(100% - 80px); }
}


/* ===== 门店推广二维码落地页 ===== */
.shop-promo-page { max-width: 620px; min-height: calc(100vh - 96px); display: grid; align-items: center; padding-bottom: 40px; }
.shop-promo-card {
  position: relative;
  overflow: hidden;
  padding: 32px 24px 26px;
  border-radius: 26px;
  border: 1px solid rgba(255, 200, 130, .2);
  background:
    radial-gradient(220px 180px at 100% 0%, rgba(255, 197, 61, .17), transparent 72%),
    linear-gradient(155deg, rgba(34, 44, 50, .98), rgba(17, 23, 29, .98));
  box-shadow: 0 22px 54px rgba(0, 0, 0, .36);
  text-align: center;
}
.shop-promo-card:before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.08), transparent 36%); }
.shop-promo-mark { position: relative; display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 22px; color: #fff7df; background: linear-gradient(145deg, #eeb64e, #a97124); box-shadow: 0 14px 30px rgba(87, 57, 13, .34), inset 0 1px 0 rgba(255,255,255,.35); font-size: 24px; font-weight: 800; }
.shop-promo-kicker { position: relative; display: block; color: #e8c982; font-size: 10px; font-weight: 750; letter-spacing: .13em; }
.shop-promo-card h2 { position: relative; margin-top: 9px; color: #fff; font-size: 28px; line-height: 1.25; letter-spacing: -.7px; }
.shop-promo-address { position: relative; margin-top: 9px; color: rgba(224, 236, 239, .62); font-size: 12px; line-height: 1.65; }
.shop-promo-rule { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding: 12px 14px; border-radius: 13px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.075); text-align: left; }
.shop-promo-rule span { color: rgba(226, 233, 236, .58); font-size: 12px; }
.shop-promo-rule b { color: #f5e2b6; font-size: 13px; }
.shop-promo-actions { position: relative; margin-top: 20px; }
.shop-promo-primary { display: block; width: 100%; min-height: 48px; border-radius: 14px; color: #fff; background: linear-gradient(180deg, #e4ad49, #b47724); border: 1px solid rgba(255, 229, 174, .35); box-shadow: 0 9px 20px rgba(99, 60, 8, .3), inset 0 1px 0 rgba(255,255,255,.34); font-size: 15px; font-weight: 750; }
.shop-promo-primary:active { transform: translateY(1px); }
.shop-promo-secondary { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 42px; margin-top: 15px; padding: 0 18px; border-radius: 12px; color: #f3dfb6; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); font-size: 13px; font-weight: 650; }
.shop-promo-foot { position: relative; margin-top: 13px; color: rgba(226, 233, 236, .5); font-size: 11.5px; line-height: 1.7; }
.shop-promo-state { position: relative; margin-top: 20px; padding: 16px; border-radius: 14px; text-align: left; }
.shop-promo-state.is-success { color: #bdf3d5; background: rgba(46, 212, 122, .1); border: 1px solid rgba(46, 212, 122, .24); }
.shop-promo-state.is-warning { color: #ffdca0; background: rgba(255, 197, 61, .1); border: 1px solid rgba(255, 197, 61, .24); }
.shop-promo-state strong { display: block; font-size: 15px; }
.shop-promo-state span { display: block; margin-top: 4px; font-size: 12px; line-height: 1.65; opacity: .76; }


/* 直播间礼物 */
.gift-stage {
  position: relative;
  z-index: 11;
  display: flex;
  width: min(78%, 300px);
  min-height: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
}
.gift-burst {
  width: 100%;
  min-height: 34px;
  padding: 5px 9px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  color: #fff7e8;
  background: linear-gradient(100deg, rgba(9, 48, 44, .94), rgba(9, 91, 82, .9));
  border: 1px solid rgba(255, 224, 150, .3);
  box-shadow: 0 7px 18px rgba(0, 9, 8, .3), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
  animation: gift-burst-in .32s cubic-bezier(.2, 1.3, .35, 1) both;
}
.gift-burst.is-leaving { animation: gift-burst-out .22s ease both; }
@keyframes gift-burst-in {
  from { opacity: 0; transform: translateX(20px) scale(.9); }
  to { opacity: 1; transform: none; }
}
@keyframes gift-burst-out {
  to { opacity: 0; transform: translateY(-5px) scale(.96); }
}
.gift-burst-icon {
  width: 24px; height: 24px; flex: none;
  display: grid; place-items: center;
  border-radius: 8px;
  color: #805711;
  background: linear-gradient(145deg, #fff7d9, #f5ce72);
  box-shadow: 0 3px 9px rgba(0, 0, 0, .2);
  font-size: 15px;
}
.gift-burst-icon img { width: 82%; height: 82%; object-fit: contain; }
.gift-burst-copy { min-width: 0; flex: 1; display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.gift-burst-copy b { overflow: hidden; max-width: 66px; text-overflow: ellipsis; font-size: 10.5px; font-weight: 650; }
.gift-burst-copy span { overflow: hidden; min-width: 0; color: #ffe2a0; text-overflow: ellipsis; font-size: 10.5px; font-weight: 650; }

.chat-gift-btn {
  width: 48px;
  height: 44px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 12px;
  color: #97621a;
  background: linear-gradient(180deg, #fff9e8, #fff0c8);
  border: 1px solid #f0d69b;
  box-shadow: 0 5px 14px rgba(176, 116, 22, .11);
  font-size: 10px;
  font-weight: 650;
}
.chat-gift-btn:active { transform: scale(.96); }
.chat-gift-symbol {
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #f5bb44, #dd8f24);
  font-size: 10.5px;
  font-weight: 700;
}
.chat-item.is-gift {
  background: transparent;
  border-color: transparent;
}
.chat-item.is-gift .chat-avatar {
  color: #835b13;
  background: linear-gradient(145deg, #ffe9b1, #f0bf5b);
}
.chat-gift-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  color: #3c5953;
}
.chat-gift-line .chat-gift-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  overflow: hidden;
  color: #a06914;
  font-size: 15px;
}
.chat-gift-line .chat-gift-icon img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.chat-gift-line strong { color: #b17819; font-weight: 700; }
.chat-gift-line em { margin-left: 4px; color: #7d908c; font-size: 10.5px; font-style: normal; }

.gift-mask {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  align-items: end;
  justify-items: center;
  background: rgba(3, 25, 22, .58);
  backdrop-filter: blur(7px);
  animation: fade-in .2s ease both;
}
.gift-mask[hidden] { display: none; }
.gift-sheet {
  width: min(100%, 760px);
  max-height: 80dvh;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border-radius: 24px 24px 0 0;
  color: #264843;
  background:
    radial-gradient(500px 240px at 100% 0%, rgba(229, 176, 72, .12), transparent 68%),
    linear-gradient(180deg, #fffef9, #f4fbf8);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 -24px 70px rgba(0, 18, 15, .35);
  animation: gift-sheet-in .3s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes gift-sheet-in {
  from { opacity: 0; transform: translateY(46px); }
  to { opacity: 1; transform: none; }
}
.gift-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.gift-sheet-head h2 { color: #173f3a; font-size: 18px; font-weight: 720; }
.gift-sheet-head p { margin-top: 3px; color: #81938f; font-size: 11.5px; }
.gift-close {
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #6e827e;
  background: #eff6f3;
  font-size: 20px;
  line-height: 1;
}
.gift-balance-row {
  margin-top: 14px;
  padding: 10px 13px;
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 12px;
  color: #6e837f;
  background: linear-gradient(100deg, #e9f7f3, #fff5dc);
  border: 1px solid rgba(0, 148, 136, .12);
  font-size: 12px;
}
.gift-balance-row strong { color: #9b6817; font-size: 17px; font-weight: 720; }
.gift-balance-row strong b { font-weight: inherit; }
.gift-balance-side { display: flex; align-items: center; gap: 9px; }
.wallet-balance-actions { display: flex; flex-direction: column; gap: 5px; }
.wallet-bean-trigger {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #8a5a13;
  background: #fff7df;
  border: 1px solid #ebcf91;
  font-size: 11px;
  font-weight: 650;
}
.wallet-bean-trigger:active { transform: scale(.97); }
.wallet-recharge-trigger {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #08ac9e, #008b83);
  box-shadow: 0 4px 10px rgba(0, 145, 135, .16);
  font-size: 12px;
  font-weight: 650;
}
.wallet-recharge-trigger:active { transform: scale(.97); }
.wallet-recharge-trigger[hidden], .wallet-recharge-box[hidden] { display: none; }
.bean-purchase-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #31534e;
  font-size: 12px;
  font-weight: 650;
}
.bean-purchase-row input {
  width: 132px;
  height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid #dce9e6;
  background: #fbfefd;
  color: #2c504a;
  font-size: 13px;
  outline: none;
}
.bean-purchase-row input:focus { border-color: #55cbbb; box-shadow: 0 0 0 3px rgba(0, 154, 145, .08); }
.wallet-recharge-box {
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e3eeeb;
  box-shadow: 0 8px 22px rgba(12, 70, 62, .06);
}
.wallet-recharge-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wallet-recharge-head span { color: #31534e; font-size: 12.5px; font-weight: 650; }
.wallet-recharge-head small { color: #91a39f; font-size: 10.5px; }
.wallet-recharge-amounts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.wallet-recharge-amount {
  height: 36px;
  border-radius: 9px;
  color: #42625d;
  background: #f4faf8;
  border: 1px solid #dfece8;
  font-size: 12px;
  font-weight: 650;
}
.wallet-recharge-amount.is-selected { color: #007e75; background: #e2f7f2; border-color: #7dd5c7; }
.wallet-recharge-custom { margin-top: 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wallet-recharge-custom span { flex: none; color: #778d89; font-size: 11.5px; }
.wallet-recharge-custom input { width: 132px; height: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid #dce9e6; background: #fbfefd; color: #2c504a; font-size: 13px; outline: none; }
.wallet-recharge-custom input:focus { border-color: #55cbbb; box-shadow: 0 0 0 3px rgba(0, 154, 145, .08); }
.wallet-recharge-pay-row { margin-top: 11px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wallet-recharge-pay-row span { color: #7c918d; font-size: 11.5px; }
.wallet-recharge-pay-row span b { color: #ad7416; font-size: 16px; }
.wallet-recharge-pay {
  min-width: 124px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #09ad9f, #008981);
  box-shadow: 0 7px 17px rgba(0, 145, 135, .2);
  font-size: 13.5px;
  font-weight: 700;
}
.wallet-recharge-pay:disabled { opacity: .55; box-shadow: none; }
.wallet-recharge-status { margin-top: 7px; color: #8da09c; font-size: 10.5px; line-height: 1.55; }
.wallet-recharge-status.is-success { color: #078d68; }
.wallet-recharge-status.is-error { color: #c84d53; }
.gift-grid {
  min-height: 132px;
  max-height: 249px;
  margin-top: 12px;
  padding: 2px 2px 4px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 9px;
  overflow-x: hidden;
  overflow-y: auto;
}
.gift-card {
  min-width: 0;
  width: 100%;
  min-height: 116px;
  padding: 8px 5px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 14px;
  color: #31534e;
  background: rgba(255, 255, 255, .86);
  border: 1px solid #e2ece9;
  box-shadow: 0 5px 16px rgba(16, 73, 65, .04);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.gift-card:active { transform: scale(.97); }
.gift-card.is-selected {
  background: linear-gradient(180deg, #fff9e8, #fff2ce);
  border-color: #e8bd63;
  box-shadow: 0 7px 20px rgba(192, 125, 23, .14);
}
.gift-card-icon {
  width: 54px; height: 54px;
  flex: none;
  display: grid; place-items: center;
  overflow: visible;
  font-size: 34px;
  line-height: 1;
}
.gift-card-icon img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; }
.gift-card-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #334f4b; font-size: 11.5px; font-weight: 600; }
.gift-card-price { color: #af7920; font-size: 10.5px; font-weight: 650; }
.gift-empty { grid-column: 1 / -1; min-height: 124px; display: grid; place-items: center; color: #93a4a1; font-size: 12.5px; }
.gift-selected {
  margin-top: 10px;
  padding: 10px 11px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .76);
  border: 1px solid #e1ece9;
}
.gift-selected-main { min-width: 0; display: flex; align-items: center; gap: 9px; }
.gift-selected-icon {
  width: 48px; height: 48px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: #f5fbf8;
  font-size: 30px;
}
.gift-selected-icon img { display: block; width: 92%; height: 92%; object-fit: contain; object-position: center; }
.gift-selected-main div { min-width: 0; }
.gift-selected-main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #22453f; font-size: 13.5px; }
.gift-selected-main small { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8a9b97; font-size: 10.5px; }
.gift-stepper { flex: none; display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 10px; background: #eff6f3; }
.gift-stepper button {
  width: 27px; height: 27px;
  display: grid; place-items: center;
  border-radius: 7px;
  color: #28665d;
  background: #fff;
  font-size: 17px;
  line-height: 1;
}
.gift-stepper button:disabled { color: #b9c6c3; }
.gift-stepper b { min-width: 27px; color: #244d47; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.gift-send-row { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.gift-send-row > span { color: #7b8f8b; font-size: 12px; }
.gift-send-row > span b { margin-left: 4px; color: #ad7416; font-size: 17px; }
.gift-send {
  min-width: 132px; height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f0b53c, #d78a1e);
  box-shadow: 0 8px 20px rgba(194, 123, 20, .25);
  font-size: 14px;
  font-weight: 700;
}
.gift-send:disabled { opacity: .48; box-shadow: none; }
.gift-hint { margin-top: 8px; color: #899b97; font-size: 10.5px; line-height: 1.55; }

@media (max-width: 390px) {
  .gift-sheet { padding-left: 14px; padding-right: 14px; }
  .gift-grid { gap: 8px; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
  .gift-card { min-height: 112px; }
  .gift-card-icon { width: 50px; height: 50px; }
  .gift-send { min-width: 118px; padding: 0 17px; }
  .bean-recharge-custom { grid-template-columns: 1fr 1fr; }
  .bean-recharge-custom label,
  .bean-recharge-custom input { grid-column: span 1; }
  .bean-recharge-custom button { width: 100%; }
}

.gift-record-name { display: flex; align-items: center; gap: 5px; }
.profile-gift-icon { width: 18px; height: 18px; object-fit: contain; }
.profile-gift-emoji { font-size: 15px; line-height: 1; }


/* 豆账户与钱包余额充值 */
.gift-balance-copy { display: flex; flex-direction: column; gap: 3px; }
.gift-balance-copy span { color: #6e837f; font-size: 12px; }
.gift-balance-copy small { color: #9a721f; font-size: 10.5px; }
.gift-balance-amount { text-align: right; }
.gift-balance-amount strong { color: #9b6817; font-size: 19px; font-weight: 720; }
.gift-balance-amount strong em { margin-left: 2px; color: #a8781f; font-size: 11px; font-style: normal; font-weight: 600; }
.gift-balance-amount small { display: block; margin-top: 1px; color: #8b9c98; font-size: 10px; }
.wallet-recharge-packages {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.wallet-recharge-package {
  position: relative;
  min-height: 55px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  border-radius: 12px;
  color: #674d1d;
  background: #fffdf7;
  border: 1px solid #eadcc0;
  text-align: left;
}
.wallet-recharge-package.is-selected {
  background: linear-gradient(180deg, #fff7dd, #ffedbf);
  border-color: #dcae4d;
  box-shadow: 0 5px 14px rgba(182, 112, 15, .12);
}
.wallet-recharge-package b { color: #8f5c10; font-size: 16px; font-weight: 730; }
.wallet-recharge-package span { color: #7f8e86; font-size: 10.5px; }
.wallet-recharge-package i {
  position: absolute;
  top: -6px;
  right: 7px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #fff;
  background: #dc6f38;
  font-size: 9px;
  font-style: normal;
  font-weight: 650;
}
.bean-recharge-custom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e6ddd0;
  color: #6f6659;
  font-size: 11px;
}
.bean-recharge-custom label { white-space: nowrap; font-weight: 650; }
.bean-recharge-custom input {
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  border-radius: 9px;
  border: 1px solid #e0d5c2;
  background: #fffdf8;
  color: #62491d;
  font-size: 13px;
  outline: none;
}
.bean-recharge-custom input:focus { border-color: #d7a949; box-shadow: 0 0 0 3px rgba(191, 130, 24, .09); }
.bean-recharge-custom span { white-space: nowrap; }
.bean-recharge-custom span b { color: #a06a13; font-size: 13px; }
.bean-recharge-custom button {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #f0b53c, #d78a1e);
  font-size: 12px;
  font-weight: 680;
}
.bean-recharge-custom button:disabled { opacity: .5; }
.wallet-recharge-loading {
  grid-column: 1 / -1;
  min-height: 54px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #8c9a95;
  background: #f7faf8;
  border: 1px dashed #dbe7e2;
  font-size: 11.5px;
}
.wallet-recharge-pay-row span { display: flex; flex-direction: column; gap: 2px; }
.wallet-recharge-pay-row span small { color: #92701f; font-size: 10.5px; }
.gift-send-row span em {
  margin-left: 6px;
  color: #8d9c98;
  font-size: 11px;
  font-style: normal;
}

/* 直播间播放保护和动态水印 */
.playback-watermark { position: absolute; inset: 0; z-index: 5; overflow: hidden; pointer-events: none; user-select: none; }
.playback-watermark-item { position: absolute; color: rgba(230, 255, 250, .28); font-family: Consolas, "Cascadia Mono", monospace; font-size: 10px; line-height: 1.2; letter-spacing: .02em; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); transition: left .8s ease, top .8s ease, transform .8s ease; }
body.is-playback-protected .player-wrap,
body.is-playback-protected .player-wrap video { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
@media (max-width: 520px) {
  .playback-watermark-item { max-width: 48%; overflow: hidden; font-size: 8.5px; text-overflow: ellipsis; }
}

/* ===== 个人中心模块总览与独立详情页 ===== */
.me-overview { padding-top: 4px; }
.me-profile-hero { padding: 18px 20px; border-radius: 24px; }
.me-profile-hero .avatar-hero { width: 64px; height: 64px; font-size: 23px; }
.me-profile-hero .profile-hero-copy h2 { font-size: 20px; }
.personal-modules { margin-top: 20px; }
.personal-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 0 3px 11px; }
.personal-section-head span { color: #839a96; font-size: 9.5px; font-weight: 700; letter-spacing: .13em; }
.personal-section-head h2 { margin-top: 2px; color: #173f3a; font-size: 19px; font-weight: 730; letter-spacing: -.35px; }
.personal-section-head p { padding-bottom: 2px; color: #869b97; font-size: 11.5px; }
.personal-module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.personal-module {
  position: relative;
  min-width: 0;
  min-height: 92px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f5faf8);
  border: 1px solid rgba(14, 96, 87, .12);
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 #d2dfdc, 0 10px 24px rgba(10, 63, 57, .06);
  transition: transform .14s ease, box-shadow .14s ease;
}
.personal-module::after {
  content: "";
  position: absolute;
  width: 74px;
  height: 74px;
  right: -35px;
  bottom: -38px;
  border-radius: 50%;
  background: var(--module-glow, rgba(0, 154, 145, .08));
  pointer-events: none;
}
.personal-module:active { transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(13, 69, 62, .08), 0 1px 0 #d2dfdc; }
.personal-module-icon {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--module-ink, #087e74);
  background: var(--module-bg, #e4f7f2);
  font-size: 12px;
  font-weight: 750;
}
.personal-module-copy { position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.personal-module-title { display: block; max-width: 100%; overflow: hidden; color: #31514c; font-size: 11.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.personal-module-copy strong { display: block; max-width: 100%; margin-top: 1px; overflow: hidden; color: #153e38; font-size: 18px; line-height: 1.25; font-weight: 760; letter-spacing: -.3px; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.personal-module-copy strong em { margin-left: 2px; color: #839791; font-size: 9.5px; font-style: normal; font-weight: 550; letter-spacing: 0; }
.personal-module-copy strong.personal-module-text-value { color: #2f5b54; font-size: 15px; letter-spacing: 0; }
.personal-module-copy small { display: block; max-width: 100%; margin-top: 2px; overflow: hidden; color: #8da09c; font-size: 9.5px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.personal-module-arrow { position: relative; z-index: 1; align-self: center; color: #91a5a1; font-size: 17px; line-height: 1; }
.personal-module-wide { grid-column: 1 / -1; min-height: 78px; }
.personal-module--wallet { --module-bg: #fff2d4; --module-ink: #8b5e0f; --module-glow: rgba(203, 145, 27, .09); }
.personal-module--beans { --module-bg: #e5f7f1; --module-ink: #087d6e; --module-glow: rgba(0, 154, 145, .09); }
.personal-module--coupons { --module-bg: #fff0ed; --module-ink: #a6534e; --module-glow: rgba(205, 104, 94, .09); }
.personal-module--redpackets { --module-bg: #ffebe6; --module-ink: #b44f35; --module-glow: rgba(210, 83, 45, .09); }
.personal-module--phone { --module-bg: #edf3ff; --module-ink: #4d6ea8; --module-glow: rgba(81, 116, 178, .09); }
.personal-module--gifts { --module-bg: #fff0f5; --module-ink: #ab5576; --module-glow: rgba(190, 84, 126, .09); }
.personal-module--history { --module-bg: #eef6f2; --module-ink: #477b6e; --module-glow: rgba(67, 131, 114, .09); }

.personal-detail-top { align-items: center; padding-bottom: 12px; }
.personal-back-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px 0 9px;
  border-radius: 999px;
  color: #087e74;
  background: #e6f7f3;
  border: 1px solid rgba(0, 154, 145, .16);
  font-size: 12px;
  font-weight: 650;
}
.personal-back-link span { margin-top: -2px; font-size: 20px; line-height: 1; }
.personal-detail-page { padding-top: 2px; }
.personal-detail-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  border-radius: 24px;
  color: #f3fffc;
  background:
    radial-gradient(360px 190px at 96% -18%, rgba(255, 221, 146, .2), transparent 68%),
    radial-gradient(320px 210px at -4% 120%, rgba(71, 222, 198, .18), transparent 68%),
    linear-gradient(138deg, #082d29, #0a514b 60%, #08786f);
  box-shadow: 0 20px 44px rgba(5, 48, 44, .23), inset 0 1px 0 rgba(255,255,255,.11);
}
.detail-orbit { position: absolute; z-index: -1; border: 1px solid rgba(164, 241, 226, .12); border-radius: 50%; pointer-events: none; }
.detail-orbit-a { width: 210px; height: 210px; right: -72px; top: -118px; }
.detail-orbit-b { width: 130px; height: 130px; left: -42px; bottom: -88px; }
.personal-detail-copy { position: relative; z-index: 1; min-width: 0; display: flex; align-items: flex-start; gap: 14px; }
.personal-detail-icon {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff8e2;
  background: linear-gradient(145deg, rgba(244, 201, 109, .3), rgba(255, 255, 255, .08));
  border: 1px solid rgba(255, 236, 184, .2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 9px 20px rgba(0, 22, 20, .18);
  font-size: 16px;
  font-weight: 760;
}
.personal-detail-eyebrow { display: block; color: #9de7dc; font-size: 9.5px; font-weight: 700; letter-spacing: .13em; }
.personal-detail-copy h1 { margin-top: 4px; color: #fff; font-size: 25px; font-weight: 760; line-height: 1.2; letter-spacing: -.65px; }
.personal-detail-copy p { max-width: 390px; margin-top: 7px; color: rgba(218, 249, 242, .66); font-size: 11.5px; line-height: 1.6; }
.personal-detail-value { position: relative; z-index: 1; flex: none; min-width: 108px; text-align: right; }
.personal-detail-value > span { display: block; color: rgba(208, 247, 239, .58); font-size: 9.5px; white-space: nowrap; }
.personal-detail-value strong { display: block; margin-top: 2px; color: #fff5d5; font-size: 26px; line-height: 1.15; font-weight: 780; letter-spacing: -.8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.personal-detail-value strong em { margin-left: 2px; color: rgba(244, 232, 197, .66); font-size: 10.5px; font-style: normal; font-weight: 550; letter-spacing: 0; }
.personal-detail-value strong.personal-detail-text-value { font-size: 17px; letter-spacing: 0; }
.detail-record-card { margin-top: 14px; }
.detail-record-card .center-card-head { padding-bottom: 13px; }
.detail-bottom-back {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  border-radius: 12px;
  color: #557770;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(14, 96, 87, .12);
  box-shadow: inset 0 1px 0 #fff, 0 4px 14px rgba(10,63,57,.04);
  font-size: 12.5px;
  font-weight: 620;
}

@media (hover: hover) {
  .personal-module:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 #fff, 0 4px 0 #d2dfdc, 0 15px 28px rgba(10, 63, 57, .09); }
}
@media (max-width: 560px) {
  .personal-section-head { padding-bottom: 9px; }
  .personal-section-head p { display: none; }
  .personal-module-grid { gap: 8px; }
  .personal-module { min-height: 88px; grid-template-columns: 34px minmax(0, 1fr) 12px; gap: 8px; padding: 10px; border-radius: 14px; }
  .personal-module-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 11px; }
  .personal-module-copy strong { font-size: 16px; }
  .personal-module-copy strong.personal-module-text-value { font-size: 14px; }
  .personal-module-wide { min-height: 74px; }
  .personal-detail-hero { flex-direction: column; align-items: stretch; gap: 16px; padding: 19px; border-radius: 21px; }
  .personal-detail-copy { gap: 11px; }
  .personal-detail-icon { width: 42px; height: 42px; border-radius: 12px; font-size: 14px; }
  .personal-detail-copy h1 { font-size: 22px; }
  .personal-detail-copy p { margin-top: 5px; font-size: 10.8px; }
  .personal-detail-value { min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 13px; border-top: 1px solid rgba(197, 241, 232, .13); text-align: left; }
  .personal-detail-value strong { font-size: 23px; }
  .personal-detail-value strong.personal-detail-text-value { font-size: 16px; }
}
@media (max-width: 380px) {
  .personal-module { grid-template-columns: 31px minmax(0, 1fr) 10px; gap: 7px; padding: 9px; }
  .personal-module-icon { width: 31px; height: 31px; }
  .personal-module-title { font-size: 10.8px; }
  .personal-module-copy strong { font-size: 15px; }
  .personal-module-copy small { font-size: 9px; }
  .personal-module-arrow { font-size: 15px; }
}

/* ===== 会员中心：会员通行证与方案卡片 ===== */
.member-page-head {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top)) 18px 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}
.member-page-kicker { color: #7f9893; font-size: 9.5px; font-weight: 700; letter-spacing: .15em; }
.member-page-head h1 { margin-top: 2px; color: #163c38; font-size: 24px; font-weight: 750; letter-spacing: -.6px; }
.member-page { width: min(760px, 100%); max-width: 760px; padding-top: 5px; }

.member-pass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 22px;
  border-radius: 26px;
  color: #f4fffc;
  background:
    radial-gradient(430px 230px at 100% -20%, rgba(244, 204, 121, .23), transparent 64%),
    radial-gradient(360px 220px at -4% 120%, rgba(45, 201, 179, .2), transparent 68%),
    linear-gradient(138deg, #071f1c, #083c37 56%, #08665e);
  border: 1px solid rgba(217, 189, 126, .25);
  box-shadow: 0 24px 52px rgba(5, 43, 39, .25), inset 0 1px 0 rgba(255,255,255,.12);
}
.member-pass::before {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: -1;
  border-radius: 19px;
  border: 1px solid rgba(234, 206, 145, .15);
  pointer-events: none;
}
.member-pass::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -70px;
  z-index: -1;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 1px solid rgba(234, 206, 145, .1);
  box-shadow: 0 0 0 28px rgba(234, 206, 145, .025), 0 0 0 57px rgba(234, 206, 145, .018);
  pointer-events: none;
}
.member-pass-orbit { position: absolute; z-index: -1; border: 1px solid rgba(148, 235, 219, .1); border-radius: 50%; pointer-events: none; }
.member-pass-orbit-a { width: 220px; height: 220px; right: -104px; top: -140px; }
.member-pass-orbit-b { width: 140px; height: 140px; left: -74px; bottom: -102px; }
.member-pass-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.member-pass-brand { color: #b9ded7; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.member-pass-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  color: rgba(219, 243, 237, .68);
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(183, 232, 223, .13);
  font-size: 10px;
  font-weight: 620;
}
.member-pass-state.is-active { color: #f4d791; background: rgba(229, 185, 80, .11); border-color: rgba(231, 192, 102, .25); }
.member-pass-state i { width: 5px; height: 5px; border-radius: 50%; background: #45d6b6; box-shadow: 0 0 0 4px rgba(69, 214, 182, .1); }
.member-pass-body { position: relative; z-index: 1; display: flex; align-items: center; gap: 15px; margin-top: 22px; }
.member-pass-seal {
  width: 60px;
  height: 60px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #392506;
  background: linear-gradient(145deg, #fff1bf, #dba842);
  border: 1px solid rgba(255, 242, 196, .72);
  box-shadow: inset 0 1px 0 #fffbe7, 0 3px 0 #9d7124, 0 12px 26px rgba(0, 19, 17, .25);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
}
.member-pass-copy { min-width: 0; }
.member-pass-copy > span { color: rgba(194, 236, 228, .58); font-size: 9.5px; font-weight: 650; letter-spacing: .06em; }
.member-pass-copy h2 { margin-top: 3px; color: #fff; font-size: 27px; font-weight: 760; line-height: 1.16; letter-spacing: -.7px; }
.member-pass-copy p { margin-top: 5px; overflow: hidden; color: rgba(210, 242, 235, .62); font-size: 11px; line-height: 1.55; text-overflow: ellipsis; }
.member-pass-foot { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 23px; padding-top: 17px; border-top: 1px solid rgba(181, 229, 220, .13); }
.member-pass-metrics { display: flex; align-items: flex-end; gap: 26px; }
.member-pass-metrics span { display: block; color: rgba(199, 235, 228, .52); font-size: 9.5px; }
.member-pass-metrics strong { display: block; margin-top: 2px; color: #f5d88f; font-size: 19px; line-height: 1.2; font-weight: 740; letter-spacing: -.35px; font-variant-numeric: tabular-nums; }
.member-pass-action {
  flex: none;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 9px;
  color: #5e4310;
  background: linear-gradient(180deg, #fff2c7, #e6b854);
  border: 1px solid #f8dfa0;
  box-shadow: inset 0 1px 0 #fffbe5, 0 3px 0 #a47727, 0 8px 18px rgba(0, 24, 21, .21);
  font-size: 11.5px;
  font-weight: 720;
}
.member-pass-action:active { transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(92, 64, 14, .2), 0 1px 0 #a47727; }

.member-plans, .member-notes { margin-top: 24px; }
.member-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 0 3px 11px; }
.member-section-head > div > span { color: #839a96; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.member-section-head h2 { margin-top: 2px; color: #173f3a; font-size: 19px; font-weight: 730; letter-spacing: -.35px; }
.member-section-head > p { padding-bottom: 2px; color: #869b97; font-size: 11px; }
.member-plan-grid { display: grid; grid-template-columns: 1fr; gap: 9px; }
.member-plan-card {
  position: relative;
  overflow: hidden;
  padding: 15px 16px;
  border-radius: 17px;
  background: linear-gradient(180deg, #fff, #f7fbfa);
  border: 1px solid rgba(14, 96, 87, .11);
  box-shadow: inset 0 1px 0 #fff, 0 8px 22px rgba(10, 63, 57, .055);
}
.member-plan-card::before { content: ""; position: absolute; top: 0; left: 16px; width: 42px; height: 2px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, #dfb354, rgba(223, 179, 84, 0)); }
.member-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.member-plan-head h3 { color: #173f3a; font-size: 14.5px; font-weight: 700; }
.member-plan-mult { flex: none; padding: 2px 7px; border-radius: 999px; color: #98701e; background: #fff6df; border: 1px solid rgba(202, 157, 57, .22); font-size: 9px; font-weight: 650; white-space: nowrap; }
.member-plan-price { display: flex; align-items: baseline; gap: 2px; margin-top: 5px; color: #b27b16; }
.member-plan-price span { font-size: 12px; font-weight: 650; }
.member-plan-price strong { font-size: 25px; line-height: 1.2; font-weight: 790; letter-spacing: -.65px; font-variant-numeric: tabular-nums; }
.member-plan-price em { margin-left: 3px; color: #8b9c98; font-size: 10px; font-style: normal; }
.member-plan-benefits { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; padding-top: 9px; border-top: 1px solid #eaf1ef; }
.member-plan-benefits li { padding: 2px 7px; border-radius: 999px; color: #708a85; background: #f2f7f5; font-size: 9.5px; line-height: 1.5; }
.member-empty { grid-column: 1 / -1; padding: 34px 20px; border-radius: 18px; background: #fff; border: 1px dashed rgba(14, 96, 87, .2); text-align: center; }
.member-empty span { color: #b08a3c; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.member-empty h3 { margin-top: 5px; color: #254b45; font-size: 16px; font-weight: 700; }
.member-empty p { margin-top: 4px; color: #879b97; font-size: 11.5px; }

.member-redeem-panel {
  scroll-margin-top: 18px;
  margin-top: 24px;
  padding: 19px;
  border-radius: 20px;
  background:
    radial-gradient(280px 160px at 104% -12%, rgba(222, 178, 77, .12), transparent 68%),
    linear-gradient(140deg, #fffdf8, #f3faf7);
  border: 1px solid rgba(190, 148, 61, .22);
  box-shadow: inset 0 1px 0 #fff, 0 12px 30px rgba(10, 63, 57, .065);
}
.member-redeem-copy > span { color: #ad8433; font-size: 8.5px; font-weight: 700; letter-spacing: .14em; }
.member-redeem-copy h2 { margin-top: 3px; color: #173f3a; font-size: 18px; font-weight: 730; letter-spacing: -.3px; }
.member-redeem-copy p { margin-top: 4px; color: #7f9490; font-size: 11px; line-height: 1.55; }
.member-redeem-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 13px; }
.member-redeem-form input {
  min-width: 0;
  height: 45px;
  padding: 0 13px;
  border-radius: 11px;
  color: #244b45;
  background: #fff;
  border: 1px solid #dbe7e3;
  box-shadow: inset 0 1px 2px rgba(9, 61, 54, .025);
  font-size: 13px;
  outline: none;
}
.member-redeem-form input:focus { border-color: #c9a653; box-shadow: 0 0 0 3px rgba(192, 148, 55, .09); }
.member-redeem-form button {
  height: 45px;
  padding: 0 15px;
  border-radius: 11px;
  color: #fffdf5;
  background: linear-gradient(180deg, #164e47, #0a3733);
  border: 1px solid #0a3733;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 3px 0 #062622, 0 7px 16px rgba(7, 48, 43, .16);
  font-size: 12px;
  font-weight: 680;
  white-space: nowrap;
}
.member-redeem-form button span { margin-left: 4px; color: #ebc873; font-size: 14px; }
.member-redeem-form button:active { transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(0, 24, 21, .22), 0 1px 0 #062622; }
.member-redeem-hint { margin-top: 8px; color: #93a39f; font-size: 9.5px; }
.member-login-callout { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 13px; border-radius: 11px; color: #6f8782; background: rgba(255,255,255,.82); border: 1px solid #e2ebe8; font-size: 11.5px; }
.member-login-callout a { flex: none; color: #0b7e72; font-weight: 700; }

.member-note-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.member-note-card { min-width: 0; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .82); border: 1px solid rgba(14, 96, 87, .1); box-shadow: inset 0 1px 0 #fff, 0 7px 20px rgba(10, 63, 57, .04); }
.member-note-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #8d681e; background: #fff4d8; border: 1px solid rgba(197, 150, 49, .14); font-size: 9px; font-weight: 700; }
.member-note-card h3 { margin-top: 9px; color: #244a44; font-size: 12.5px; font-weight: 680; }
.member-note-card p { margin-top: 3px; color: #7e938f; font-size: 10.5px; line-height: 1.6; }

@media (min-width: 640px) {
  .member-plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .member-plan-card { display: flex; flex-direction: column; }
  .member-plan-benefits { margin-top: auto; padding-top: 10px; }
  .member-plan-price { margin-bottom: 11px; }
  .member-note-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .member-page-head { padding-left: 16px; padding-right: 16px; }
  .member-pass { padding: 19px; border-radius: 22px; }
  .member-pass::before { inset: 8px; border-radius: 16px; }
  .member-pass-body { gap: 12px; margin-top: 19px; }
  .member-pass-seal { width: 54px; height: 54px; border-radius: 16px; font-size: 12px; }
  .member-pass-copy h2 { font-size: 23px; }
  .member-pass-copy p { font-size: 10.5px; }
  .member-pass-foot { margin-top: 19px; padding-top: 14px; }
  .member-pass-metrics { gap: 21px; }
  .member-pass-metrics strong { font-size: 17px; }
  .member-pass-action { min-height: 34px; padding: 0 12px; font-size: 11px; }
  .member-section-head > p { display: none; }
  .member-section-head { padding-bottom: 9px; }
  .member-redeem-panel { padding: 16px; border-radius: 18px; }
  .member-redeem-form { grid-template-columns: minmax(0, 1fr) 96px; }
  .member-redeem-form input, .member-redeem-form button { height: 43px; }
  .member-redeem-form button { padding: 0 8px; }
  .member-note-card { padding: 12px; border-radius: 14px; }
}
@media (max-width: 360px) {
  .member-pass-metrics { gap: 16px; }
  .member-pass-action { padding: 0 10px; }
  .member-redeem-form { grid-template-columns: 1fr; }
  .member-redeem-form button { width: 100%; }
  .member-note-grid { gap: 7px; }
  .member-note-card { padding: 11px; }
}
.live-commerce-mask { position: fixed; z-index: 90; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 12px max(10px, env(safe-area-inset-right)) calc(62px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); background: transparent; pointer-events: none; animation: live-commerce-fade .2s ease both; }
.live-commerce-mask[hidden] { display: none; }
.live-commerce-sheet { position: relative; width: min(100%, 520px); overflow: visible; padding: 10px 10px 8px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 16px; color: #1c2725; background: #fff; box-shadow: 0 16px 42px rgba(0, 0, 0, .24); animation: live-commerce-in .28s cubic-bezier(.2, .9, .3, 1) both; pointer-events: auto; }
.live-commerce-glow { position: absolute; top: -90px; right: -40px; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(closest-side, rgba(35, 205, 180, .22), transparent); pointer-events: none; }
.live-commerce-close { position: absolute; z-index: 3; top: 8px; right: 8px; display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(0, 0, 0, .10); border-radius: 50%; color: #5e6865; background: rgba(255, 255, 255, .94); box-shadow: 0 3px 10px rgba(0, 0, 0, .13); font-size: 18px; line-height: 1; }
.live-commerce-heading { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 30px 7px 2px; }
.live-commerce-heading > span { display: inline-flex; align-items: center; gap: 5px; color: #e44137; font-size: 11px; font-weight: 800; }
.live-commerce-heading > span i { width: 6px; height: 6px; border-radius: 50%; background: #ff5448; box-shadow: 0 0 0 3px rgba(255, 84, 72, .12); animation: live-commerce-dot 1.7s infinite; }
.live-commerce-heading > span b { color: #e44137; font-size: 11px; }
.live-commerce-heading small { overflow: hidden; color: #9a9f9d; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.live-commerce-product { position: relative; z-index: 1; display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 10px; padding: 0; border: 0; background: transparent; }
.live-commerce-cover { position: relative; display: grid; place-items: center; width: 94px; height: 94px; overflow: hidden; border-radius: 10px; color: #fff; background: radial-gradient(circle at 72% 22%, rgba(255, 238, 209, .38), transparent 45%), linear-gradient(145deg, #986327, #4e2d17); font-size: 28px; font-weight: 800; }
.live-commerce-cover img { width: 100%; height: 100%; object-fit: cover; }
.live-commerce-copy { display: flex; min-width: 0; flex-direction: column; justify-content: center; }
.live-commerce-copy h2 { display: -webkit-box; overflow: hidden; color: #202422; font-size: 15px; font-weight: 700; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.live-commerce-copy p { overflow: hidden; margin-top: 3px; color: #8c9190; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.live-commerce-price { display: flex; min-width: 0; flex: 1 1 auto; flex-wrap: wrap; align-items: baseline; gap: 0 5px; }
.live-commerce-price strong { color: #ee4b3e; font-size: 20px; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.live-commerce-price del { color: #adb1af; font-size: 8.5px; white-space: nowrap; }
.live-commerce-meta { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 4px; color: #7a8380; font-size: 9px; }
.live-commerce-meta > span { padding: 2px 5px; border-radius: 4px; background: #f3f4f3; }
.live-commerce-coupon { color: #cc5d26 !important; background: #fff1e7 !important; }
.live-commerce-hot { position: absolute; top: 0; left: 0; padding: 3px 7px; border-radius: 10px 0 9px 0; color: #fff; background: linear-gradient(100deg, #ff7560, #ed4539); font-size: 8px; font-style: normal; font-weight: 750; }
.live-commerce-buy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px; margin-top: 5px; }
.live-commerce-actions { position: relative; z-index: 1; display: grid; grid-template-columns: .8fr 1.2fr; gap: 9px; margin-top: 14px; }
.live-commerce-actions button { height: 45px; border: 0; border-radius: 13px; font-size: 14px; font-weight: 750; }
.live-commerce-later { color: #5f7772; background: #e8f2ef; }
.live-commerce-buy { flex: none; min-width: 44px; max-width: 58px; height: 26px; padding: 0 8px; overflow: hidden; border: 1px solid #ff756d; border-radius: 5px; color: #e94c43; background: #fff3ef; font-size: 11px; font-weight: 720; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.live-commerce-buy:disabled { color: #7d8c89; background: #dce6e3; box-shadow: none; }
.live-commerce-note { margin-top: 6px; color: #a3a8a6; font-size: 8.5px; text-align: center; }
@keyframes live-commerce-fade { from { opacity: 0; } }
@keyframes live-commerce-in { from { opacity: 0; transform: translateY(34px) scale(.98); } }
@keyframes live-commerce-dot { 50% { box-shadow: 0 0 0 8px rgba(13, 189, 168, 0); } }
@media (max-width: 420px) { .live-commerce-sheet { padding: 18px 14px 12px; border-radius: 22px 22px 14px 14px; } .live-commerce-product { grid-template-columns: 88px minmax(0, 1fr); gap: 11px; } .live-commerce-cover { width: 88px; height: 88px; } .live-commerce-heading small { display: none; } }
@media (orientation: landscape) and (max-height: 520px) { .live-commerce-mask { padding-top: 8px; padding-bottom: 8px; } .live-commerce-sheet { max-height: calc(100dvh - 16px); overflow-y: auto; padding-top: 14px; } .live-commerce-product { grid-template-columns: 76px minmax(0, 1fr); margin-top: 8px; } .live-commerce-cover { width: 76px; height: 76px; } }
.live-checkout-mask { position: fixed; z-index: 96; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 14px max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); background: rgba(3, 14, 12, .58); backdrop-filter: blur(7px); }
.live-checkout-mask[hidden] { display: none; }
.live-checkout-sheet { width: min(100%, 520px); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 17px 16px 14px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 20px 20px 15px 15px; background: #fffdfb; box-shadow: 0 24px 65px rgba(0, 0, 0, .35); animation: live-commerce-in .28s cubic-bezier(.2, .9, .3, 1) both; }
.live-checkout-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.live-checkout-head span { color: #ad6e31; font-size: 9px; font-weight: 750; letter-spacing: .12em; }
.live-checkout-head h2 { margin-top: 3px; color: #1d2f2b; font-size: 18px; font-weight: 760; }
.live-checkout-head button { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; color: #75827f; background: #edf2f0; font-size: 21px; }
.live-checkout-address { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin-top: 14px; padding: 12px; border: 1px solid #e6ece9; border-radius: 13px; background: #f9fbfa; }
.live-checkout-address label { grid-column: span 3; display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.live-checkout-address label.live-checkout-region-field { grid-column: span 2; }
.live-checkout-address label.is-full { grid-column: 1 / -1; }
.live-checkout-address label > span { color: #687975; font-size: 10px; font-weight: 650; }
.live-checkout-address input, .live-checkout-address textarea, .live-checkout-address select { width: 100%; padding: 9px 10px; border: 1px solid #dfe8e4; border-radius: 9px; color: #263a35; background: #fff; font: inherit; font-size: 12px; outline: none; resize: none; }
.live-checkout-address select { height: 36px; padding-top: 0; padding-bottom: 0; }
.live-checkout-address select:disabled { color: #a7b1ae; background: #f2f5f4; }
.live-checkout-region-fallback[hidden] { display: none; }
.live-checkout-region-fallback-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.live-checkout-address input:focus, .live-checkout-address textarea:focus, .live-checkout-address select:focus { border-color: #e98862; box-shadow: 0 0 0 3px rgba(233, 136, 98, .10); }
.live-checkout-section-title { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; color: #4c625c; font-size: 11px; font-weight: 700; }
.live-checkout-section-title button { border: 0; color: #e15e3d; background: transparent; font-size: 9px; }
.live-payment-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.live-payment-option { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid #e1e8e5; border-radius: 11px; background: #fff; cursor: pointer; }
.live-payment-option:has(input:checked) { border-color: #f09270; background: #fff8f4; box-shadow: 0 0 0 2px rgba(240, 146, 112, .09); }
.live-payment-option:has(input:disabled) { opacity: .52; }
.live-payment-option input { position: absolute; opacity: 0; }
.live-payment-icon { display: grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; border-radius: 8px; color: #fff; font-size: 11px; font-weight: 800; }
.live-payment-icon.is-wechat { background: #20b65f; }
.live-payment-icon.is-wallet { color: #845513; background: #f1c45c; }
.live-payment-copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.live-payment-copy b { color: #37534c; font-size: 11px; }
.live-payment-copy small { overflow: hidden; color: #97a29f; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.live-checkout-summary { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 6px; margin-top: 12px; padding: 11px 12px; border-radius: 11px; background: #f8f7f2; color: #71817d; font-size: 10px; }
.live-checkout-summary b { color: #3e504b; }
.live-checkout-summary strong { color: #e84c3f; font-size: 12px; }
.live-checkout-summary em { margin-left: 3px; font-size: 19px; font-style: normal; font-weight: 800; }
.live-checkout-status { min-height: 16px; margin-top: 8px; color: #a65d37; font-size: 10px; line-height: 1.45; text-align: center; }
.live-checkout-status.is-error { color: #d1463c; }
.live-checkout-submit { width: 100%; height: 45px; margin-top: 6px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(110deg, #ff745c, #e8443d); box-shadow: 0 9px 20px rgba(215, 61, 52, .22); font-size: 14px; font-weight: 750; }
.live-checkout-submit:disabled { opacity: .55; box-shadow: none; }
@media (max-width: 420px) { .live-commerce-sheet { padding-left: 8px; padding-right: 8px; } .live-commerce-product { grid-template-columns: 86px minmax(0, 1fr); } .live-commerce-cover { width: 86px; height: 86px; } .live-checkout-sheet { padding: 13px 12px 11px; } .live-checkout-head h2 { font-size: 16px; } .live-checkout-address { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 9px; padding: 9px; } .live-checkout-address label { grid-column: span 3; gap: 3px; } .live-checkout-address label.live-checkout-region-field { grid-column: span 2; } .live-checkout-address label.is-full { grid-column: 1 / -1; } .live-checkout-address input, .live-checkout-address textarea, .live-checkout-address select { padding: 7px 8px; border-radius: 8px; font-size: 11.5px; } .live-checkout-address select { height: 33px; } .live-checkout-address textarea { min-height: 46px; height: 46px; } .live-payment-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 6px; } .live-payment-option { gap: 6px; padding: 8px; } .live-payment-copy small { font-size: 8px; } .live-checkout-section-title { margin-top: 9px; } .live-checkout-summary { grid-template-columns: 1fr auto; margin-top: 8px; padding: 8px 10px; } .live-checkout-summary span:nth-child(2) { display: none; } .live-checkout-status { min-height: 12px; margin-top: 4px; } .live-checkout-submit { height: 42px; margin-top: 4px; } }
.live-payment-choice-mask { position: fixed; z-index: 100; inset: 0; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(3, 14, 12, .62); backdrop-filter: blur(8px); }
.live-payment-choice-mask[hidden] { display: none; }
.live-payment-choice-sheet { width: min(100%, 360px); padding: 20px 17px 14px; border: 1px solid rgba(255, 255, 255, .72); border-radius: 19px; background: #fffdfb; box-shadow: 0 24px 72px rgba(0, 0, 0, .34); opacity: 1; }
.live-payment-choice-sheet > span { color: #a56b35; font-size: 9px; font-weight: 750; letter-spacing: .12em; }
.live-payment-choice-sheet h2 { margin-top: 3px; color: #21332e; font-size: 19px; font-weight: 760; }
.live-payment-choice-sheet > p { margin-top: 7px; color: #7c8985; font-size: 11px; }
.live-payment-choice-sheet > p b { margin-left: 4px; color: #e14f42; font-size: 16px; }
.live-payment-choice-actions { display: grid; gap: 8px; margin-top: 15px; }
.live-payment-choice-actions button { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; align-items: center; gap: 1px 9px; padding: 10px 11px; border: 1px solid #e2e9e6; border-radius: 11px; background: #fff; text-align: left; }
.live-payment-choice-actions button:not(:disabled):active { transform: scale(.985); }
.live-payment-choice-actions button:disabled { opacity: .45; }
.live-payment-choice-actions .live-payment-icon { grid-row: 1 / span 2; }
.live-payment-choice-actions b { color: #364d47; font-size: 12px; }
.live-payment-choice-actions small { color: #9aa5a1; font-size: 9px; }
.live-payment-choice-cancel { width: 100%; height: 36px; margin-top: 8px; border: 0; border-radius: 9px; color: #71837e; background: #eff3f1; font-size: 11px; }
.live-product-item { gap: 8px; padding: 8px; }
.live-product-item.is-explaining { border-color: rgba(16, 165, 145, .42); background: linear-gradient(135deg, #f3fffc, #fff); box-shadow: 0 5px 15px rgba(8, 133, 117, .08); }
.live-product-item.is-sold-out { background: #f7f9f8; }
.live-product-cover { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; overflow: hidden; border-radius: 9px; color: #28776d; background: linear-gradient(145deg, #dff5ef, #f7fffd); font-size: 15px; font-weight: 800; }
.live-product-cover img { width: 100%; height: 100%; object-fit: cover; }
.live-product-price-wrap { display: flex; flex: 0 0 auto; align-items: flex-end; flex-direction: column; gap: 1px; }
.live-product-price-wrap del { color: #a5afad; font-size: 8.5px; }
.live-product-buy:disabled { color: #8c9996; background: #dfe7e5; }
.live-product-empty { padding: 14px; border: 1px dashed #dbe6e3; border-radius: 10px; color: #899995; background: #fafdfc; font-size: 11px; text-align: center; }
.live-pending-order { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; padding: 9px 10px; border: 1px solid #f0d4a9; border-radius: 11px; background: #fff9ee; }
.live-pending-order[hidden] { display: none; }
.live-pending-order-copy { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
.live-pending-order-copy span { color: #a96a1f; font-size: 9px; }
.live-pending-order-copy b { overflow: hidden; color: #65441e; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.live-pending-order-copy small { color: #8b7354; font-size: 9px; }
.live-pending-order-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 5px; }
.live-pending-order-actions a, .live-pending-order-actions button { padding: 5px 7px; border: 0; border-radius: 7px; color: #8b6335; background: #f5e7cf; font-size: 9px; font-weight: 650; }
.live-pending-order-actions .is-primary { color: #fff; background: #e45b4f; }
@media (max-width: 420px) { .live-pending-order { align-items: flex-start; flex-direction: column; } .live-pending-order-actions { width: 100%; } .live-pending-order-actions .is-primary { margin-left: auto; } }
/* ===== 竖屏视频号式直播间 ===== */
body.room-page.room-portrait { width: 100%; max-width: none; margin: 0; overflow: hidden; background: #000; }
.room-portrait .live-stage { position: relative; width: min(100vw, 520px); max-width: 520px; height: 100dvh; margin: 0 auto; overflow: hidden; background: #000; }
.room-portrait .portrait-topbar, .room-landscape .portrait-topbar { position: absolute; z-index: 12; top: 0; left: 0; right: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px 24px; color: #fff; background: linear-gradient(180deg, rgba(0, 0, 0, .42), transparent); pointer-events: none; }
.room-portrait .portrait-topbar,
.room-landscape .portrait-topbar {
  padding-right: calc(18px + env(safe-area-inset-right));
  padding-left: calc(18px + env(safe-area-inset-left));
}
.portrait-host { display: flex; align-items: center; min-width: 0; gap: 9px; }
.portrait-cover { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .82); border-radius: 50%; color: #fff; background: linear-gradient(145deg, #4d756c, #182823); box-shadow: 0 3px 14px rgba(0, 0, 0, .28); }
.portrait-cover img { width: 100%; height: 100%; object-fit: cover; }
.portrait-cover b { font-size: 16px; }
.portrait-host-copy { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.portrait-host-copy strong { overflow: hidden; max-width: 210px; color: #fff; font-size: 13px; font-weight: 650; text-shadow: 0 1px 5px rgba(0, 0, 0, .45); text-overflow: ellipsis; white-space: nowrap; }
.portrait-live-state { display: inline-flex; width: fit-content; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 999px; color: #fff; background: rgba(255, 59, 74, .74); font-size: 8.5px; }
.portrait-live-state i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.portrait-viewers { position: absolute; top: calc(59px + env(safe-area-inset-top)); left: 63px; padding: 3px 7px; border-radius: 999px; color: rgba(255, 255, 255, .92); background: rgba(0, 0, 0, .30); font-size: 10px; backdrop-filter: blur(8px); }
.portrait-viewers b { color: #fff; font-weight: 650; }
.portrait-top-actions { display: flex; align-items: center; gap: 7px; pointer-events: auto; }
.portrait-top-actions button, .portrait-top-actions a { display: grid; place-items: center; width: 35px; height: 35px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgba(0, 0, 0, .30); backdrop-filter: blur(9px); }
.portrait-top-actions svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.room-portrait .player-wrap { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; aspect-ratio: auto; background: #000; }
.room-portrait .player-wrap video { width: 100%; height: 100%; object-fit: cover; }
.room-portrait .player-bar { display: none; }
.room-portrait .latency-badge { top: calc(96px + env(safe-area-inset-top)); right: 13px; }
.room-portrait .player-state { justify-content: flex-start; padding-top: 28vh; background: linear-gradient(180deg, rgba(0, 0, 0, .20), rgba(0, 0, 0, .64)); }
.portrait-ui { position: absolute; z-index: 8; inset: 0; pointer-events: none; }
.portrait-reward-promo { position: absolute; z-index: 11; top: calc(91px + env(safe-area-inset-top)); left: 12px; display: flex; min-width: 112px; align-items: center; gap: 7px; padding: 6px 9px 6px 6px; border: 1px solid rgba(255, 222, 155, .30); border-radius: 12px; color: #fff; background: linear-gradient(115deg, rgba(38, 25, 8, .78), rgba(12, 12, 11, .54)); box-shadow: 0 7px 22px rgba(0, 0, 0, .25); backdrop-filter: blur(13px); pointer-events: none; }
.portrait-reward-promo[hidden] { display: none; }
.portrait-reward-ticket { display: grid; place-items: center; width: 31px; height: 24px; flex: none; border-radius: 4px 8px 8px 4px; color: #613b05; background: linear-gradient(135deg, #ffe59a, #e7a733); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .27); font-size: 10px; font-weight: 850; }
.portrait-reward-ticket.is-redpacket { color: #fff5df; background: linear-gradient(135deg, #ff8b5d, #d9444f); }
.portrait-reward-ticket.is-coupon, .portrait-reward-ticket.is-deduction { color: #714608; background: linear-gradient(135deg, #ffe8a8, #e4a833); }
.portrait-reward-ticket.is-points { color: #eafffb; background: linear-gradient(135deg, #31cfbc, #078b83); }
.portrait-reward-copy { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
.portrait-reward-copy b { overflow: hidden; max-width: 105px; color: #fff5dd; font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.portrait-reward-copy em { color: #ffd98e; font-family: "IBM Plex Mono", Consolas, monospace; font-size: 11px; font-style: normal; font-variant-numeric: tabular-nums; font-weight: 750; letter-spacing: .03em; }
.portrait-reward-count { position: absolute; top: -5px; right: -5px; display: grid; place-items: center; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; color: #573707; background: #ffe2a1; font-size: 8px; }
.portrait-reward-count[hidden] { display: none; }
.portrait-reward-promo.is-claimed { border-color: rgba(255, 255, 255, .14); opacity: .84; }
.portrait-reward-promo.is-claimed .portrait-reward-copy em { color: rgba(255, 255, 255, .72); }
.portrait-feed { position: absolute; z-index: 10; top: calc(91px + env(safe-area-inset-top)); right: 12px; bottom: calc(64px + env(safe-area-inset-bottom)); left: 12px; display: flex; min-height: 0; flex-direction: column; align-items: flex-start; gap: 7px; pointer-events: none; }
.portrait-feed .portrait-reward-promo { position: relative; top: auto; left: auto; flex: none; max-width: 100%; }
.portrait-feed .portrait-reward-stack { position: relative; top: auto; left: auto; width: 128px; max-width: calc(100vw - 24px); max-height: min(38vh, 310px); flex: 0 1 auto; margin: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; pointer-events: auto; }
.portrait-feed .room-reward-stack::-webkit-scrollbar { display: none; }
.portrait-comments { position: relative; display: flex; width: min(66%, 285px); height: clamp(180px, 34vh, 300px); min-height: 0; max-height: none; flex: none; flex-direction: column; gap: 5px; pointer-events: none; }
.portrait-chat-list { min-height: 0; max-height: none; flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; scrollbar-width: none; align-items: flex-start; gap: 5px; padding: 3px 3px 4px 0; border: 0; border-radius: 0; background: transparent; backdrop-filter: none; pointer-events: auto; cursor: grab; }
.portrait-chat-list:active { cursor: grabbing; }
.portrait-chat-list::-webkit-scrollbar { display: none; }
.portrait-chat-list .chat-item { display: flex; width: fit-content; min-width: 72px; max-width: 100%; align-self: flex-start; overflow: hidden; padding: 6px 9px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; color: #fff; background: linear-gradient(100deg, rgba(0, 0, 0, .56), rgba(0, 0, 0, .38)); box-shadow: 0 3px 12px rgba(0, 0, 0, .15); backdrop-filter: blur(8px); }
.portrait-chat-list .chat-body { min-width: 0; display: block; }
.portrait-chat-list .chat-avatar { display: none; }
.portrait-chat-list .chat-name { display: inline; margin-right: 5px; color: #fff; font-size: 11px; line-height: 1.5; text-shadow: 0 1px 3px #000; }
.portrait-chat-list .chat-name > span { display: none; }
.portrait-chat-list .chat-name b { color: #fff; font-weight: 650; }
.portrait-chat-list .chat-text { display: inline; margin: 0; color: rgba(255, 255, 255, .96); font-size: 11px; line-height: 1.5; text-shadow: 0 1px 4px rgba(0, 0, 0, .82); word-break: break-word; }
.portrait-chat-list .chat-text strong, .portrait-chat-list .chat-text em { color: #ffd897; }
.portrait-chat-list .chat-gift-line { display: inline; }
.portrait-chat-list .chat-gift-line .chat-gift-icon { display: inline-flex; width: 15px; height: 15px; flex: 0 0 15px; align-items: center; justify-content: center; margin: 0 2px; overflow: hidden; vertical-align: -2px; }
.portrait-chat-list .chat-gift-line .chat-gift-icon img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.portrait-chat-list .chat-item.is-gift { max-width: min(82vw, 300px); }
.portrait-chat-list .chat-item.is-gift .chat-body { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.portrait-chat-list .chat-gift-line em { margin-left: 3px; color: rgba(255, 228, 176, .82); font-size: 9.5px; }
.portrait-chat-list .chat-item.is-gift { border-color: rgba(255, 213, 133, .18); background: linear-gradient(100deg, rgba(66, 43, 10, .62), rgba(0, 0, 0, .36)); }
.portrait-chat-list .chat-empty { width: fit-content; align-self: flex-start; padding: 7px 10px; border-radius: 10px; color: rgba(255, 255, 255, .68); background: rgba(0, 0, 0, .46); backdrop-filter: blur(8px); font-size: 10px; }
.portrait-bottom-bar { position: absolute; z-index: 15; left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 7px; pointer-events: auto; }
.portrait-emoji-picker { position: absolute; z-index: 20; left: 0; bottom: calc(100% + 8px); display: grid; width: min(300px, calc(100vw - 20px)); grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; padding: 9px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; background: rgba(10, 12, 11, .96); box-shadow: 0 14px 36px rgba(0, 0, 0, .42); pointer-events: auto; animation: fade-in .16s ease both; }
.portrait-emoji-picker[hidden] { display: none; }
.portrait-emoji-option { display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 9px; background: transparent; font-size: 21px; line-height: 1; }
.portrait-emoji-option:active { background: rgba(255, 255, 255, .12); transform: scale(.92); }
.portrait-chat-entry { display: flex; min-width: 0; flex: 1; align-items: center; height: 44px; padding: 0 4px 0 5px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 23px; background: rgba(12, 12, 13, .48); box-shadow: 0 5px 18px rgba(0, 0, 0, .16); backdrop-filter: blur(16px); }
.portrait-chat-entry input { min-width: 0; height: 36px; flex: 1; padding: 0 4px; border: 0; color: #fff; background: transparent; font-size: 12px; outline: none; box-shadow: none; }
.portrait-chat-entry input::placeholder { color: rgba(255, 255, 255, .78); }
.portrait-emoji { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; color: rgba(255, 255, 255, .78); background: transparent; font-size: 21px; }
.portrait-chat-send { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .12); }
.portrait-chat-send:disabled { opacity: .4; }
.portrait-chat-send svg { width: 16px; height: 16px; fill: currentColor; }
.portrait-login-chat { display: flex; min-width: 0; flex: 1; align-items: center; height: 38px; padding-left: 12px; color: rgba(255, 255, 255, .82); font-size: 11.5px; }
.portrait-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 2px; height: 44px; padding: 0 3px; border: 1px solid rgba(255, 255, 255, .11); border-radius: 23px; background: rgba(12, 12, 13, .48); backdrop-filter: blur(16px); }
.portrait-action { position: relative; display: flex; width: 39px; height: 42px; align-items: center; justify-content: center; flex-direction: column; gap: 1px; padding: 0; border: 0; color: rgba(255, 255, 255, .92); background: transparent; text-decoration: none; }
.portrait-action[hidden] { display: none; }
.portrait-action:active { transform: scale(.92); }
.portrait-action svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.portrait-action span { font-size: 7.5px; line-height: 1; }
.portrait-action em { position: absolute; top: 1px; right: 1px; min-width: 13px; padding: 0 3px; border-radius: 8px; color: #fff; background: #ff4f63; font-size: 7px; font-style: normal; line-height: 13px; text-align: center; }
.portrait-action#liveLikeButton { isolation: isolate; overflow: visible; }
.portrait-action#liveLikeButton > svg,
.portrait-action#liveLikeButton > span:not(.like-fx-layer) { position: relative; z-index: 3; }
.portrait-action#liveLikeButton > em { z-index: 4; }
.portrait-action#liveLikeButton.is-liked { color: #ff546b; }
.portrait-action#liveLikeButton.is-liked svg { fill: currentColor; }
.portrait-action#liveLikeButton.is-fx-glow { filter: drop-shadow(0 0 7px rgba(255, 85, 124, .95)) drop-shadow(0 0 16px rgba(255, 201, 94, .62)); }
.portrait-action#liveLikeButton.is-fx-hot svg { animation: like-fx-icon-pop .42s cubic-bezier(.2, 1.5, .35, 1); }
.portrait-action#liveLikeButton.is-fx-rainbow { animation: like-fx-button-shake .38s ease-out; }
.portrait-action#liveLikeButton::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 3px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 244, 186, .82), rgba(255, 85, 124, .3) 42%, transparent 72%);
  transform: scale(.45);
}
.portrait-action#liveLikeButton.is-fx-glow::after { animation: like-fx-aura .58s ease-out both; }
.like-fx-layer {
  position: absolute;
  z-index: 2;
  inset: -24px;
  display: block;
  overflow: visible;
  padding: 0;
  font-size: initial;
  line-height: 1;
  pointer-events: none;
}
#liveLikeButton .like-fx-particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--size, 10px);
  height: var(--size, 10px);
  color: var(--color, #ff4f73);
  font-size: var(--size, 10px);
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 5px currentColor, 0 0 9px rgba(255, 255, 255, .55);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.2);
  animation: like-fx-particle var(--duration, .68s) cubic-bezier(.16, .78, .28, 1) forwards;
  will-change: transform, opacity;
}
#liveLikeButton .like-fx-particle.is-star { color: #fff1a8; text-shadow: 0 0 6px #ffe678, 0 0 13px #ff8ac3; }
.like-fx-flash {
  position: absolute;
  top: 50%;
  left: 46%;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 241, .92), rgba(255, 174, 95, .42) 24%, rgba(255, 85, 124, .16) 46%, transparent 70%);
  mix-blend-mode: screen;
  transform: translate(-50%, -50%) scale(.18);
  animation: like-fx-flash .56s ease-out forwards;
  pointer-events: none;
}
#liveLikeButton .like-fx-big-heart {
  position: absolute;
  left: 50%;
  bottom: 38%;
  color: #ff5677;
  font-size: 18px;
  line-height: 1;
  text-shadow: 0 0 6px #fff3b1, 0 0 13px #ff4f73, 0 0 21px rgba(255, 84, 120, .75);
  opacity: 0;
  animation: like-fx-big-heart .9s var(--heart-delay, 0s) cubic-bezier(.16, .78, .28, 1) forwards;
  pointer-events: none;
  will-change: transform, opacity;
}
.like-fx-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 29px;
  height: 29px;
  border: 1.5px solid rgba(255, 218, 130, .9);
  border-radius: 50%;
  box-shadow: 0 0 9px rgba(255, 92, 132, .48);
  transform: translate(-50%, -50%) scale(.38);
  animation: like-fx-ring .56s ease-out forwards;
}
.like-fx-ring.is-second {
  width: 22px;
  height: 22px;
  border-color: rgba(128, 224, 255, .9);
  box-shadow: 0 0 10px rgba(143, 108, 255, .62);
  animation-delay: .06s;
}
#liveLikeButton .like-fx-combo {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 8px);
  padding: 2px 6px;
  border: 1px solid rgba(255, 238, 170, .56);
  border-radius: 999px;
  color: #fff8db;
  background: linear-gradient(100deg, rgba(180, 35, 78, .92), rgba(221, 121, 44, .9));
  box-shadow: 0 4px 12px rgba(37, 9, 20, .34), 0 0 11px rgba(255, 124, 113, .5);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
  transform: translateX(-50%);
  animation: like-fx-combo-rise .78s ease-out forwards;
}
#liveLikeButton .like-fx-combo.is-hot {
  border-color: rgba(204, 244, 255, .8);
  background: linear-gradient(100deg, rgba(31, 104, 138, .94), rgba(123, 67, 172, .92), rgba(200, 78, 109, .94));
  box-shadow: 0 4px 14px rgba(37, 9, 20, .4), 0 0 15px rgba(103, 219, 255, .58);
}
@keyframes like-fx-particle {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.15) rotate(0); }
  16% { opacity: 1; }
  70% { opacity: .95; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(var(--rotate)); }
}
@keyframes like-fx-flash {
  0% { opacity: .95; transform: translate(-50%, -50%) scale(.18); }
  72% { opacity: .42; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.26); }
}
@keyframes like-fx-big-heart {
  0% { opacity: 0; transform: translate(calc(-50% + var(--heart-x, 0px)), 7px) scale(.35) rotate(-12deg); }
  18% { opacity: 1; transform: translate(calc(-50% + var(--heart-x, 0px)), 0) scale(1.16) rotate(5deg); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--heart-x, 0px)), -56px) scale(.82) rotate(13deg); }
}
@keyframes like-fx-ring {
  0% { opacity: .95; transform: translate(-50%, -50%) scale(.38); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.25); }
}
@keyframes like-fx-combo-rise {
  0% { opacity: 0; transform: translate(-50%, 8px) scale(.72); }
  18% { opacity: 1; transform: translate(-50%, 0) scale(1.06); }
  72% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -16px) scale(.94); }
}
@keyframes like-fx-aura {
  0% { opacity: .9; transform: scale(.42); }
  100% { opacity: 0; transform: scale(2.05); }
}
@keyframes like-fx-icon-pop {
  0%, 100% { transform: scale(1); }
  42% { transform: scale(1.3) rotate(-7deg); }
  70% { transform: scale(.94) rotate(4deg); }
}
@keyframes like-fx-button-shake {
  0%, 100% { transform: translateX(0) scale(1); }
  25% { transform: translateX(-1.5px) scale(1.05); }
  55% { transform: translateX(1.5px) scale(1.08); }
  78% { transform: translateX(-.8px) scale(1.04); }
}

.like-fx-stage {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.like-screen-heart {
  position: fixed;
  top: var(--like-y);
  left: var(--like-x);
  color: var(--heart-color, #ff416c);
  font-size: var(--heart-size, 22px);
  line-height: 1;
  text-shadow: 0 0 7px currentColor, 0 0 16px rgba(255, 255, 255, .7), 0 4px 13px rgba(118, 8, 38, .38);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.25);
  animation: like-screen-heart-rise var(--heart-duration, 1.25s) var(--heart-delay, 0s) cubic-bezier(.16, .78, .24, 1) forwards;
  will-change: transform, opacity, filter;
}
.like-screen-heart.is-star {
  color: #fff3a6;
  text-shadow: 0 0 7px #fff3a6, 0 0 18px #ff88bf;
}
.like-screen-flare {
  position: fixed;
  top: var(--like-y);
  left: var(--like-x);
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 244, .96), rgba(255, 151, 92, .46) 22%, rgba(255, 74, 121, .2) 43%, transparent 70%);
  mix-blend-mode: screen;
  transform: translate(-50%, -50%) scale(.18);
  animation: like-screen-flare .68s ease-out forwards;
}
.like-screen-combo {
  position: fixed;
  top: var(--like-y);
  left: var(--like-x);
  padding: 5px 10px;
  border: 1px solid rgba(255, 239, 168, .7);
  border-radius: 999px;
  color: #fff8dc;
  background: linear-gradient(100deg, rgba(180, 28, 70, .94), rgba(225, 116, 39, .93));
  box-shadow: 0 6px 20px rgba(52, 7, 24, .48), 0 0 18px rgba(255, 122, 110, .62);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  animation: like-screen-combo-rise .96s ease-out forwards;
}
.like-screen-combo.is-hot {
  border-color: rgba(197, 241, 255, .9);
  background: linear-gradient(100deg, rgba(18, 130, 155, .95), rgba(111, 65, 182, .94), rgba(218, 63, 109, .94));
  box-shadow: 0 6px 22px rgba(25, 8, 52, .48), 0 0 21px rgba(92, 223, 255, .72);
}
@keyframes like-screen-heart-rise {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.25) rotate(-16deg); }
  12% { opacity: 1; transform: translate(-50%, -50%) scale(1.18) rotate(7deg); }
  72% { opacity: .9; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--drift)), calc(-50% + var(--rise))) scale(.66) rotate(var(--heart-turn)); filter: blur(.5px); }
}
@keyframes like-screen-flare {
  0% { opacity: .98; transform: translate(-50%, -50%) scale(.18); }
  65% { opacity: .55; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.55); }
}
@keyframes like-screen-combo-rise {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(.7); }
  18% { opacity: 1; transform: translate(-50%, 0) scale(1.06); }
  72% { opacity: 1; transform: translate(-50%, -8px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -28px) scale(.94); }
}
@media (prefers-reduced-motion: reduce) {
  .live-entry-dot { animation-duration: .01ms !important; }
  #liveLikeButton .like-fx-particle,
  .like-fx-flash,
  .like-fx-ring,
  #liveLikeButton .like-fx-big-heart,
  #liveLikeButton .like-fx-combo,
  .portrait-action#liveLikeButton.is-fx-glow::after,
  .portrait-action#liveLikeButton.is-fx-hot svg,
  .portrait-action#liveLikeButton.is-fx-rainbow,
  .like-screen-heart,
  .like-screen-flare,
  .like-screen-combo { animation-duration: .01ms !important; }
}
.portrait-product-drawer { position: absolute; z-index: 14; left: 10px; right: 10px; bottom: calc(60px + env(safe-area-inset-bottom)); max-height: min(56vh, 470px); margin: 0; padding: 14px; overflow-y: auto; border: 1px solid rgba(111, 136, 196, .18); border-radius: 18px; color: #1c2740; background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(246, 249, 255, .98)); box-shadow: 0 20px 50px rgba(18, 28, 55, .22), 0 2px 8px rgba(18, 28, 55, .08); backdrop-filter: blur(18px); pointer-events: auto; }
.portrait-product-drawer[hidden] { display: none; }
.portrait-product-drawer .live-domain-head { margin-bottom: 9px; }
.portrait-product-drawer .live-domain-head b { color: #1c2740; font-size: 14px; }
.portrait-product-drawer .live-domain-head span { color: #8b95a8; }
.portrait-drawer-close { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid #e2e8f4; border-radius: 50%; color: #5f6b7e; background: #fff; font-size: 20px; box-shadow: 0 2px 6px rgba(18, 28, 55, .06); transition: color .16s ease, background .16s ease; }
.portrait-drawer-close:active { color: #d63e58; background: #fdeef0; }
.portrait-drawer-actions { display: flex; align-items: center; gap: 7px; }
.portrait-drawer-actions > button:first-child { padding: 6px 9px; border: 1px solid #dce5fb; border-radius: 999px; color: #365dd1; background: #fff; font-size: 9px; }
.portrait-drawer-actions > button:first-child[hidden] { display: none; }
.portrait-product-drawer .live-product-item { border-color: #e6ebf5; background: #fff; box-shadow: 0 4px 12px rgba(25, 39, 76, .05); }
.portrait-product-drawer .live-product-item.is-explaining { border-color: rgba(214, 62, 88, .35); box-shadow: 0 4px 14px rgba(214, 62, 88, .12); }
.portrait-product-drawer .live-product-main b { color: #202b42; }
.portrait-product-drawer .live-product-main span, .portrait-product-drawer .live-product-price-wrap del { color: #8a94a7; }
.portrait-product-drawer .live-product-price { color: #d63e58; }
.portrait-product-drawer .live-product-empty { border-color: #e2e8f4; color: #8a94a7; background: #f8fafd; }
.portrait-product-drawer .live-domain-status { color: #8792a7; }
.portrait-product-drawer .live-domain-status.is-error { color: #c53349; }
.portrait-product-drawer .live-pending-order { border-color: rgba(214, 150, 40, .30); background: #fff8e8; }
.portrait-product-drawer .live-pending-order-copy span, .portrait-product-drawer .live-pending-order-copy b, .portrait-product-drawer .live-pending-order-copy small { color: #8a5b12; }
.portrait-product-drawer .live-pending-order-actions a { color: #8a5b12; background: #fff; }
.portrait-product-drawer .live-pending-order-actions button { color: #8a5b12; background: #fff; }
.portrait-product-drawer .live-pending-order-actions .is-primary { color: #fff; background: #e45b4f; }
.portrait-pending-order { position: absolute; z-index: 14; left: 10px; right: 10px; bottom: calc(61px + env(safe-area-inset-bottom)); margin: 0; border-color: rgba(255, 202, 116, .30); background: rgba(49, 35, 13, .88); box-shadow: 0 8px 24px rgba(0, 0, 0, .24); backdrop-filter: blur(13px); pointer-events: auto; }
.portrait-pending-order .live-pending-order-copy span, .portrait-pending-order .live-pending-order-copy b, .portrait-pending-order .live-pending-order-copy small { color: #ffe4b5; }
.portrait-pending-order .live-pending-order-actions a, .portrait-pending-order .live-pending-order-actions button { color: #ffe4b5; background: rgba(255, 255, 255, .10); }
.portrait-pending-order .live-pending-order-actions .is-primary { color: #fff; background: #e45b4f; }
@media (min-width: 560px) { body.room-page.room-portrait { background: #050806; } .room-portrait .live-stage { box-shadow: 0 0 70px rgba(0, 0, 0, .7); } }
@media (max-width: 370px) { .portrait-actions { gap: 0; } .portrait-action { width: 35px; } .portrait-chat-entry { min-width: 116px; } .portrait-bottom-bar { gap: 4px; } }
@media (orientation: landscape) and (max-height: 520px) { .room-portrait .live-stage { width: 100vw; max-width: none; } .portrait-comments { max-height: 34vh; } .portrait-chat-list { max-height: 30vh; } }

/* 直播间叠加活动列表：按活动释放时间倒序展示 */
.room-reward-stack {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 249, 232, .98), rgba(240, 252, 249, .96));
  border: 1px solid rgba(0, 145, 135, .13);
  box-shadow: 0 8px 22px rgba(10, 63, 57, .06);
}
.room-reward-stack[hidden] { display: none; }
.room-reward-stack-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.room-reward-stack-head b { color: #173f3a; font-size: 14px; }
.room-reward-stack-head span { color: #8a9b97; font-size: 10.5px; }
.room-reward-stack-list { display: flex; flex-direction: column; gap: 7px; }
.room-reward-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid #ebe5d5;
}
.room-reward-item.is-claimed { opacity: .72; }
.room-reward-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 29px;
  border-radius: 4px 9px 9px 4px;
  color: #613b05;
  background: linear-gradient(135deg, #ffe59a, #e7a733);
  font-size: 11px;
  font-weight: 800;
}
.room-reward-icon.is-redpacket { color: #fff5df; background: linear-gradient(135deg, #ff8b5d, #d9444f); }
.room-reward-icon.is-coupon,
.room-reward-icon.is-deduction { color: #714608; background: linear-gradient(135deg, #ffe8a8, #e4a833); }
.room-reward-icon.is-points { color: #eafffb; background: linear-gradient(135deg, #31cfbc, #078b83); }
.room-reward-main { min-width: 0; }
.room-reward-main b { display: block; overflow: hidden; color: #24433f; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.room-reward-main p { overflow: hidden; margin-top: 2px; color: #758984; font-size: 10.5px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.room-reward-main small { display: block; margin-top: 2px; color: #a17b34; font-size: 10px; }
.room-reward-side { display: flex; min-width: 54px; flex-direction: column; align-items: flex-end; gap: 4px; }
.room-reward-side em { color: #b3731d; font-size: 10.5px; font-style: normal; font-variant-numeric: tabular-nums; font-weight: 700; }
.room-reward-item.is-claimed .room-reward-side em { color: #85938f; }
.room-reward-checkin { min-height: 26px; padding: 0 9px; border-radius: 999px; color: #fff; background: linear-gradient(180deg, #09aa9c, #008a82); font-size: 10.5px; font-weight: 650; }
.room-reward-checkin:disabled { opacity: .55; }
.portrait-reward-stack {
  position: absolute;
  z-index: 10;
  top: calc(128px + env(safe-area-inset-top));
  left: 12px;
  width: min(72%, 320px);
  max-height: min(34vh, 285px);
  margin: 0;
  overflow-y: auto;
  pointer-events: auto;
  background: rgba(255, 252, 243, .93);
  backdrop-filter: blur(12px);
}
.portrait-reward-stack .room-reward-stack-head span { display: none; }
.portrait-reward-stack .room-reward-item { grid-template-columns: 30px minmax(0, 1fr) auto; padding: 7px 8px; }
.portrait-reward-stack .room-reward-icon { width: 30px; height: 26px; }
@media (max-width: 390px) {
  .portrait-reward-stack { top: calc(122px + env(safe-area-inset-top)); width: min(78%, 300px); }
}

/* 直播间多活动沿用原小黑卡片样式 */
.room-reward-stack {
  margin-top: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.room-reward-stack-head { display: none; }
.room-reward-stack-list { gap: 6px; }
.room-reward-item {
  grid-template-columns: 31px minmax(0, 1fr) auto;
  gap: 7px;
  padding: 6px 9px 6px 6px;
  border: 1px solid rgba(255, 222, 155, .30);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(115deg, rgba(38, 25, 8, .78), rgba(12, 12, 11, .54));
  box-shadow: 0 7px 22px rgba(0, 0, 0, .25);
  backdrop-filter: blur(13px);
}
.room-reward-item.is-claimed { opacity: .84; }
.room-reward-icon {
  width: 31px;
  height: 24px;
  border-radius: 4px 8px 8px 4px;
  font-size: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .27);
}
.room-reward-main b { color: #fff5dd; font-size: 10.5px; font-weight: 650; }
.room-reward-main p { margin-top: 1px; color: rgba(255, 245, 221, .72); font-size: 9.5px; }
.room-reward-main small { margin-top: 1px; color: #ffd98e; font-size: 9px; }
.room-reward-side em { color: #ffd98e; font-size: 10px; font-weight: 750; }
.room-reward-item.is-claimed .room-reward-side em { color: rgba(255, 255, 255, .72); }
.room-reward-checkin { min-height: 24px; padding: 0 8px; font-size: 9.5px; }
.portrait-reward-stack {
  top: calc(91px + env(safe-area-inset-top));
  left: 12px;
  width: min(72%, 286px);
  max-height: min(38vh, 310px);
  overflow-y: auto;
  background: transparent;
  backdrop-filter: none;
}
.portrait-reward-stack .room-reward-item { padding: 6px 9px 6px 6px; }
.portrait-reward-stack .room-reward-icon { width: 31px; height: 24px; }
@media (max-width: 390px) {
  .portrait-reward-stack { top: calc(91px + env(safe-area-inset-top)); width: min(74%, 278px); }
}

/* 直播红包窄卡片与单条关闭 */
.room-reward-stack {
  width: 190px;
  max-width: calc(100vw - 24px);
}
.room-reward-item { position: relative; }
.room-reward-close {
  position: absolute;
  z-index: 2;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid rgba(255, 215, 82, .9);
  border-radius: 50%;
  color: #ffd84f;
  background: rgba(24, 20, 12, .86);
  box-shadow: 0 2px 7px rgba(0, 0, 0, .32);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.room-reward-close:active { transform: scale(.9); }
.portrait-reward-stack {
  width: 128px;
  max-width: calc(100vw - 24px);
}
.portrait-reward-stack .room-reward-item {
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 5px;
  padding: 5px 19px 5px 5px;
}
.portrait-reward-stack .room-reward-icon {
  width: 26px;
  height: 22px;
  font-size: 9px;
}
@media (max-width: 390px) {
  .portrait-reward-stack {
    width: 128px;
    max-width: calc(100vw - 24px);
  }
}

/* 关闭按钮置于卡片内部，避免边缘裁切和状态文字重叠 */
.room-reward-close {
  top: 4px;
  right: 4px;
  width: 15px;
  height: 15px;
  font-size: 10px;
}
.room-reward-side {
  padding-top: 12px;
  padding-right: 7px;
}

/* 评论气泡与红包保持一致的半透明层次 */
.portrait-chat-list .chat-item {
  border-color: rgba(255, 255, 255, .10);
  background: linear-gradient(115deg, rgba(24, 20, 14, .46), rgba(0, 0, 0, .24));
  box-shadow: 0 3px 12px rgba(0, 0, 0, .11);
  backdrop-filter: blur(13px);
}
.portrait-chat-list .chat-item.is-gift {
  border-color: rgba(255, 213, 133, .20);
  background: linear-gradient(115deg, rgba(66, 43, 10, .50), rgba(0, 0, 0, .23));
}
.portrait-chat-list .chat-empty {
  background: rgba(0, 0, 0, .34);
  backdrop-filter: blur(13px);
}

/* 评论气泡完全复用红包卡片背景 */
.portrait-chat-list .chat-item,
.portrait-chat-list .chat-item.is-gift {
  border: 1px solid rgba(255, 222, 155, .30);
  background: linear-gradient(115deg, rgba(38, 25, 8, .78), rgba(12, 12, 11, .54));
  box-shadow: 0 7px 22px rgba(0, 0, 0, .25);
  backdrop-filter: blur(13px);
}

/* 评论气泡去掉边框并使用更轻的半透明背景 */
.portrait-chat-list .chat-item,
.portrait-chat-list .chat-item.is-gift {
  border: 0;
  background: linear-gradient(115deg, rgba(28, 22, 14, .34), rgba(8, 8, 8, .16));
  box-shadow: 0 3px 10px rgba(0, 0, 0, .10);
  backdrop-filter: blur(10px);
}

/* ===== 横屏直播间：上半直播画面，下半互动区 ===== */
body.room-page.room-landscape {
  --room-video-height: min(56.25vw, 52dvh);
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
  background: #010504;
}
.room-landscape .live-stage {
  position: relative;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: #000;
}
.room-landscape .player-wrap {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: var(--room-video-height);
  max-width: none;
  margin: 0;
  aspect-ratio: auto;
  overflow: hidden;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.room-landscape .player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.room-landscape .player-bar { display: none; }
.room-landscape .player-state {
  justify-content: center;
  padding-top: 0;
  background: rgba(0, 0, 0, .46);
}
.room-landscape .portrait-topbar {
  padding-right: max(12px, env(safe-area-inset-right));
  padding-left: max(12px, env(safe-area-inset-left));
}
.room-landscape .portrait-ui {
  position: absolute;
  z-index: 8;
  inset: var(--room-video-height) 0 0;
  padding: 10px max(10px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  overflow: hidden;
  background:
    radial-gradient(560px 180px at 96% 0%, rgba(159, 102, 27, .13), transparent 70%),
    radial-gradient(420px 180px at 0% 100%, rgba(17, 120, 108, .15), transparent 72%),
    linear-gradient(180deg, #0b1210, #020504 78%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  pointer-events: none;
}
.room-landscape .portrait-feed {
  position: relative;
  inset: auto;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  padding-bottom: calc(50px + env(safe-area-inset-bottom));
  pointer-events: auto;
}
.room-landscape .portrait-reward-promo {
  position: relative;
  top: auto;
  left: auto;
  flex: none;
  width: max-content;
  max-width: 100%;
  margin: 0 0 7px;
  pointer-events: auto;
}
.room-landscape .portrait-reward-stack {
  position: relative;
  top: auto;
  left: auto;
  flex: 0 1 auto;
  width: 128px;
  max-width: calc(100vw - 24px);
  max-height: min(42%, 240px);
  min-height: 0;
  margin: 0;
  pointer-events: auto;
}
.room-landscape .gift-stage {
  position: absolute;
  top: 20%;
  right: 0;
  left: auto;
  width: min(58vw, 260px);
  height: auto;
  flex: none;
  align-items: center;
  justify-content: flex-end;
}
.room-landscape .portrait-comments {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  flex: none;
  width: 100%;
  height: clamp(160px, 34vh, 300px);
  min-height: 0;
  margin-top: auto;
  max-height: none;
  justify-content: flex-start;
  padding-bottom: 0;
  pointer-events: none;
}
.room-landscape .portrait-chat-list {
  flex: 1;
  min-height: 0;
  max-height: none;
}
.room-landscape .portrait-bottom-bar {
  right: max(10px, env(safe-area-inset-right));
  bottom: calc(8px + env(safe-area-inset-bottom));
  left: max(10px, env(safe-area-inset-left));
}
.room-landscape .portrait-product-drawer {
  right: max(10px, env(safe-area-inset-right));
  bottom: calc(60px + env(safe-area-inset-bottom));
  left: max(10px, env(safe-area-inset-left));
  max-height: calc(100% - 72px - env(safe-area-inset-bottom));
}
.room-landscape .portrait-pending-order {
  right: max(10px, env(safe-area-inset-right));
  bottom: calc(61px + env(safe-area-inset-bottom));
  left: max(10px, env(safe-area-inset-left));
}

@media (orientation: landscape) and (max-height: 520px) {
  body.room-page.room-landscape { --room-video-height: 46dvh; }
  .room-landscape .portrait-topbar { padding-top: calc(6px + env(safe-area-inset-top)); }
  .room-landscape .portrait-ui { padding-top: 6px; }
  .room-landscape .portrait-feed { gap: 5px; padding-bottom: calc(42px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .room-landscape .portrait-feed::-webkit-scrollbar { display: none; }
  .room-landscape .portrait-reward-stack { max-height: 58px; min-height: 40px; flex: 0 1 auto; }
  .room-landscape .gift-stage { width: min(32vw, 300px); }
  .room-landscape .portrait-comments { height: 54px; }
  .room-landscape .portrait-bottom-bar { bottom: calc(5px + env(safe-area-inset-bottom)); }
  .room-landscape .portrait-product-drawer { bottom: calc(54px + env(safe-area-inset-bottom)); max-height: calc(100% - 60px); }
}

/* 商品卡固定在互动区右下角 */
.live-commerce-mask {
  justify-content: flex-end;
  padding-bottom: calc(62px + env(safe-area-inset-bottom));
}
.live-commerce-sheet {
  width: min(300px, 58vw);
  max-height: min(70dvh, 420px);
  overflow-y: auto;
}
.room-landscape .live-commerce-mask {
  top: var(--room-video-height);
  padding-top: 8px;
  padding-bottom: calc(54px + env(safe-area-inset-bottom));
}
.room-landscape .live-commerce-sheet {
  max-height: calc(100dvh - var(--room-video-height) - 64px - env(safe-area-inset-bottom));
}
.room-portrait .portrait-product-drawer,
.room-landscape .portrait-product-drawer {
  right: max(10px, env(safe-area-inset-right));
  left: auto;
  width: min(300px, 58vw);
}

/* 长时间直播优先降低移动端合成压力 */
.portrait-chat-list .chat-item,
.portrait-chat-list .chat-item.is-gift {
  background: linear-gradient(115deg, rgba(24, 20, 14, .78), rgba(9, 9, 9, .62));
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* 底部操作栏始终位于弹层上方，便于直接切换功能区 */
body.room-page.room-portrait .portrait-bottom-bar {
  position: fixed;
  z-index: 190;
  right: auto;
  left: 50%;
  width: min(calc(100vw - 20px), 500px);
  transform: translateX(-50%);
}
body.room-page.room-landscape .portrait-bottom-bar {
  position: fixed;
  z-index: 190;
  transform: none;
}
body.room-page .gift-sheet {
  padding-bottom: calc(68px + env(safe-area-inset-bottom));
}
body.is-checkout-open .portrait-bottom-bar,
body.is-payment-choice-open .portrait-bottom-bar {
  opacity: 0;
  pointer-events: none;
}

/* 窄红包卡片：名称、领取状态与倒计时分区显示 */
.portrait-reward-stack .room-reward-item {
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-areas: "icon main";
  align-items: center;
  gap: 5px;
  padding: 7px 17px 7px 6px;
}
.portrait-reward-stack .room-reward-icon {
  grid-area: icon;
  align-self: start;
  width: 24px;
  height: 22px;
  font-size: 9px;
}
.portrait-reward-stack .room-reward-main {
  grid-area: main;
  min-width: 0;
}
.portrait-reward-stack .room-reward-main b,
.portrait-reward-stack .room-reward-main p,
.portrait-reward-stack .room-reward-main small {
  display: block;
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.portrait-reward-stack .room-reward-main .room-reward-status-row {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-top: 2px;
  overflow: hidden;
  white-space: nowrap;
}
.portrait-reward-stack .room-reward-status {
  flex: none;
  color: rgba(255, 241, 211, .82);
  font-size: 9px;
}
.portrait-reward-stack .room-reward-countdown {
  flex: none;
  color: #ffd98e;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  line-height: 1.35;
}
.portrait-reward-stack .room-reward-side {
  grid-area: side;
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 0;
}
.portrait-reward-stack .room-reward-side em {
  flex: none;
  font-size: 9px;
  white-space: nowrap;
}
.portrait-reward-stack .room-reward-checkin {
  min-width: 0;
  min-height: 20px;
  padding: 0 6px;
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== 视频上层降级：避免部分机型在播放时周期性闪屏 =====
   微信 X5 / 低端 GPU 在 <video> 之上叠加 backdrop-filter 时会出现
   周期性闪动，这里改用更实的半透明底色，观感接近但不再触发合成抖动。 */
.portrait-chat-list .chat-item,
.portrait-chat-list .chat-item.is-gift,
.portrait-chat-list .chat-empty,
.room-reward-item,
.gift-burst,
.portrait-reward-promo,
.portrait-viewers,
.portrait-top-actions button,
.portrait-top-actions a,
.portrait-chat-entry,
.portrait-actions,
.portrait-emoji-picker,
.portrait-product-drawer,
.portrait-pending-order,
.live-commerce-sheet,
.replay-segments,
.replay-controls,
.replay-rp-burst {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.portrait-chat-list .chat-item,
.portrait-chat-list .chat-item.is-gift {
  background: linear-gradient(115deg, rgba(26, 20, 12, .58), rgba(8, 8, 8, .42));
}
.portrait-chat-entry,
.portrait-actions {
  background: rgba(12, 12, 13, .72);
}
.portrait-reward-promo {
  background: linear-gradient(115deg, rgba(38, 25, 8, .88), rgba(12, 12, 11, .76));
}
.gift-burst {
  background: linear-gradient(100deg, rgba(9, 48, 44, .96), rgba(9, 76, 68, .94));
}
.portrait-emoji-picker {
  background: rgba(10, 12, 11, .97);
}

/* ===== 商品面板紧凑化：缩小卡片与讲解卡，减少遮挡评论区 ===== */
body.room-page .portrait-product-drawer {
  left: auto;
  right: 10px;
  bottom: calc(60px + env(safe-area-inset-bottom));
  width: min(88%, 320px);
  max-height: none;
  padding: 9px 10px 8px;
  border-radius: 15px;
}
body.room-page .portrait-product-drawer .live-domain-head { margin-bottom: 6px; }
body.room-page .portrait-product-drawer .live-domain-head b { font-size: 12px; }
body.room-page .portrait-product-drawer .live-domain-head span { display: none; }
body.room-page .portrait-product-drawer .portrait-drawer-close { width: 24px; height: 24px; font-size: 16px; }
body.room-page .portrait-product-drawer .live-product-list {
  display: grid;
  gap: 6px;
  max-height: 142px;
  margin-top: 0;
  padding-right: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
body.room-page .portrait-product-drawer .live-product-list::-webkit-scrollbar { display: none; }
body.room-page .portrait-product-drawer .live-product-item {
  width: auto;
  gap: 8px;
  padding: 6px 7px;
  border-radius: 10px;
}
body.room-page .portrait-product-drawer .live-product-cover { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 7px; font-size: 13px; }
body.room-page .portrait-product-drawer .live-product-main b { font-size: 10.5px; }
body.room-page .portrait-product-drawer .live-product-main span {
  display: block;
  overflow: hidden;
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.room-page .portrait-product-drawer .live-product-price { font-size: 11px; }
body.room-page .portrait-product-drawer .live-product-price-wrap del { font-size: 8px; }
body.room-page .portrait-product-drawer .live-product-buy {
  flex: 0 0 auto;
  min-width: 58px;
  max-width: none;
  height: 38px;
  padding: 0 12px;
  border-radius: 19px;
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(41, 73, 177, .22);
  touch-action: manipulation;
}
body.room-page .portrait-product-drawer .live-domain-status { margin-top: 5px; font-size: 9px; }

body.room-page .live-commerce-mask { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
body.room-page .live-commerce-sheet { padding: 8px 9px 7px; border-radius: 14px; }
body.room-page .live-commerce-heading { padding: 0 26px 5px 2px; }
body.room-page .live-commerce-heading > span b { font-size: 10px; }
body.room-page .live-commerce-close { top: 6px; right: 6px; width: 24px; height: 24px; font-size: 16px; }
body.room-page .live-commerce-product { grid-template-columns: 76px minmax(0, 1fr); gap: 8px; margin-top: 6px; }
body.room-page .live-commerce-cover { width: 76px; height: 76px; border-radius: 9px; font-size: 22px; }
body.room-page .live-commerce-copy h2 { font-size: 13.5px; }
body.room-page .live-commerce-copy p { margin-top: 2px; font-size: 9px; }
body.room-page .live-commerce-meta { margin-top: 3px; font-size: 8.5px; }
body.room-page .live-commerce-price strong { font-size: 17px; }
body.room-page .live-commerce-buy-row { margin-top: 4px; }
body.room-page .live-commerce-note { margin-top: 4px; font-size: 8px; }
