/* Prevent template flash before Vue mounts (e.g. debug panel flicker) */
[v-cloak] {
    display: none !important;
}



.player-poster[data-poster] .play-wrapper[data-poster] svg{
    width: 20%;
}

.media-control{
    display: none !important;
}

.player-poster[data-poster] .play-wrapper[data-poster] svg{
    display: none  !important;
}

/* =========================
   微信登录弹窗（静态版 live_bak）
   ========================= */
.wechat-login-overlay {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2600;
}

.wechat-login-popup {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  transition: transform 0.3s ease;
  max-height: 80vh;
  overflow-y: auto;
  background-color: #fff;
  border-radius: 16px;
  padding: 20px;
  max-width: 320px;
  width: 80%;
  z-index: 99999;
}

.wechat-login-popup.show {
  transform: translate(-50%, -50%) scale(1);
}

.wechat-login-popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  color: #333;
}

.wechat-login-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.wechat-login-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 30px;
  text-align: center;
}

.wechat-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80%;
  height: 44px;
  background-color: #07c160;
  border-radius: 22px;
  margin-bottom: 15px;
  cursor: pointer;
  border: none;
  color: #fff;
  font-size: 16px;
}

.wechat-login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.wechat-login-tips {
  font-size: 0.22rem;
  color: #999;
  margin-bottom: 20px;
  text-align: center;
}

.wechat-login-close {
  width: 80%;
  height: 44px;
  background-color: #f5f5f5;
  border: none;
  border-radius: 22px;
  color: #333;
  font-size: 16px;
  cursor: pointer;
}

html {
    font-size: 13.33333333vw !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100% !important;
    -moz-text-size-adjust: 100% !important;
    -ms-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
}

html,
body,
#app {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    overflow-x: hidden;
    background: #000;
}

/* =========================
   微信内置浏览器兼容（X5/WebView）
   现象：微信可能会对文本做自动放大(font boosting / text autosizing)，
   导致同一行内容在微信里更宽，从而出现意外换行。
   ========================= */
html,
body {
    -webkit-text-size-adjust: 100% !important;
    -moz-text-size-adjust: 100% !important;
    -ms-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
}

body {
    font-size: 13.33333333vw !important;
}

.background-live-player-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    background: #000;
}

/* Clappr 挂载容器：pointer-events 交给外层 wrapper；叠放上下文限制内部 z-index（Clappr 可达 9999），避免盖住 .bc-praise */
.live-player-host {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none !important;
    z-index: 0;
    isolation: isolate;
    overflow: hidden;
    background: #000;
}

/* Clappr 内部层强制铺满视口（默认会按比例留黑边） */
.live-player-host > div,
.live-player-host [data-player],
.live-player-host .container,
.live-player-host [data-container],
.live-player-host [data-playback],
.live-player-host .player-poster {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
}

.live-player-host video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    background: #000;
}

.tcplayer-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

/* TCPlayer 内部元素样式 */
.tcplayer {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

.tcplayer video {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    background: #000;
}

.tcplayer-container {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

/* 隐藏 TCPlayer 控制栏 */
.tcplayer .tcp-controls,
.tcplayer .tcplayer-controls,
.tcplayer .tcp-control-bar,
.tcplayer .tcp-ui,
.tcplayer .tcp-controls-container {
    display: none !important;
}

.tcplayer .tcp-poster {
    display: none !important;
}

.debug-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.95);
    border: 3px solid #00ff00;
    border-radius: 10px;
    z-index: 9999;
    font-size: 12px;
    color: #fff;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.debug-header {
    padding: 8px 12px;
    background: rgba(0, 255, 0, 0.2);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    border-bottom: 1px solid #00ff00;
    font-size: 13px;
}

.debug-toggle {
    font-size: 12px;
}

.debug-body {
    padding: 8px;
}

.debug-item {
    padding: 6px 8px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.debug-item-full {
    flex-direction: column;
    gap: 5px;
}

.debug-label {
    color: #00ff00;
    font-weight: bold;
    flex-shrink: 0;
}

.debug-value {
    color: #fff;
    text-align: right;
    word-break: break-all;
}

.debug-value-small {
    font-size: 9px;
    line-height: 1.4;
    color: #ccc;
}

.debug-value-error {
    color: #ff0000;
    font-weight: bold;
}

.debug-value-pre {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-all;
    background: rgba(255, 0, 0, 0.1);
    padding: 8px;
    border-radius: 4px;
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
}

/* 播放按钮样式 */
.play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    cursor: pointer;
}

.play-button {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-in;
}

