/* v47-lite — 老年机 / 高并发：单列、大按钮、少样式 */

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

:root {
  /* 页底：深色（非纯黑），透明 chrome 才能看出层次 */
  --page-bg-base: #12101f;
  --page-bg-gradient: linear-gradient(180deg, #221a4a 0%, #161028 48%, #0e0c18 100%);
  /* 直播 UI：统一黑色 + 透明度；blur=0 否则 alpha 差异被糊没 */
  --chrome-bg: rgba(0, 0, 0, 0.1);
  --chrome-blur: 0px;
}

/* 统一 chrome 底 — 禁止在子选择器里另写 background/backdrop */
.chrome-surface,
.live-host-pill,
.live-top-right,
.im-row,
.im-input-shell,
.login-input-shell,
.cart-search-wrap,
.cart-close-btn,
.cart-bag-btn,
.im-send-inline,
.im-fab,
.live-room-intro,
.volume-ctrl,
#toast {
  background: var(--chrome-bg);
  backdrop-filter: blur(var(--chrome-blur));
  -webkit-backdrop-filter: blur(var(--chrome-blur));
  border: none;
  box-shadow: none;
}

html, body {
  height: 100%;
  min-height: 100%;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--page-bg-base);
  background-image: var(--page-bg-gradient);
  color: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

.hidden { display: none !important; }

.page {
  position: fixed;
  inset: 0;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  background: transparent;
  background-image: var(--page-bg-gradient);
  color: #f5f5f5;
}

/* —— 抖音风顶栏 —— */
.live-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 10px 0;
  pointer-events: none;
}

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

.live-host-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: min(58vw, 240px);
  padding: 4px 6px 4px 4px;
  border-radius: 999px;
}

