/* ── AppSim 短视频 feed 样式（feed.css）───────────────────────────────
   /venus 短视频专属：feed 页胶片式等待接听态（数字人/智能体胶片条）、feed
   信息层、点赞条、橱窗面板与短视频播放/列表、切换卡片、
   轻提示。拆分自 styles.css（2026-10-20）；
   手机模式公共壳（phone-frame/来电页/通话壳/挂断圆钮 ✕）仍在 styles.css。 */
/* 切换智能体的盖屏卡（「正在切换智能体…」）：内容沉底展示 */
.incoming-call-wrap.incoming-call-minimal {
  justify-content: flex-end;
}

/* ── feed 页（等待接听）胶片式选择 ──────────────────────────────────────
   数字人帧与智能体卡各自独立几何，均以屏幕中轴水平居中（同轴对齐）：
   数字人帧沿用统一卡位（宽 --feed-card-w＝78.125%、高 --feed-card-h，帧 top
   由 feed-ui.js 按环形偏移以内联 calc(var(--feed-figure-line) ± N×var
   (--feed-step-y)) 给出，上=上一个、中=当前、下=下一个）；智能体卡为定值
   尺寸（约为数字人帧的 2/3，不随帧放大；矮屏断点各自显式收缩），内部
   与边线均透明（卡位仅由图标+名称示意，
   透出底部画面），left 由 feed-ui.js 以 calc(var(--feed-agent-left) ± N×var(--feed-step-x))
   内联——步长按智能体卡宽计，中央卡左右两侧各露出大半张相邻卡（胶带头
   尾可见，可感知左右还有可选智能体）。竖条拖拽跟手平移 track、松手吸附
   切换、点击帧切换到对应数字人；横条中央卡高亮为选中项，点击卡切换
   （中央卡＝点击通话）。轻点中央画面即接听（手势处理在 feed-gestures.js
   bindFeedSwipe） */
.phone-screen.incoming-call-screen {
  --feed-card-w: 78.125%; /* 数字人帧宽（原 62.5% 再放大 1/4） */
  --feed-card-h: 390px; /* 数字人帧高（原 312px 再放大 1/4） */
  --feed-agent-w: 41.6667%; /* 智能体卡宽（定值：原帧宽 62.5% 的 2/3，不随帧放大） */
  --feed-agent-h: 208px; /* 智能体卡高（定值：原帧高 312px 的 2/3，不随帧放大） */
  --feed-card-gap: 10px; /* 相邻卡位间隙 */
  --feed-step-y: calc(var(--feed-card-h) + var(--feed-card-gap)); /* 竖条卡位步长（按帧） */
  --feed-step-x: calc(var(--feed-agent-w) + var(--feed-card-gap)); /* 横条卡位步长（按智能体卡） */
  --feed-card-left: calc((100% - var(--feed-card-w)) / 2); /* 数字人帧居中左缘 */
  --feed-agent-left: calc((100% - var(--feed-agent-w)) / 2); /* 智能体卡居中左缘（与帧同轴居中） */
  --feed-figure-line: 50%; /* 数字人条中线＝屏幕垂直正中：当前帧居中，上下露出相邻数字人（底部智能体卡透明，浮于相邻帧之上不遮挡） */
}

/* 矮屏（真机视口）按比例收缩，避免数字人帧与底部智能体条重叠；智能体卡
   同步收缩（保持原派生值量级，不随帧放大） */
@media (max-height: 720px) {
  .phone-screen.incoming-call-screen {
    --feed-card-h: 330px;
    --feed-agent-h: 176px;
  }
}

@media (max-height: 620px) {
  .phone-screen.incoming-call-screen {
    --feed-card-h: 275px;
    --feed-agent-h: 146.67px;
  }
}

.dh-feed-film {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #02070d;
  cursor: pointer; /* 整面可轻点接听 */
}