.play-button svg {
    margin-left: 4px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.play-button:active {
    transform: scale(0.95);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading 样式 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-tip {
    margin-top: 20px;
    font-size: 16px;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 正在进入直播间动画 */
.entering-animation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 20000;
    animation: fadeOut 0.5s ease-out 2s forwards;
    overflow: hidden;
}

.entering-animation-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(20, 20, 30, 0.7) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.entering-animation-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.entering-spinner {
    width: 70px;
    height: 70px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top: 4px solid #fff;
    border-right: 4px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 25px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.entering-text {
    font-size: 18px;
    color: #fff;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    animation: pulse 1.8s ease-in-out infinite;
    letter-spacing: 1px;
    margin: 0;
    text-align: center;
    line-height: 1.6;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-3px);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* 直播间信息展示样式 */
.live-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /*
      修复：底部“购物车/礼物/点赞”等 @click 无效
      live_bak 版这里原来是 pointer-events: none，会导致整块 overlay（包含 .up-comment）无法接收点击。
      具体可点击区域已在各组件上做了 pointer-events: auto，这里保持可交互即可。
    */
    pointer-events: auto;
}

/* =========================
   顶部信息区（对齐 z_show_bak）
   - up-subscribe：主播信息条
   - up-ads-marquee：公告跑马灯
   ========================= */

.up-subscribe {
    position: absolute;
    top: 0.4rem;
    left: 0.16rem;
    z-index: 220;
}

.up-subscribe__watch {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    font-size: 0.24rem;
    line-height: 0.3rem;
    color: #fff;
    opacity: 0.95;
}

.up-subscribe__watch i {
    width: 0.3rem;
    height: 0.3rem;
    margin-right: 0.1rem;
    
    background: url('assets2/fire.png') no-repeat 50%;
    background-size: 100%;
}

.up-subscribe__main {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.04rem 0.12rem 0.04rem 0.04rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.36rem;
}

.up-subscribe__avatar {
    position: relative;
    width: 0.64rem;
    height: 0.64rem;
    margin-right: 0.08rem;
    overflow: hidden;
    border-radius: 50%;
}

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

.up-subscribe__info {
    max-width: 15em;
    max-width: min(15em, calc(100vw - 1rem));
    margin-right: 0.12rem;
    font-size: 0.28rem;
    display: flex;
    flex-direction: column;
}

.up-subscribe__row2 {
    display: flex;
    align-items: center;
    gap: 0.16rem;
    padding: 0.04rem 0;
}

.up-subscribe__row2 .up-subscribe__watch {
    padding: 0;
}

.up-subscribe__row2 .up-subscribe__action {
    padding: 0.06rem 0.2rem;
    font-size: 0.22rem;
    line-height: 0.34rem;
    color: #fff;
    background: rgb(37, 99, 235);
    border-radius: 0.32rem;
    white-space: nowrap;
}

.up-subscribe__info p {
    padding: 0.04rem 0;
    line-height: 1;
}

.up-subscribe__action {
    /* 默认样式保留；具体布局在 .up-subscribe__row2 中控制 */
    padding: 0.06rem 0.2rem;
    font-size: 0.32rem;
    line-height: 0.44rem;
    color: #fff;
    background: linear-gradient(230deg, #ff248a, #fe2967 61%, #fd2972);
    border-radius: 0.32rem;
}

.up-ads {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 230;
    width: 100%;
}

.up-ads .up-ads-marquee {
    display: flex;
    gap: 0.1rem;
    align-items: center;
    width: 100%;
    height: 0.56rem;
    padding: 0 0.24rem;
    font-size: 0.34rem;
    line-height: 0.56rem;
    color: #fff;
    background: #e53935;
}

.live-info-overlay:has(.up-ads) .up-subscribe {
    top: 0.68rem;
}

.live-info-overlay:has(.up-ads) .up-comment-layout {
    top: 0.68rem;
}

.live-info-overlay:has(.up-ads) .live-online-badge {
    top: 0.68rem;
}

.up-ads .up-ads-marquee .scroll-box {
    flex: 1;
    width: 0;
    overflow: hidden;
}

.up-ads .up-ads-marquee .content {
    display: inline-block;
    white-space: nowrap;
    animation: textLoop-livebak 13s linear infinite normal;
}

.up-ads .up-ads-marquee .content-static {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
    animation: none;
}

@keyframes textLoop-livebak {
    0% {
        transform: translateX(4rem);
    }
    to {
        transform: translateX(-100%);
    }
}

/* 右上角在线人数 */
.live-online-badge {
    position: absolute;
    top: 0.88rem;
    right: 0.1rem;
    z-index: 270;
    display: flex;
    align-items: center;
    height: 0.56rem;
    padding: 0 0.18rem 0 0.08rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 0.28rem;
    pointer-events: none;
}

.live-online-badge__avatars {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.live-online-badge__avatars img {
    width: 0.44rem;
    height: 0.44rem;
    margin-left: -0.12rem;
    object-fit: cover;
    background: #ccc;
    border: 1.5px solid #fff;
    border-radius: 50%;
}

.live-online-badge__avatars img:first-child {
    margin-left: 0;
}

.live-online-badge__text {
    margin-left: 0.12rem;
    font-size: 0.26rem;
    line-height: 1;
    color: #fff;
    white-space: nowrap;
}

/* =========================
   顶部功能按钮区（投诉/客服/订单/刷新）
   ========================= */
.up-comment-layout {
    position: absolute;
    top: 1.28rem;
    right: 0.16rem;
    z-index: 260;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    pointer-events: auto;
}

.up-comment-layout__item {
    pointer-events: auto;
    width: 1rem;
    height: 1rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.1rem;
    border-radius: 50%;
    right:0.1rem;
    top:0.3rem;
}

.up-comment-layout .live-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.06rem;
}

.live-icon-text {
    margin-top: -0.2rem;
    padding: 0.04rem 0.12rem;
    font-size: 0.22rem;
    line-height: 0.3rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 0.18rem;
    text-align: center;
    white-space: nowrap;
}

.live-icon-text-tousu {
    background: rgba(255, 0, 0, 0.7);
}

.live-icon-text-span {
    display: inline-block;
    transform: translateY(0.01rem);
}

.live-icon-tousu .live-icon-img {
    width: 0.82rem;
    height: 0.82rem;
}

.switch-line-btn {
    width: 0.80rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    left:0.3rem;
    border-radius: 50%;
    top:0.3rem;
    pointer-events: auto;
}

.ui-icon-reload {
    margin-top: 0.9rem;
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    background: url('assets2/load.png') no-repeat center;
    background-size: contain;
}

/* 直播间标题 */
.live-header {
    position: relative;
    padding: 10px 15px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
    text-align: center;
}

.live-title {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* 主播信息 */
.live-host-info {
    position: absolute;
    top: 50px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    max-width: 200px;
}

.host-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.host-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.host-details {
    flex: 1;
    min-width: 0;
}

.host-name {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.host-heat {
    color: #ffd700;
    font-size: 12px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.heat-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url('assets2/down.svg') no-repeat center;
    background-size: contain;
}

/* 公告滚动 */
.live-announcement {
    position: absolute;
    top: 100px;
    left: 15px;
    right: 15px;
    background: rgba(247, 11, 7, 0.9);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    overflow: hidden;
    max-width: calc(100% - 30px);
}

.announcement-content {
    white-space: nowrap;
    animation: scroll-text 20s linear infinite;
    display: inline-block;
}

@keyframes scroll-text {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.tcp-right-click-popup-menu { display: none !important; }
/* 弹幕列表样式 */
.up-comment {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 110;
    width: 100%;
    color: #fff;
    pointer-events: auto;
}

/* 与另存的 vue->html 版本保持一致：占位控制（避免底部控件遮挡） */
.up-comment--active {
    bottom: 0;
}

.up-comment--placeholder-control {
    /* 该类用于与 .up-comment--active 搭配做占位控制；默认保持与 .up-comment 一致 */
    bottom: 0;
}

.up-comment--placeholder-control.up-comment--active {
    bottom: 0;
    z-index: 20;
}

.up-comment__list-wrap {
    position: relative;
    width: 4.7rem;
    max-width: calc(100vw - 0.4rem);
    height: 3.4rem;
    margin-left: 0.2rem;
    overflow: hidden;
    bottom: 1.8rem;
}

.up-comment__more {
    position: absolute;
    left: 0.12rem;
    right: 0.12rem;
    bottom: 0.10rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.06rem 0.12rem;
    font-size: 0.22rem;
    line-height: 0.32rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    border: 0.02rem solid rgba(255, 255, 255, 0.10);
    border-radius: 0.18rem;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    backdrop-filter: blur(6px);
}

.up-comment__list-wrap .ui-icon-loading {
    display: block;
    transform: scale(0.8);
}

.recommend-list-wrap {
    width: 4.62rem !important;
}

.up-comment--placeholder-control.up-comment--active .up-comment__list-wrap {
    margin-bottom: 0.68rem;
}

.up-comment__list-inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%;
}

.up-comment__list-inner ul {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

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

.comment-item-entering {
    animation: commentSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: bottom center;
}

/* =========================
   弹幕项外层
   ========================= */
._comment-item {
    max-width: 100%;
    padding: 0.04rem 0.12rem;
    margin-top: 0.1rem;
    font-size: 0.28rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.12rem;
    box-sizing: border-box;
}

/* =========================
   核心：内容作为"文本段落"
   ========================= */
._comment-item__content {
    display: block;            /* ❗ 不用 flex，交给浏览器排版 */
    max-width: 100%;
    line-height: 0.44rem;
    white-space: normal;
    word-break: break-word;
}

._comment-item__text-wrapper {
    display: inline-flex;         /* 用户名和内容在同一行 */
    align-items: flex-start;      /* 顶部对齐，支持多行内容 */
    flex-wrap: wrap;              /* 允许内容部分换行 */
    white-space: normal;          /* 允许内容换行 */
    word-wrap: break-word;
    flex: 1 1 auto;              /* 允许收缩和扩展 */
    min-width: 0;                 /* 允许收缩到0 */
}

/* =========================
   马甲：一个不可拆的 inline 块
   ========================= */
.badge {
    display: inline-block;
    vertical-align: baseline;
    margin-right: 0.06rem;
    white-space: nowrap;       /* 马甲内部永不换行 */
}

/* =========================
   原马甲结构（基本沿用）
   ========================= */
.style-icon-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 0.28rem;
}

.upper-layer.upper-layer-7 {
    position: relative;
    display: inline-flex;
    align-items: center;
    /* height: 0.28rem; */
    height: auto;
    line-height: 0.28rem;
    padding: 0 0.18rem 0 0.48rem;
    border-radius: 0.14rem;
    font-size: 0.21rem;
    color: #fff;
}

.upper-layer.upper-layer-7 .name-text {
    white-space: nowrap;
    font-size: 0.20rem;
}

/* 两套配色：用于“用户弹幕马甲 / 节奏弹幕马甲”区分 */
.upper-layer.upper-layer-7.color1 {
    background: rgba(138, 84, 255, 0.90); /* 偏紫 */
}
.upper-layer.upper-layer-7.color2 {
    background: rgba(255, 150, 0, 0.88);
}

.upper-layer.upper-layer-7 .trapezoid {
    position: absolute;
    left: 0.12rem;
    bottom: -0.10rem;
    width: 0.70rem;
    height: 0.18rem;
    background: rgba(0, 0, 0, 0.18);
    transform: skewX(-18deg);
}

/* =========================
   马甲贴图
   ========================= */
.img-7 {
    position: absolute;
    left: -0.06rem;
    top: 50%;
    transform: translateY(-50%);
    height: 0.36rem;
    pointer-events: none;
}

.text-wrap {
    display: none;
}

.uc-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================
   昵称 & 内容
   ========================= */
.nickname {
    color: #8deef6;
    white-space: nowrap;       /* 昵称不单独断 */
}

.detail {
    white-space: normal;
    word-break: break-word;    /* 只让内容断 */
}

._comment-itemTips {
    padding: 0.04rem 0;
    background: transparent;
}

.frTips {
    width: 100%;
    padding: 0.12rem 0.18rem;
    font-size: 0.28rem;
    line-height: 0.4rem;
    color: #8deef6;
    background: rgba(0, 0, 0, 0.36);
    border-radius: 0.12rem;
}

/* =========================
   弹幕换行优化（live_bak）
   - 马甲 + 用户名 + 弹幕 作为一个整体
   - 超出宽度时整体换到下一行，不裁剪、不重叠
   ========================= */
._comment-item {
    max-width: 100%;
    overflow: visible; /* 允许内部多行内容完整显示 */
}

._comment-item__content {
    display: block;          /* ✅ 回到文本段落 */
    max-width: 100%;
    line-height: 0.44rem;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
}


/* 快捷回复按钮样式 */
.sideCommon {
    position: absolute;
    left: 0;
    /* right: 0.2rem; */
    bottom: 1.3rem; /* 高于底部输入条（0.2rem）一段距离，避免重叠 */
    z-index: 119;   /* 介于弹幕列表(110)和输入区域(120)之间 */
    padding: 0 0.2rem;
}

.commonLanguage {
    display: flex;
    overflow-x: scroll;
    white-space: nowrap;
}

.commonLanguage div {
    padding: 0.36rem 0.12rem;
    margin-right: 0.16rem;
    font-size: 0.25rem;
    color: #fff;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.24rem;
}

/* 弹幕输入和操作区域样式 */
.up-comment__action {
    position: absolute;
    bottom: 0.2rem;
    left: 0;
    right: 0.2rem;
    z-index: 120;
    padding: 0;
    background: transparent;
    pointer-events: auto;
}

._comment-action {
    font-size: 0.28rem;
    pointer-events: auto;
}

._comment-action__kits {
    display: flex;
    align-items: center;
    padding: 0.2rem;
    pointer-events: auto;
}

._comment-action__kits-tip {
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
    height: 0.72rem;
    padding: 0 0.2rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.34rem;
    cursor: pointer;
    pointer-events: auto;
}

._comment-send--shop {
    position: relative;
    width: 0.72rem;
    height: 0.72rem;
    margin-top: -0.04rem;
    margin-right: 0.2rem;
    cursor: pointer;
    pointer-events: auto;
}

.live-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-icon-small {
    width: 0.82rem;
    height: 0.82rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}

.live-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

._comment-action__kits-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.72rem;
    height: 0.72rem;
    margin-left: 0.2rem;
    cursor: pointer;
    border-radius: 50%;
    pointer-events: auto;
}

.praise-count {
    position: relative;
}

.praise-top {
    position: absolute;
    top: -0.2rem;
    left: 50%;
    z-index: 999;
    text-align: center;
    transform: translateX(-50%);
}

.praise-num {
    display: inline-block;
    min-width: 0.72rem;
    padding: 0 0.08rem;
    font-size: 0.24rem;
    font-weight: 400;
    line-height: 0.28rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 0.14rem;
}

._comment-action__input {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    flex: 1;
}

.van-cell {
    flex: 1;
}

/* 评论输入框：只在评论输入区域加粗样式，避免影响其它表单控件 */
._comment-action__input .van-field__control {
    width: 100%;
    min-height: 0.72rem;
    padding: 0.16rem 0.22rem;
    font-size: 0.30rem;
    line-height: 0.40rem;
    color: #1f2329;
    background: rgba(255, 255, 255, 0.96);
    border: 0.02rem solid rgba(0, 0, 0, 0.10);
    border-radius: 0.22rem;
    outline: none;
    box-shadow: 0 0.04rem 0.14rem rgba(0, 0, 0, 0.10);
    transition: box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
    -webkit-appearance: none;
    appearance: none;
}

._comment-action__input .van-field__control::placeholder {
    color: rgba(31, 35, 41, 0.45);
}

._comment-action__input .van-field__control:hover {
    border-color: rgba(25, 137, 250, 0.35);
}

._comment-action__input .van-field__control:focus {
    border-color: rgba(25, 137, 250, 0.75);
    box-shadow: 0 0.06rem 0.18rem rgba(25, 137, 250, 0.22);
    background: rgba(255, 255, 255, 0.98);
}

.van-button {
    padding: 0.12rem 0.24rem;
    font-size: 0.28rem;
    color: #fff;
    background: #1989fa;
    border: none;
    border-radius: 0.2rem;
    cursor: pointer;
}

.van-button--small {
    padding: 0.08rem 0.16rem;
    font-size: 0.24rem;
}

/* 发送按钮与输入框高度更协调 */
._comment-action__input + .van-button,
._comment-action__input .van-button,
._comment-action__input ~ .van-button {
    min-height: 0.72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 商品推荐卡片样式 */
.product-recommend {
    position: fixed;
    right: 0.32rem;
    bottom: 1.76rem;
    z-index: 120;
}

.product-recommend .goods-detail {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 2.16rem;
    height: 3.52rem;
    padding: 0.04rem 0.04rem 0.08rem;
    background: #fff;
    border: 0.02rem solid #fff;
    border-radius: 0.12rem;
    box-shadow: 0 0 0.14rem 0 hsla(0, 0%, 54.9%, 0.39);
    cursor: pointer;
}

.product-recommend .goods-detail.flash {
    animation: flash 0.7s ease-in-out;
}

@keyframes flash {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.product-recommend .goods-detail .tag {
    position: absolute;
    top: 0.1rem;
    left: 0.1rem;
    display: flex;
    gap: 0.12rem;
    align-items: center;
    padding: 0.04rem 0.08rem;
    font-size: 0.22rem;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 0 0.14rem hsla(0, 0%, 54.9%, 0.39);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.04rem;
    box-shadow: 0 0 0.14rem 0 hsla(0, 0%, 54.9%, 0.39);
    z-index: 1;
}

.product-recommend .goods-detail .tag .point {
    width: 0.08rem;
    height: 0.08rem;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0.14rem 0 hsla(0, 0%, 54.9%, 0.39);
    animation: pulse 1.5s ease-in-out infinite;
}

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

.product-recommend .goods-detail .cover {
    flex: 1;
    width: 2.08rem;
    height: 0;
    background: #f4f5f6;
    border-radius: 0.12rem;
    object-fit: contain;
}

.product-recommend .goods-detail .title {
    padding: 0.04rem 0.08rem;
    font-size: 0.24rem;
    font-weight: 600;
    line-height: 0.34rem;
    color: #464c5b;
    text-shadow: 0 0 0.14rem hsla(0, 0%, 54.9%, 0.39);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: break-spaces;
    word-break: break-all;
}

.product-recommend .goods-detail .price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.08rem;
    font-size: 0.24rem;
    font-weight: 600;
    line-height: 0.34rem;
    color: #fff;
    text-shadow: 0 0 0.14rem hsla(0, 0%, 54.9%, 0.39);
    background: #fb2b53;
    border-radius: 0.04rem;
    box-shadow: 0 0 0.14rem 0 hsla(0, 0%, 54.9%, 0.39);
}

.product-recommend .goods-detail .price-box.disabled {
    background: #c4c4c4;
}

.remai_num {
    font-size: 0.25rem;
    color: #fff;
    bottom: 0.1rem;
    /* 让“🔥 热卖 x”和数字严格水平居中对齐 */
    display: inline-flex;
    align-items: center;
    line-height: 16px;
}
/* 热卖数字滚动样式，对齐 web/src/views/frontend/index.vue 的实现 */
.remai_num .label {
    font-size: 12px;
    line-height: 16px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.remai_num .viewport {
    position: relative;
    height: 16px;
    overflow: hidden;
    min-width: 7ch;
    display: inline-flex;
    align-items: center;
    margin-left: 0.1rem;
    font-size: 0.25rem;
}

.remai_num .value {
    display: inline-block;
    font-weight: 700;
    line-height: 16px;
    font-size: 14px;

    font-variant-numeric: tabular-nums;
    -webkit-font-feature-settings: "tnum" 1;
    font-feature-settings: "tnum" 1;
}

.num-slide-enter-active,
.num-slide-leave-active {
    transition: transform 0.35s ease, opacity 0.35s ease;
    display: inline-block;
}

.num-slide-enter-from {
    transform: translateY(100%);
    opacity: 0;
}

.num-slide-enter-to {
    transform: translateY(0%);
    opacity: 1;
}

.num-slide-leave-from {
    transform: translateY(0%);
    opacity: 1;
}

.num-slide-leave-to {
    transform: translateY(-100%);
    opacity: 0;
}

/* 正在购买提示样式，对齐 web/src/views/frontend/index.vue 的实现（简化版） */
.buying-toast {
    position: absolute;
    left: 0.2rem;
    margin-bottom: 0.2rem;
    z-index: 22;
    display: flex;
    align-items: center;
    margin-left: 0.3rem;
    gap: 0.15rem;
    padding: 0.08rem 0.08rem;
    background: linear-gradient(90deg, #F3CA8A, #FEB459);
    border-radius: 0.2rem;
    box-shadow: 0 0.04rem 0.12rem rgba(255, 152, 0, 0.4);
    max-width: 4.2rem;
    max-width: min(4.2rem, calc(100vw - 0.5rem));
}

.buying-toast .thumb {
    width: 1rem;
    height: 1rem;
    border-radius: 0.08rem;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 0.02rem solid rgba(255, 255, 255, 0.5);
}

.buying-toast .info {
    flex: 1;
    min-width: 0;
}

.buying-toast .info .line1 {
    font-size: 0.26rem;
    color: #eee;
    margin-bottom: 0.05rem;
    white-space: nowrap;
}

.buying-toast .info .line1 .name {
    font-weight: 600;
    color: #ee8925;
}

.buying-toast .info .line2 {
    margin-top: 0.2rem;
    font-size: 0.26rem;
    color: #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.buying-toast .action {
    padding: 0.1rem 0.2rem;
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: #fff;
    border-radius: 0.3rem;
    font-size: 0.24rem;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 0.02rem 0.08rem rgba(255, 71, 87, 0.4);
    white-space: nowrap;
}

.buying-toast .action.disabled {
    color: #ffffff !important;
    pointer-events: none;
}

.product-recommend .goods-detail .price-box img {
    width: 0.46rem;
    height: 0.46rem;
}

/* 商品列表弹窗样式 */
.van-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2012;
    display: none; /* 默认隐藏，由v-show控制显示 */
}

._goods-list {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    /* 商品列表弹窗高度：始终占屏幕高度的一半 */
    height: 50vh;
    background: #fff;
    border-radius: 0.2rem 0.2rem 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    z-index: 2013;
}

._goods-list.show {
    transform: translateY(0);
}

._goods-list-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 0.4rem;
    border-bottom: 1px solid #eee;
}

._goods-list-bar--title {
    font-size: 0.32rem;
    font-weight: 600;
    color: #333;
}

.ui-icon-dialog-close {
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    cursor: pointer;
    background: url('assets2/close.svg') no-repeat center;
    background-size: contain;
}

._goods-list-box {
    /* 内部可滚动区域高度 = 弹窗高度 - 头部栏高度预留 */
    max-height: calc(50vh - 1rem);
    overflow-y: auto;
    padding: 0.2rem;
}

.not-scrollbar::-webkit-scrollbar {
    display: none;
}

._goods {
    display: flex;
    gap: 0.2rem;
    padding: 0.2rem;
    margin-bottom: 0.2rem;
    background: #f5f5f5;
    border-radius: 0.12rem;
}

.recommend-tag {
    position: absolute;
    top: 0.1rem;
    left: 0.1rem;
    display: flex;
    gap: 0.12rem;
    align-items: center;
    padding: 0.04rem 0.08rem;
    font-size: 0.22rem;
    font-weight: 500;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.04rem;
    z-index: 1;
}

._goods--img {
    position: relative;
    width: 1.6rem;
    height: 1.6rem;
    background: #f4f5f6;
    border-radius: 0.12rem;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

._goods--img_index {
    position: absolute;
    top: 0.04rem;
    left: 0.04rem;
    width: 0.32rem;
    height: 0.32rem;
    font-size: 0.2rem;
    line-height: 0.32rem;
    color: #fff;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

._goods--content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

._goods--content--top {
    display: flex;
    align-items: flex-start;
    gap: 0.1rem;
}

._goods--content--title {
    flex: 1;
    font-size: 0.28rem;
    font-weight: 600;
    color: #333;
    line-height: 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

._goods--content--tag {
    font-size: 0.24rem;
    color: #999;
}

._goods--content--bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.1rem;
}

._goods--content--money {
    font-size: 0.32rem;
    font-weight: 600;
    color: #fb2b53;
}

._goods--content--btn {
    padding: 0.08rem 0.2rem;
    font-size: 0.24rem;
    color: #fff;
    background: #fb2b53;
    border: none;
    border-radius: 0.12rem;
    cursor: pointer;
}

._goods--content--btn.disabled {
    background: #c4c4c4;
    cursor: not-allowed;
}

.no-goods {
    padding: 1rem;
    text-align: center;
}

.no-goods-content {
    font-size: 0.28rem;
    color: #999;
}

/* 礼物弹窗样式 */
.gift-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 16px 16px 0 0;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 2018;
    pointer-events: auto;
}

.gift-popup.show {
    transform: translateY(0);
}

.gift-popup-content {
    max-width: 100%;
}

.gift-popup-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.12rem 0.08rem 0.18rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 0.18rem;
}

.gift-popup-bar--title {
    font-size: 0.32rem;
    font-weight: 600;
    color: #fff;
}

.gift-popup .ui-icon-dialog-close {
    width: 0.44rem;
    height: 0.44rem;
    opacity: 0.9;
}

.gift-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.gift-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gift-item:active {
    transform: scale(0.95);
}

.gift-item.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ff6b6b;
}

.gift-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin: 0 auto 8px;
    display: block;
}

.gift-name {
    font-size: 12px;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gift-price {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

/* =========================
   投诉弹窗样式（live_bak）
   ========================= */
.tousu-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 18vh;
    pointer-events: auto;
}

.tousu-modal__card {
    width: 86%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 0.2rem;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.tousu-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.28rem 0.32rem;
    border-bottom: 1px solid #eee;
}

.tousu-modal__title {
    font-size: 0.34rem;
    font-weight: 700;
    color: #111;
}

.tousu-modal__body {
    padding: 0.28rem 0.32rem;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.tousu-textarea {
    width: 100%;
    min-height: 2rem;
    font-size: 0.28rem;
    line-height: 1.4;
    padding: 0.22rem 0.22rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.14rem;
    outline: none;
    resize: none;
}

.tousu-textarea:focus {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.tousu-upload__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.26rem;
    color: #333;
    margin-bottom: 0.12rem;
}

.tousu-upload__tip {
    font-size: 0.24rem;
    color: #fb2b53;
}

.tousu-file {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tousu-upload__grid {
    display: flex;
    align-items: center;
    gap: 0.16rem;
}

.tousu-upload__add {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.12rem;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.tousu-upload__add::before,
.tousu-upload__add::after {
    content: '';
    position: absolute;
    background: #64748b;
    border-radius: 2px;
}

.tousu-upload__add::before {
    width: 0.6rem;
    height: 0.08rem;
}

.tousu-upload__add::after {
    width: 0.08rem;
    height: 0.6rem;
}

.tousu-upload__add:active {
    transform: scale(0.98);
}

.tousu-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.16rem;
    margin-top: 0.18rem;
}

.tousu-preview__item {
    position: relative;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.12rem;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

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

.tousu-preview__remove {
    position: absolute;
    right: 0.06rem;
    top: 0.06rem;
    width: 0.42rem;
    height: 0.42rem;
    line-height: 0.42rem;
    text-align: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.32rem;
    cursor: pointer;
}

.tousu-modal__footer {
    display: flex;
    gap: 0.2rem;
    justify-content: flex-end;
    padding: 0.24rem 0.32rem 0.32rem;
}

.tousu-btn {
    border: none;
    border-radius: 0.14rem;
    padding: 0.18rem 0.34rem;
    font-size: 0.28rem;
    cursor: pointer;
}

.tousu-btn--ghost {
    background: #f3f4f6;
    color: #111;
}

.tousu-btn--primary {
    background: #2563eb;
    color: #fff;
}

.tousu-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.gift-action {
    margin-top: 16px;
}

.gift-send-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    color: #fff;
    background: #ff6b6b;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.gift-send-btn:active {
    background: #ff5252;
    transform: scale(0.98);
}

/* 点赞动画样式 */
.bc-praise {
    position: absolute;
    /* 对齐原 vue 版：覆盖弹幕区域，爱心在中间区域飘动而不是只在右下角 */
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 125;
    pointer-events: none;
}

.bc-praise__bubble {
    position: absolute;
    width: 0.72rem;
    height: 0.72rem;
    pointer-events: none;
    transform-origin: bottom center;
    /* 匀速上移，避免 ease + 前几帧原地 scale 造成“停一下再窜上去” */
    animation-timing-function: linear;
    animation-fill-mode: forwards;
    backface-visibility: hidden;
    font-size: 0.72rem;
    line-height: 0.72rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 避免继承文字描边等效果影响爱心外观 */
    color: transparent;
}

.b4::before {
    /* 使用红心图标 + 光晕，双击轨迹上更显眼 */
    content: '';
    display: block;
    width: 0.72rem;
    height: 0.72rem;
    filter: drop-shadow(0 0.04rem 0.1rem rgba(255, 32, 86, 0.85))
        drop-shadow(0 0.12rem 0.24rem rgba(255, 60, 100, 0.45));
    background: url("assets2/like-heart@2x.aba81e86.png") no-repeat center / contain;
}

.bl1,
.bl2,
.bl3,
.bl4 {
    animation-duration: 1s;
}

.bl1 {
    animation-name: bubble_1;
}

.bl2 {
    animation-name: bubble_2;
}

.bl3 {
    animation-name: bubble_3;
}

.bl4 {
    animation-name: bubble_4;
}

/* 1s 内匀速位移；位移按时间线性分配，末尾仅淡出，避免中段“卡住” */
@keyframes bubble_1 {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    90% {
        opacity: 1;
        transform: translate3d(0, -27vh, 0);
    }
    100% {
        opacity: 0;
        transform: translate3d(0, -30vh, 0);
    }
}

@keyframes bubble_2 {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    90% {
        opacity: 1;
        transform: translate3d(-0.45rem, -27vh, 0);
    }
    100% {
        opacity: 0;
        transform: translate3d(-0.5rem, -30vh, 0);
    }
}

@keyframes bubble_3 {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    90% {
        opacity: 1;
        transform: translate3d(-0.9rem, -27vh, 0);
    }
    100% {
        opacity: 0;
        transform: translate3d(-1rem, -30vh, 0);
    }
}

@keyframes bubble_4 {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    90% {
        opacity: 1;
        transform: translate3d(0.9rem, -27vh, 0);
    }
    100% {
        opacity: 0;
        transform: translate3d(1rem, -30vh, 0);
    }
}

/* =========================
   加好友提示弹窗（参考设计稿）
   ========================= */
.friend-popup-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    pointer-events: auto;
}

.friend-popup-modal__card {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 16px;
    padding: 20px 16px 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.friend-popup-close {
    position: absolute;
    right: 12px;
    top: 10px;
    z-index: 2;
    cursor: pointer;
}

.friend-popup-top {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    margin-bottom: 14px;
    word-break: break-word;
    line-height: 0.3;
}

.friend-popup-modal .friend-popup-top p,
.friend-popup-modal .friend-popup-top p span,
.friend-popup-modal .friend-popup-top p strong,
.friend-popup-modal .friend-popup-card__info p,
.friend-popup-modal .friend-popup-card__info p span,
.friend-popup-modal .friend-popup-card__info p strong {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0.3 !important;
}

.friend-popup-modal .friend-popup-top p + p,
.friend-popup-modal .friend-popup-card__info p + p {
    margin-top: 0 !important;
}

.friend-popup-modal .friend-popup-top p:empty,
.friend-popup-modal .friend-popup-card__info p:empty {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.friend-popup-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: #d9ecff;
    border: 2px solid #b8d9f5;
    cursor: pointer;
}

.friend-popup-card__avatar {
    width: 98px;
    height: 98px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #fff;
}

.friend-popup-card__info {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
    word-break: break-word;
    line-height: 0.3;
}

.friend-popup-card__info img {
    max-width: 100%;
    height: auto;
}

/* =========================
   直播抽奖
   ========================= */
.lottery-icon-fallback {
    width: 0.82rem;
    height: 0.82rem;
    display: block;
}

.lottery-popup-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 86%;
    max-width: 6.2rem;
    z-index: 2030;
}

.lottery-popup-modal__card {
    position: relative;
    padding: 0.48rem 0.36rem 0.4rem;
    border-radius: 0.24rem;
    background: #fff;
    box-shadow: 0 0.16rem 0.48rem rgba(0, 0, 0, 0.18);
}

.lottery-popup-close {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    z-index: 2;
}

.lottery-popup-image {
    width: 2.4rem;
    height: 2.4rem;
    margin: 0 auto 0.24rem;
    border-radius: 0.2rem;
    overflow: hidden;
    background: #f5f5f5;
}

.lottery-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lottery-popup-text {
    margin-bottom: 0.28rem;
    font-size: 0.28rem;
    line-height: 1.5;
    color: #333;
    text-align: center;
    word-break: break-word;
}

.lottery-popup-countdown,
.lottery-popup-result {
    padding: 0.24rem 0.2rem;
    border-radius: 0.16rem;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    text-align: center;
}

.lottery-popup-countdown__label,
.lottery-popup-result__label {
    margin-bottom: 0.12rem;
    font-size: 0.24rem;
    color: #9a3412;
}

.lottery-popup-countdown__value {
    font-size: 0.56rem;
    line-height: 1.2;
    font-weight: 700;
    color: #ea580c;
    font-variant-numeric: tabular-nums;
}

.lottery-popup-action {
    margin-top: 0.28rem;
}

.lottery-popup-btn {
    width: 100%;
    border: none;
    border-radius: 0.4rem;
    padding: 0.2rem 0.24rem;
    font-size: 0.28rem;
    line-height: 1.2;
    font-weight: 600;
    cursor: pointer;
}

.lottery-popup-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #ff6b35 0%, #f97316 100%);
    box-shadow: 0 0.08rem 0.2rem rgba(249, 115, 22, 0.28);
}

.lottery-popup-btn--primary:active {
    transform: scale(0.98);
}

.lottery-popup-btn--waiting {
    color: #9a3412;
    background: #fff7ed;
    border: 1px solid #fdba74;
    cursor: not-allowed;
    opacity: 0.92;
}

.lottery-popup-result__value {
    font-size: 0.32rem;
    line-height: 1.5;
    font-weight: 600;
    color: #c2410c;
    word-break: break-word;
    white-space: pre-wrap;
}

/* 全局消息提示（类似 Element UI Message） */
.live-message {
    position: fixed;
    top: 0.48rem;
    left: 50%;
    transform: translateX(-50%) translateY(-0.2rem);
    z-index: 3000;
    display: inline-flex;
    align-items: center;
    gap: 0.12rem;
    max-width: 90%;
    padding: 0.18rem 0.28rem;
    border-radius: 0.08rem;
    background: #f0f9eb;
    border: 1px solid #e1f3d8;
    box-shadow: 0 0.06rem 0.2rem rgba(0, 0, 0, 0.12);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.live-message--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.live-message--hide {
    opacity: 0;
    transform: translateX(-50%) translateY(-0.16rem);
}

.live-message__icon {
    flex-shrink: 0;
    width: 0.32rem;
    height: 0.32rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.2rem;
    font-weight: 700;
    color: #fff;
    background: #67c23a;
}

.live-message__text {
    font-size: 0.26rem;
    line-height: 1.4;
    color: #67c23a;
    word-break: break-word;
}

/* 私信聊天弹窗 */
.private-chat-modal {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 420px;
    z-index: 2028;
}

.private-chat-modal__panel {
    background: #fff;
    border-radius: 16px 16px 0 0;
    height: 62vh;
    max-height: 520px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
}

.private-chat-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.private-chat-modal__title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.private-chat-close {
    font-size: 20px;
    color: #999;
    cursor: pointer;
}

.private-chat-load-more {
    text-align: center;
    padding: 8px;
    flex-shrink: 0;
}

.private-chat-load-more button {
    border: none;
    background: #f5f5f5;
    color: #666;
    font-size: 12px;
    border-radius: 6px;
    padding: 6px 12px;
}

.private-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
}

.private-chat-empty {
    text-align: center;
    color: #999;
    font-size: 13px;
    padding: 24px 0;
}

.private-chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 78%;
}

.private-chat-msg--admin {
    align-self: flex-start;
    align-items: flex-start;
}

.private-chat-msg--user {
    align-self: flex-end;
    align-items: flex-end;
}

.private-chat-msg__bubble {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}

.private-chat-msg__bubble .chat-link {
    text-decoration: underline;
    word-break: break-all;
}

.private-chat-msg--admin .private-chat-msg__bubble .chat-link {
    color: #2563eb;
}

.private-chat-msg--user .private-chat-msg__bubble .chat-link {
    color: #fff;
}

.private-chat-msg--admin .private-chat-msg__bubble {
    background: #f3f4f6;
    color: #111;
    border-bottom-left-radius: 4px;
}

.private-chat-msg--user .private-chat-msg__bubble {
    background: #3ba3ff;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.private-chat-msg__time {
    margin-top: 4px;
    font-size: 11px;
    color: #aaa;
}

.private-chat-input-bar {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
    background: #fff;
}

.private-chat-input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
    resize: none;
    font-family: inherit;
}

.private-chat-input:focus {
    outline: none;
    border-color: #3ba3ff;
}

.private-chat-send-btn {
    border: none;
    border-radius: 8px;
    background: #3ba3ff;
    color: #fff;
    font-size: 14px;
    height: 38px;
    padding: 0 16px;
    align-self: flex-end;
    flex-shrink: 0;
}

.private-chat-send-btn[disabled] {
    background: #ccc;
}