.live-host-av {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-host-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.live-host-initial {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.live-host-initial--tone-0 { background: linear-gradient(145deg, #409eff, #2b7fd9); }
.live-host-initial--tone-1 { background: linear-gradient(145deg, #67c23a, #4da622); }
.live-host-initial--tone-2 { background: linear-gradient(145deg, #e6a23c, #cf8420); }
.live-host-initial--tone-3 { background: linear-gradient(145deg, #f56c6c, #d94848); }
.live-host-initial--tone-4 { background: linear-gradient(145deg, #9b59b6, #7d3c98); }
.live-host-initial--tone-5 { background: linear-gradient(145deg, #1abc9c, #0e9878); }
.live-host-initial--tone-6 { background: linear-gradient(145deg, #3498db, #2176b5); }
.live-host-initial--tone-7 { background: linear-gradient(145deg, #e67e22, #c8650f); }
.live-host-initial--tone-8 { background: linear-gradient(145deg, #16a085, #0f7762); }
.live-host-initial--tone-9 { background: linear-gradient(145deg, #8e44ad, #6c3483); }
.live-host-initial--tone-10 { background: linear-gradient(145deg, #2ecc71, #1fa85a); }
.live-host-initial--tone-11 { background: linear-gradient(145deg, #34495e, #223544); }

.live-host-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.live-follow-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #ff6b9d;
  background: transparent;
  cursor: pointer;
}

.live-top-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 4px 4px 4px 6px;
  border-radius: 999px;
}

.live-viewer-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.live-viewer-stack {
  position: relative;
  width: 52px;
  height: 24px;
  flex-shrink: 0;
}

.live-vav {
  position: absolute;
  bottom: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.live-vav--1 { left: 0; z-index: 2; }
.live-vav--2 { left: 14px; z-index: 1; }
.live-vav--3 { left: 28px; z-index: 0; }

.live-vav--tone-0 { background: linear-gradient(145deg, #409eff, #2b7fd9); }
.live-vav--tone-1 { background: linear-gradient(145deg, #67c23a, #4da622); }
.live-vav--tone-2 { background: linear-gradient(145deg, #e6a23c, #cf8420); }
.live-vav--tone-3 { background: linear-gradient(145deg, #f56c6c, #d94848); }
.live-vav--tone-4 { background: linear-gradient(145deg, #9b59b6, #7d3c98); }
.live-vav--tone-5 { background: linear-gradient(145deg, #1abc9c, #0e9878); }
.live-vav--tone-6 { background: linear-gradient(145deg, #3498db, #2176b5); }
.live-vav--tone-7 { background: linear-gradient(145deg, #e67e22, #c8650f); }
.live-vav--tone-8 { background: linear-gradient(145deg, #16a085, #0f7762); }
.live-vav--tone-9 { background: linear-gradient(145deg, #8e44ad, #6c3483); }
.live-vav--tone-10 { background: linear-gradient(145deg, #2ecc71, #1fa85a); }
.live-vav--tone-11 { background: linear-gradient(145deg, #34495e, #223544); }

.live-viewer-count {
  flex-shrink: 0;
  min-width: 18px;
  padding: 2px 6px;
  border-radius: 999px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  font-variant-numeric: tabular-nums;
}

.live-exit-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.live-exit-btn .material-symbols-outlined {
  font-size: 20px;
}

.cart-toggle {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  padding: 0 5px;
  border-radius: 10px;
  background: #fe2c55;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(254, 44, 85, 0.45);
}

.login-field-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.login-input-shell--flex {
  flex: 1;
  min-width: 0;
}

#login-mask,
#purchase-login-mask {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  padding: 0;
}

#login-mask {
  z-index: 100;
}

.login-sheet,
.cart-sheet {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  box-sizing: border-box;
}

.login-sheet {
  padding: 8px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, rgba(34, 28, 58, 0.97) 0%, rgba(14, 12, 24, 0.98) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.login-sheet-handle,
.cart-sheet-handle {
  width: 36px;
  height: 4px;
  margin: 4px auto 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.cart-sheet-handle {
  margin-bottom: 8px;
}

.login-title {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
  margin-bottom: 4px;
}

.login-subtitle {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.48);
  margin-bottom: 16px;
}

.login-field {
  margin-bottom: 10px;
}

.login-input-shell {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 999px;
}

.login-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 0;
  padding: 0;
  font-size: 16px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
}

.login-input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.login-input:focus {
  outline: none;
}

.login-sms-btn {
  flex-shrink: 0;
  min-height: 48px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: var(--chrome-bg);
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.login-sms-btn:active:not(:disabled) {
  opacity: 0.75;
}

.login-sms-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.login-submit {
  margin-top: 6px;
}

.login-cancel-btn {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  cursor: pointer;
}

.login-cancel-btn:active {
  opacity: 0.75;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 12px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.btn-wechat {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 999px;
  background: #07c160;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-wechat:active {
  opacity: 0.88;
}

.btn-wechat .material-symbols-outlined {
  font-size: 20px;
}

/* 商品 / 订单 / 收银台 / 支付结果 — 统一底部抽屉 */
#cart-panel,
#orders-panel,
#checkout-mask,
#pay-result-mask {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

#cart-panel,
#orders-panel {
  z-index: 500;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.cart-sheet {
  position: relative;
  z-index: 2;
  max-height: min(72vh, 620px);
  display: flex;
  flex-direction: column;
  padding: 6px 0 calc(10px + env(safe-area-inset-bottom, 0px));
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, rgba(34, 28, 58, 0.97) 0%, rgba(14, 12, 24, 0.98) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.cart-store-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 8px;
  flex-shrink: 0;
}

.cart-search-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
}

.cart-search-wrap .material-symbols-outlined {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.45);
}

.cart-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  outline: none;
}

.cart-search-input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.cart-store-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.cart-store-action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 2px 4px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.cart-store-action .material-symbols-outlined {
  font-size: 20px;
}

.cart-store-action-label {
  font-size: 10px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.48);
  margin-top: 1px;
}

.cart-store-action .cart-badge {
  top: 2px;
  right: 4px;
}

.cart-close-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.55);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.cart-tabs {
  display: flex;
  gap: 20px;
  padding: 0 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.cart-tab {
  position: relative;
  border: none;
  background: transparent;
  padding: 0 0 8px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.48);
  cursor: default;
}

.cart-tab.is-active {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 700;
}

.cart-tab.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 24px;
  height: 3px;
  margin-left: -12px;
  border-radius: 999px;
  background: #fe2c55;
}

.cart-list {
  overflow-y: auto;
  flex: 1;
  min-height: 120px;
  padding: 4px 12px 8px;
}

.cart-list .empty {
  color: rgba(255, 255, 255, 0.48);
  padding: 32px 12px;
}

.cart-row {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-row:last-child {
  border-bottom: none;
}

.cart-thumb {
  position: relative;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-thumb-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #fe2c55;
  background: linear-gradient(145deg, rgba(254, 44, 85, 0.18), rgba(255, 107, 157, 0.1));
}

.cart-thumb-tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
}

.cart-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 96px;
}

.cart-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.96);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.cart-tag {
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.4;
  border: 1px solid rgba(254, 44, 85, 0.35);
  color: #ff6b9d;
  background: rgba(254, 44, 85, 0.12);
}

.cart-tag--muted {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.06);
}

.cart-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

.cart-price {
  font-size: 20px;
  font-weight: 700;
  color: #fe2c55;
  letter-spacing: -0.02em;
}

.cart-price-yen {
  font-size: 13px;
  font-weight: 700;
}

.cart-price-old {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: line-through;
}

.cart-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

.cart-bag-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-bag-btn .material-symbols-outlined {
  font-size: 20px;
}

.cart-bag-btn:active {
  opacity: 0.7;
}

.cart-buy-btn {
  flex-shrink: 0;
  min-width: 72px;
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #fe2c55 0%, #ff6b9d 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(254, 44, 85, 0.28);
}

.cart-buy-btn:active {
  opacity: 0.85;
}

.cart-bag-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.cart-bag-back {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  padding: 4px 0;
  cursor: pointer;
}

.cart-bag-title {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
}

.cart-settle-btn {
  flex-shrink: 0;
  margin: 8px 12px 0;
  width: calc(100% - 24px);
  min-height: 44px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #fe2c55 0%, #ff6b9d 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(254, 44, 85, 0.28);
}

.cart-settle-btn:active {
  opacity: 0.85;
}

.cart-bag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-bag-row-main {
  flex: 1;
  min-width: 0;
}

.cart-bag-qty {
  flex-shrink: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.48);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.btn {
  min-height: 40px;
  min-width: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  cursor: pointer;
}

.btn-accent {
  color: #7ec8ff;
  border-color: rgba(126, 200, 255, 0.35);
  background: rgba(64, 158, 255, 0.12);
}

.hint { font-size: 14px; color: rgba(255, 255, 255, 0.55); }
.hint.time { margin-left: auto; }

.layout {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  /* 顶栏高度 + 与白板间距 12px */
  padding-top: calc(52px + 12px + env(safe-area-inset-top, 0px));
}

.board {
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: var(--page-bg-base);
  flex-shrink: 0;
  align-self: stretch;
  width: 100%;
}

#courseware-scroll {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  background: var(--page-bg-base);
}

#courseware-img {
  display: block;
  width: 100%;
  height: auto;
}

#whiteboard-canvas {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.empty {
  padding: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
}

.media {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.live-room-intro {
  flex-shrink: 0;
  width: calc(100% - 16px);
  margin: 16px 8px 0;
  padding: 10px 14px;
  border-radius: 10px;
  box-sizing: border-box;
}

.live-room-intro-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  word-break: break-word;
  white-space: pre-wrap;
}

.player-box {
  position: relative;
  background: var(--page-bg-base);
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

.player-placeholder {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(22, 18, 38, 0.98) 0%, rgba(12, 10, 22, 0.98) 100%);
  overflow: hidden;
}

.player-placeholder__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: ph-shimmer 1.6s ease-in-out infinite;
}

@keyframes ph-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.player-placeholder__spinner {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.player-placeholder__text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}

#player-list {
  width: 100%;
  height: 100%;
}

.volume-ctrl {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 5px 3px 8px;
  border-radius: 14px;
  pointer-events: auto;
}

.vol-btn {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vol-btn:active { background: rgba(255, 255, 255, 0.12); }

.vol-icon {
  display: block;
  width: 13px;
  height: 13px;
}
.vol-icon.hidden { display: none; }

.vol-slider {
  width: 80px;
  height: 28px;
  margin: 0;
  accent-color: #fff;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

.vol-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
}

.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.vol-slider::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
}

.vol-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.player-wrap,
#player-list .player-wrap {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 0;
  overflow: hidden;
}

#player-list video,
.player-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

#playback-slider {
  width: 100%;
  height: 32px;
  accent-color: #409eff;
  flex-shrink: 0;
}

.im {
  border: none;
  border-radius: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: transparent;
  padding: 0 8px;
  margin-top: 8px;
}

.im-list-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.im-list-wrap::before {
  display: none;
}

#im-list {
  list-style: none;
  overflow-y: auto;
  padding: 8px 0 6px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  -webkit-overflow-scrolling: touch;
}

.im-item {
  font-size: 13px;
  padding: 0;
  border-bottom: none;
  align-self: flex-start;
  max-width: 100%;
}

.im-row {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  width: fit-content;
  max-width: min(100%, 320px);
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.im-avatar {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-sizing: border-box;
  box-shadow: none;
}
.im-avatar--photo {
  display: block;
  object-fit: cover;
  background: #e4e7ed;
}
.im-avatar--tone-0 { background: linear-gradient(145deg, #409eff, #2b7fd9); }
.im-avatar--tone-1 { background: linear-gradient(145deg, #67c23a, #4da622); }
.im-avatar--tone-2 { background: linear-gradient(145deg, #e6a23c, #cf8420); }
.im-avatar--tone-3 { background: linear-gradient(145deg, #f56c6c, #d94848); }
.im-avatar--tone-4 { background: linear-gradient(145deg, #9b59b6, #7d3c98); }
.im-avatar--tone-5 { background: linear-gradient(145deg, #1abc9c, #0e9878); }
.im-avatar--tone-6 { background: linear-gradient(145deg, #3498db, #2176b5); }
.im-avatar--tone-7 { background: linear-gradient(145deg, #e67e22, #c8650f); }
.im-avatar--tone-8 { background: linear-gradient(145deg, #16a085, #0f7762); }
.im-avatar--tone-9 { background: linear-gradient(145deg, #8e44ad, #6c3483); }
.im-avatar--tone-10 { background: linear-gradient(145deg, #2ecc71, #1fa85a); }
.im-avatar--tone-11 { background: linear-gradient(145deg, #34495e, #223544); }
.im-content {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.im-nick {
  display: inline;
  font-weight: 600;
  font-size: 12px;
  margin-right: 0;
  color: rgba(255, 255, 255, 0.78);
  background: none;
  border: none;
}

.im-body {
  display: inline;
  color: #fff;
  word-break: break-word;
  line-height: 1.45;
  background: none;
  border: none;
}

.im-compose {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 0 calc(10px + env(safe-area-inset-bottom, 0px));
  background: transparent;
  flex-shrink: 0;
}

.im-input-shell {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
}

.im-input {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 0;
  padding: 0;
  font-size: 14px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: rgba(255, 255, 255, 0.92);
}
.im-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.im-input:focus {
  outline: none;
  background: transparent;
  border: none;
}

.im-send-inline {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, opacity 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.im-send-inline:active:not(:disabled) {
  transform: scale(0.94);
  opacity: 0.75;
}

.im-send-inline:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.im-send-inline .material-symbols-outlined {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.88);
}

.im-fab {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.12s ease, opacity 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.im-fab:active:not(:disabled) {
  transform: scale(0.94);
  opacity: 0.75;
}

.im-fab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.im-fab .material-symbols-outlined {
  font-size: 28px;
  filter: none;
}

.im-fab--gift .material-symbols-outlined {
  color: #ff6b9d;
}

.im-fab--cart .material-symbols-outlined {
  color: #ffc940;
}

/* 礼物/商品必须与输入框/发送共用 chrome-bg，禁止 background:transparent 覆盖 */
.im-fab.im-fab--gift,
.im-fab.im-fab--cart,
.im-fab.im-fab--orders {
  background: var(--chrome-bg);
  backdrop-filter: blur(var(--chrome-blur));
  -webkit-backdrop-filter: blur(var(--chrome-blur));
}

.im-fab--orders .material-symbols-outlined {
  color: #ffc940;
}

.im-fab--cart .cart-badge {
  top: -1px;
  right: -1px;
  border: none;
}

.im-time { color: #909399; margin-right: 6px; }

.im-skeleton {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 4px 12px;
}

.im-skeleton__line {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.06) 100%
  );
  background-size: 200% 100%;
  animation: ph-shimmer 1.6s ease-in-out infinite;
}

.im-skeleton__line--a { width: 72%; }
.im-skeleton__line--b { width: 58%; animation-delay: 0.15s; }
.im-skeleton__line--c { width: 64%; animation-delay: 0.3s; }

#app.is-booting .im-compose .im-fab,
#app.is-booting .im-compose .im-send-inline {
  pointer-events: none;
  opacity: 0.55;
}

#app.is-booting #im-list {
  opacity: 0;
  pointer-events: none;
}

html:not(.fonts-ready) .material-symbols-outlined {
  color: transparent !important;
  user-select: none;
}

html:not(.fonts-ready) .im-fab,
html:not(.fonts-ready) .im-send-inline,
html:not(.fonts-ready) .live-exit-btn {
  position: relative;
}

html:not(.fonts-ready) .im-fab::after,
html:not(.fonts-ready) .im-send-inline::after,
html:not(.fonts-ready) .live-exit-btn::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  animation: ph-shimmer 1.6s ease-in-out infinite;
}

#loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--page-bg-base);
  background-image: var(--page-bg-gradient);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 200;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: rgba(255, 255, 255, 0.55); font-size: 15px; }

.btn-primary {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #fe2c55 0%, #ff6b9d 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(254, 44, 85, 0.35);
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.98);
  opacity: 0.9;
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#thumb-dialog {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.thumb-panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 480px);
  max-height: 80vh;
  background: linear-gradient(180deg, rgba(34, 28, 58, 0.97) 0%, rgba(14, 12, 24, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.thumb-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.thumb-head button {
  border: none;
  background: none;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.55);
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

.thumb-grid {
  padding: 10px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: var(--chrome-bg);
  cursor: pointer;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.thumb.on { border-color: #fe2c55; }

.thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.35);
}

#toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  z-index: 700;
  transition: opacity 0.2s;
}

#toast.show { opacity: 1; }

/* —— 收银台 / 支付结果 —— */
#checkout-mask,
#pay-result-mask {
  z-index: 650;
}

.checkout-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.checkout-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  overflow: auto;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(34, 28, 58, 0.98) 0%, rgba(14, 12, 24, 0.99) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px 20px 0 0;
}

.checkout-sheet-handle {
  width: 36px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.checkout-title {
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
}

.checkout-subtitle {
  margin-top: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.checkout-item-name {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
}

.checkout-item-meta {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.checkout-item-price {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 600;
  color: #fe6b9d;
}

.checkout-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.checkout-amount {
  font-size: 18px;
  color: #fe6b9d;
}

.checkout-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  word-break: break-all;
  text-align: right;
  max-width: 62%;
}

.checkout-submit { margin-bottom: 10px; }

.checkout-cancel-btn {
  width: 100%;
  min-height: 44px;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  cursor: pointer;
}

.checkout-sheet--result .pay-result-icon {
  display: flex;
  justify-content: center;
  margin: 4px 0 8px;
}

.checkout-sheet--result .pay-result-icon .material-symbols-outlined {
  font-size: 52px;
  color: #3ddc84;
}

.orders-panel-title {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.orders-balance-pill {
  margin-left: auto;
  margin-right: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(254, 44, 85, 0.15);
  color: #ffb3c7;
  font-size: 12px;
  white-space: nowrap;
}

.orders-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 12px 12px;
}

.order-row {
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.order-row-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.order-row-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.order-row-status {
  font-size: 12px;
  color: #3ddc84;
}

.order-row-status.is-pending { color: #ffc857; }
.order-row-status.is-cancelled { color: rgba(255, 255, 255, 0.45); }

.order-row-amount {
  font-size: 16px;
  font-weight: 600;
  color: #fe6b9d;
}

.order-row-time {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

/* —— 商品详情（对齐 shop ProductDetailPage · 看播深色半屏） —— */
#product-detail-panel {
  position: fixed;
  inset: 0;
  z-index: 520;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.product-detail-sheet {
  max-height: min(92vh, 780px);
  width: 100%;
  max-width: 480px;
}

.product-detail-top {
  flex-shrink: 0;
  padding: 4px 12px 8px;
}

.product-detail-back {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  padding: 6px 0;
  cursor: pointer;
}

.product-detail-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 0 12px;
}

.product-detail-muted {
  padding: 24px 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
}

.product-detail-err {
  padding: 24px 16px;
  text-align: center;
  color: #ff8a80;
  font-size: 14px;
}

.cart-row--clickable {
  cursor: pointer;
}

.cart-row--clickable:active {
  opacity: 0.88;
}

.pd-gallery-wrap {
  position: relative;
  margin: 0 0 12px;
  background: #000;
}

.pd-gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  aspect-ratio: 1;
}

.pd-gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  scroll-snap-align: center;
  background: #111;
}

.pd-gallery--empty {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.pd-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.pd-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.pd-dot.is-active {
  background: #fff;
  width: 16px;
  border-radius: 3px;
}

.pd-gallery-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-size: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  padding: 2px 8px;
  border-radius: 10px;
  z-index: 1;
}

.pd-head,
.pd-card,
.pd-badges {
  margin: 0 12px 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.pd-sale {
  font-size: 24px;
  font-weight: 700;
  color: #fe2c55;
}

.pd-list-price {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: line-through;
}

.pd-promo-tag {
  font-size: 11px;
  color: #fe2c55;
  border: 1px solid rgba(254, 44, 85, 0.55);
  padding: 1px 6px;
  border-radius: 4px;
}

.pd-title {
  font-size: 17px;
  margin: 8px 0 6px;
  line-height: 1.4;
}

.pd-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.pd-ship {
  font-size: 13px;
  color: #7dcea0;
  margin: 8px 0 0;
}

.pd-badges {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.pd-badge {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.pd-badge .material-symbols-outlined {
  font-size: 20px;
  color: #fe6b9d;
}

.pd-card h3 {
  font-size: 15px;
  margin: 0 0 10px;
}

.pd-sku-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pd-sku-chip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.pd-sku-chip.is-active {
  border-color: #fe2c55;
  color: #ff8fab;
}

.pd-sku-chip.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pd-sku-label { display: block; font-weight: 600; }
.pd-sku-price { display: block; font-weight: 600; margin-top: 2px; }
.pd-sku-stock { font-size: 11px; color: rgba(255, 255, 255, 0.45); }

.pd-qty-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

.pd-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pd-qty-ctrl button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  cursor: pointer;
}

.pd-tab-bar {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin: -4px -4px 12px;
}

.pd-tab {
  flex: 1;
  border: none;
  background: none;
  padding: 10px 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.pd-tab.is-active {
  color: #fe6b9d;
  border-bottom-color: #fe6b9d;
  font-weight: 600;
}

.pd-tab-panel {
  font-size: 14px;
  line-height: 1.6;
}

.pd-rich {
  white-space: pre-wrap;
  word-break: break-word;
}

.pd-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.pd-spec-table th {
  text-align: left;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  padding: 8px 8px 8px 0;
  vertical-align: top;
  white-space: nowrap;
  width: 28%;
}

.pd-spec-table td {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pd-service-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.55);
}

.pd-reviews-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.product-detail-dock {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 12, 24, 0.98);
}

.pd-dock-icon {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: none;
  background: none;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  padding: 4px 8px;
  cursor: pointer;
  position: relative;
}

.pd-dock-icon .material-symbols-outlined {
  font-size: 22px;
}

.pd-cart-badge {
  position: absolute;
  top: 0;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #fe2c55;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  line-height: 16px;
  text-align: center;
}

.pd-dock-actions {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pd-dock-sum {
  display: none;
  font-size: 15px;
  font-weight: 700;
  color: #fe2c55;
  white-space: nowrap;
}

.pd-btn-cart,
.pd-btn-buy {
  flex: 1;
  border: none;
  border-radius: 20px;
  padding: 11px 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.pd-btn-cart {
  background: rgba(255, 183, 77, 0.22);
  color: #ffb74d;
}

.pd-btn-buy {
  background: linear-gradient(135deg, #fe2c55, #ff6b9d);
  color: #fff;
}

.pd-btn-cart:disabled,
.pd-btn-buy:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (min-width: 400px) {
  .pd-dock-sum { display: block; }
}

/* 保持单列竖屏栈 */
@media (min-width: 900px) {
  .page { max-width: 480px; }
}