.dh-feed-film-track {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.dh-feed-frame {
  position: absolute;
  left: var(--feed-card-left); /* 与智能体卡同左缘（居中对齐） */
  width: var(--feed-card-w);
  height: var(--feed-card-h); /* top 由 feed-ui.js 内联（中线 ± 整数步） */
  border-radius: 16px;
  background-color: #0a1420;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  cursor: pointer; /* 点击帧切换到对应数字人（点击数字人不接听，接听走中央智能体卡 📞） */
}

/* 非中央帧压暗：中央帧为当前选中数字人，上下露出的相邻帧示意可点击切换 */
.dh-feed-frame:not(.is-center) {
  opacity: 0.55;
}

/* 选中帧（当前数字人）左下角名称条：@名称（文字加影保证亮色画面上可读；
   不拦截指针——中央帧轻点＝接听语义不变） */
.dh-feed-frame-name {
  position: absolute;
  left: 14px;
  bottom: 12px;
  max-width: calc(100% - 28px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

/* 底部压暗：保证胶片卡/提示在亮色画面上可读 */
.dh-feed-film-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(5, 12, 20, 0.08) 0%,
    rgba(5, 12, 20, 0.12) 42%,
    rgba(4, 9, 16, 0.72) 100%
  );
}

/* 等待页信息层（不随胶片条平移）：状态行 + 智能体胶片条 + 操作提示 */
.dh-feed-wait-chrome {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 18px calc(20px + env(safe-area-inset-bottom));
  z-index: 2;
  pointer-events: none; /* 手势面在 panelGrid，chrome 不拦截 */
  user-select: none;
  -webkit-user-select: none;
}

/* 异常/取消类状态（如内测通道不可用）：胶囊提示 */
.dh-feed-wait-status {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 8, 8, 0.78);
  border: 1px solid rgba(255, 138, 128, 0.4);
  color: #ffd7d2;
  font-size: 12px;
  font-weight: 600;
}

/* 横向智能体胶片条：满幅（负掉信息层左右留白），条高＝智能体卡高+上下
   留白；全量智能体卡按环形偏移排开（left 由 feed-ui.js 以 calc(var
   (--feed-agent-left) ± N×var(--feed-step-x)) 内联），中央卡为选中项，
   两侧各露出大半张相邻卡（界面可见左右还有可选智能体） */
.dh-feed-agentbar {
  position: relative;
  height: calc(var(--feed-agent-h) + 16px);
  margin: 0 -18px; /* 满幅：中央卡与数字人帧同轴居中对齐 */
  overflow: hidden;
}

.dh-feed-agent-track {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.dh-feed-agentcard {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--feed-agent-w); /* 智能体卡宽（帧宽的 2/3，居中左缘同轴对齐） */
  height: var(--feed-agent-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 16px;
  background: transparent; /* 内部透明：透出底部画面 */
  border: 1px solid transparent; /* 边线透明：卡位仅由内容（图标+名称）示意 */
  box-sizing: border-box;
  text-align: center;
  /* 信息层整体 pointer-events:none，卡片单独恢复可点（点击切换智能体，
     中央卡＝点击通话）；拖拽手势经事件冒泡仍由 panelGrid 统一处理 */
  pointer-events: auto;
  cursor: pointer;
}

.dh-feed-agentcard.is-center {
  background: transparent; /* 选中卡内部同样透明 */
  border-color: transparent; /* 选中卡边线同样透明 */
  /* 仅保留柔和金色光晕示意选中（内容侧另有 📞/点击通话/脉冲标识） */
  box-shadow: 0 0 22px rgba(255, 214, 102, 0.25);
}

.dh-feed-agentcard:not(.is-center) {
  opacity: 0.6;
  filter: saturate(0.9);
}

.dh-feed-agentcard-icon {
  font-size: 30px;
  line-height: 1;
}

.dh-feed-agentcard.is-center .dh-feed-agentcard-icon {
  animation: call-pulse 1.4s ease-in-out infinite;
}

.dh-feed-agentcard-label {
  max-width: 100%;
  color: #eaf2ff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.dh-feed-agentcard-sub {
  color: #ffd66a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.dh-feed-hint {
  text-align: center;
  color: rgba(226, 238, 252, 0.78);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* feed 页错误横幅（基样式为流内布局，改绝对定位悬在信息层之上）：
   底距＝信息层总高（智能体条 224px + 间距 12px + 提示 ~15px + 底边距 20px
   + 间隙 13px），随智能体卡缩小 1/3 收缩 */
body.mode-mobile[data-mobile-layout="shortvideo"] .incoming-call-screen .dh-error-banner {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: calc(284px + env(safe-area-inset-bottom));
  margin-top: 0;
  z-index: 3;
}
/* ── 短视频（?layout=shortvideo）：数字人整屏竖向 feed ─────────────────────
   往下滑切换新的数字人（形象+人设），每次展示先自我介绍；
   该布局隐藏用户画面小窗，屏幕即手势面（下滑拉出下一个数字人） */
body.mode-mobile[data-mobile-layout="shortvideo"] .dh-call-fullscreen {
  overscroll-behavior: contain;
}

/* 等待接听页（模板无 .dh-feed-stage）：手势面同样交给下滑切换逻辑，
   否则竖向滑动被浏览器按 .phone-screen 的 overflow-y:auto 接管并派发
   pointercancel，卡片弹回、无法切换到下一个数字人 */
body.mode-mobile[data-mobile-layout="shortvideo"] .phone-screen.incoming-call-screen {
  touch-action: none;
}

body.mode-mobile[data-mobile-layout="shortvideo"] .dh-feed-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none; /* 手势由下滑切换逻辑接管，禁掉浏览器滚动/下拉刷新 */
  cursor: grab;
  z-index: 1;
}

body.mode-mobile[data-mobile-layout="shortvideo"] .dh-call-fullscreen .dh-live-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform; /* 双指捏合/滚轮缩放走 transform，提前提升合成层 */
}

/* ── venus 常驻语音助手（audio-only）占位舞台 ─────────────────────────────
   纯语音数字人无视频轨（<video> 仅承载音频出声、画面全黑），通话画面盖一层
   占位界面：名字 + 「语音通话中」+ 轻微起伏的声波条（纯装饰动画，
   prefers-reduced-motion 下停播）。不拦截手势（pointer-events:none，
   上下滑切换/轻点接听照常） */
.dh-audio-only-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: radial-gradient(120% 90% at 50% 20%, #2b3a55 0%, #141a26 55%, #0c0f16 100%);
  color: #eaf0fa;
  pointer-events: none;
  user-select: none;
}
.dh-audio-only-badge {
  font-size: 44px;
  line-height: 1;
  filter: drop-shadow(0 6px 18px rgba(20, 40, 80, 0.45));
}
.dh-audio-only-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 1px;
}
.dh-audio-only-hint {
  font-size: 14px;
  color: rgba(234, 240, 250, 0.72);
}
.dh-audio-only-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 26px;
  margin-top: 4px;
}
.dh-audio-only-bars span {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: rgba(234, 240, 250, 0.65);
  animation: dh-audio-only-bar 1.6s ease-in-out infinite;
}
.dh-audio-only-bars span:nth-child(2) { animation-delay: 0.18s; }
.dh-audio-only-bars span:nth-child(3) { animation-delay: 0.36s; }
.dh-audio-only-bars span:nth-child(4) { animation-delay: 0.54s; }
.dh-audio-only-bars span:nth-child(5) { animation-delay: 0.72s; }
@keyframes dh-audio-only-bar {
  0%, 100% { height: 8px; opacity: 0.55; }
  50% { height: 24px; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .dh-audio-only-bars span { animation: none; height: 12px; opacity: 0.8; }
}

/* 短视频布局不展示用户画面缺失提示；用户画面仅在首页开启"嵌入视频"后
   以小窗浮动在数字人界面上 */
body.mode-mobile[data-mobile-layout="shortvideo"] .dh-self-view-hint {
  display: none;
}

body.mode-mobile[data-mobile-layout="shortvideo"] .dh-embed-view {
  position: absolute;
  top: calc(56px + env(safe-area-inset-top, 0px));
  right: 12px;
  width: 96px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
  z-index: 3; /* 界面层之上，浮层卡片之下 */
}

/* 左下角数字人名字条（抖音式 @昵称 + 身份标签） */
.dh-feed-info {
  position: absolute;
  left: 18px;
  bottom: calc(96px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  z-index: 4;
  pointer-events: none;
}

.dh-feed-name {
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.dh-feed-tag {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(6, 12, 20, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #eaf2ff;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 右下角互动数据：点赞（向上大拇指）/ 点踩（向下大拇指）+ 计数竖排，
   点击 +1 并上报埋点（监控页数字人榜聚合） */
.dh-feed-reactions {
  position: absolute;
  right: 18px;
  bottom: calc(30px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 4;
  pointer-events: none; /* 容器不拦截手势，仅两个互动块自身可点 */
}

.dh-feed-reaction {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease;
}

.dh-feed-reaction:active {
  transform: scale(1.28); /* 点击反馈：轻点放大 */
}

.dh-feed-reaction-icon {
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.6));
  transition: transform 0.15s ease, filter 0.15s ease;
}

/* 已生效的赞/踩：图标点亮放大（重复点击同一按钮为取消，取消后熄灭） */
.dh-feed-reaction.is-active .dh-feed-reaction-icon {
  transform: scale(1.18);
  filter: drop-shadow(0 0 10px rgba(255, 214, 102, 0.95))
    drop-shadow(0 3px 10px rgba(0, 0, 0, 0.6));
}

.dh-feed-reaction-count {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* 右上角"反馈"入口（digital-invite 06 问卷，仅归因带 t 时渲染）：
   等待接听页与通话中信息层共用；与橱窗浮钮同款磨砂胶囊 */
.dh-feed-feedback {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: 14px;
  z-index: 5;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(6, 12, 20, 0.62);
  color: #eaf2ff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  pointer-events: auto; /* 信息层容器整体不拦截手势，按钮自身恢复可点 */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.15s ease, background 0.15s ease;
}

.dh-feed-feedback:hover {
  background: rgba(20, 34, 54, 0.78);
}

.dh-feed-feedback:active {
  transform: scale(0.94); /* 点击反馈：轻点缩放（同点赞条） */
}

/* 左下角橱窗：+ 圆形按钮 + 向上展开的面板（内容来自配置平台"橱窗"分页） */
.dh-showcase {
  position: absolute;
  left: 18px;
  bottom: calc(30px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  z-index: 4;
}

.dh-showcase-fab {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(6, 12, 20, 0.62);
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.18s ease, background 0.18s ease;
}

.dh-showcase-fab:hover {
  background: rgba(20, 34, 54, 0.78);
  transform: scale(1.06);
}

.dh-showcase-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(6, 12, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  animation: dh-showcase-in 0.18s ease;
}

@keyframes dh-showcase-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dh-showcase-chip {
  min-width: 96px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #eaf2ff;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dh-showcase-chip:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* 橱窗"短视频"项的全屏播放层（body 级，不受面板重渲染影响）：
   遮罩点击关闭，右上角 ✕ 关闭，视频居中自适应 */
.dh-showcase-video-overlay {
  position: fixed;
  inset: 0;
  z-index: 61; /* 盖在短视频列表层（60）之上，关闭播放即回列表 */
  background: rgba(0, 0, 0, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dh-showcase-video {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.dh-showcase-video-close {
  position: fixed;
  top: calc(18px + env(safe-area-inset-top));
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(6, 12, 20, 0.66);
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.18s ease;
}

.dh-showcase-video-close:hover {
  background: rgba(20, 34, 54, 0.85);
}

/* 橱窗"加好友"项的全屏二维码展示层（body 级，不受面板重渲染影响）：
   遮罩点击关闭，右上角 ✕ 关闭，白卡片内二维码居中自适应 + 顶部提示文案 */
.dh-showcase-qrcode-overlay {
  position: fixed;
  inset: 0;
  z-index: 61;
  background: rgba(0, 0, 0, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dh-showcase-qrcode-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.dh-showcase-qrcode-title {
  color: #1f2d3d;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.dh-showcase-qrcode-image {
  max-width: 72vw;
  max-height: 64vh;
  border-radius: 10px;
  background: #f5f7fa;
}

.dh-showcase-qrcode-close {
  position: fixed;
  top: calc(18px + env(safe-area-inset-top));
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(6, 12, 20, 0.66);
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.18s ease;
}

.dh-showcase-qrcode-close:hover {
  background: rgba(20, 34, 54, 0.85);
}

/* 橱窗"短视频"列表层（body 级）：全库数字人短视频聚合，卡片网格；
   每个卡片右下方展示点赞数与 PV，点卡片全屏播放（PV+1），点心形点赞 */
.dh-showcase-videolist-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 8, 14, 0.96);
  display: flex;
  flex-direction: column;
  padding: calc(16px + env(safe-area-inset-top)) 16px 16px;
}

.dh-showcase-videolist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dh-showcase-videolist-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.dh-showcase-videolist-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(6, 12, 20, 0.66);
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease;
}

.dh-showcase-videolist-close:hover {
  background: rgba(20, 34, 54, 0.85);
}

.dh-showcase-videolist-grid {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  align-content: start;
  padding-bottom: env(safe-area-inset-bottom);
}

.dh-showcase-videolist-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  background: #000000;
  cursor: pointer;
}

.dh-showcase-videolist-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none; /* 点击落到卡片上，统一走卡片代理 */
}

/* 底部渐变保证名字与计数在亮色画面上也可读 */
.dh-showcase-videolist-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent);
  pointer-events: none;
}

.dh-showcase-videolist-name {
  position: absolute;
  left: 8px;
  bottom: 36px;
  right: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

/* 右下方：点赞数（可点）与 PV 数并排，胶囊底色保证可读 */
.dh-showcase-videolist-stats {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #ffffff;
}

.dh-showcase-videolist-like {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 11px;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.dh-showcase-videolist-like:hover {
  background: rgba(0, 0, 0, 0.72);
}

.dh-showcase-videolist-like.is-liked {
  color: #ff4d6d;
}

.dh-showcase-videolist-like.is-liked .dh-showcase-videolist-like-icon {
  color: #ff4d6d;
}

.dh-showcase-videolist-pv {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* 下滑拉出的"下一个数字人"接入卡片（body 级全屏，不受面板重渲染影响）：
   预置在屏幕上方 -102%，拖动跟手；确认切换后盖住画面，收尾淡出露出新人 */
.dh-feed-card {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #101b2c 0%, #060b14 55%, #02070d 100%);
  will-change: transform;
}

/* 接入等待盖屏（「接听中」页面，接听页同款极简风）：背景=正在接入的数字人
   形象图，底部在线人数 + 接听中提示；目标数字人音视频到达后整卡淡出 */
.dh-feed-card.dh-feed-connecting {
  display: block;
  background: #02070d;
  overflow: hidden;
}

.dh-feed-connecting-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dh-feed-connecting-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 12, 20, 0.06) 0%,
    rgba(5, 12, 20, 0.28) 55%,
    rgba(5, 12, 20, 0.72) 100%
  );
}

/* 接听中提示：沿用立即接听按钮的视觉，改为脉冲状态展示（非按钮） */
.dh-feed-connecting-indicator .call-action-icon {
  animation: call-pulse 1.4s ease-in-out infinite;
}

.dh-feed-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.dh-feed-card-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #2f6df6, #7a3df5);
  color: #ffffff;
  font-size: 36px;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(47, 109, 246, 0.4);
  margin-bottom: 6px;
}

.dh-feed-card-name {
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.dh-feed-card-tag {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(122, 61, 245, 0.18);
  border: 1px solid rgba(148, 120, 255, 0.45);
  color: #ded7ff;
  font-size: 13px;
  font-weight: 600;
}

.dh-feed-card-status {
  margin-top: 10px;
  color: rgba(233, 241, 252, 0.65);
  font-size: 12px;
  letter-spacing: 0.12em;
}

/* 配置工程同步失败等场景的轻提示 toast（底部居中浮现） */
.dh-feed-toast {
  position: fixed;
  left: 50%;
  bottom: calc(120px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(8px);
  max-width: 78vw;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(20, 8, 8, 0.88);
  border: 1px solid rgba(255, 138, 128, 0.4);
  color: #ffd7d2;
  font-size: 12px;
  font-weight: 600;
  z-index: 70;
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}

.dh-feed-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

