/* Global styles from app.vue */
#app {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  background: #fff;
}

/* 全屏模式样式 - 隐藏底部导航栏 */
body.fullscreen-mode .bottom-nav {
  display: none !important;
}

/* Styles from pages/play.vue */
.pl {
  height: 100vh; /* 兼容旧浏览器 */
  height: calc(var(--vh, 1vh) * 100); /* 使用动态视口高度 */
  overflow: hidden;
  position: fixed; /* 使用 fixed 定位，确保不受页面滚动影响 */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: #000;
}

.pl__hd {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 30;
  color: #ddd;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pl__title {
  color: #ddd;
  font-size: 16px;
  font-weight: 500;
}

.pl-swiper {
  width: 100%;
  height: 100%;
}

.pl-swiper .swiper-wrapper {
  height: 100%;
}

.pl__slide {
  width: 100%;
  height: calc(var(--vh, 1vh) * 100); /* 使用动态视口高度 */
  display: flex;
  background-color: rgba(25, 25, 25);
}

.pl__placeholder {
  width: 100%;
  height: 100%;
  background: #000;
}

/* Styles from pages/index.vue */
.idx {
  height: 100vh; /* 兼容旧浏览器 */
  height: calc(var(--vh, 1vh) * 100); /* 使用动态视口高度 */
  overflow: hidden;
  position: fixed; /* 使用 fixed 定位，确保不受页面滚动影响 */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: #000;
}

.idx-swiper {
  width: 100%;
  height: 100%;
}

.idx-swiper .swiper-wrapper {
  height: 100%;
}

.idx .idx-slide {
  width: 100%;
  height: calc(var(--vh, 1vh) * 100); /* 使用动态视口高度 */
  display: flex;
  background-color: rgba(25, 25, 25);
}

.idx .idx-placeholder {
  width: 100%;
  height: 100%;
  background: #000;
}

/* Styles from pages/profile.vue */
.pf .van-tabs__line {
  display: none !important;
}

.pf .van-tabs__nav {
  justify-content: center;
}

.pf .van-tabs__wrap {
  display: flex;
  justify-content: center;
}

.pf .van-tab {
  font-size: 16px;
  font-weight: 500;
  padding: 0 24px;
  margin: 0 8px;
}

.pf .van-tab__text {
  font-size: 16px;
  font-weight: 500;
  color: #bbb !important;
}

.pf .van-tab--active,
.pf .van-tab--active .van-tab__text {
  color: #000 !important;
}

.pf {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pf__hd {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 12px;
}

.pf__content {
  flex: 1;
  margin-top: 85px;
  padding: 12px;
  padding-bottom: 80px;
  overflow-y: auto;
  height: calc(100vh - 85px - 80px);
}

.pf__clear {
  display: flex;
  justify-content: flex-end;
}

.pf__clear-btn {
  background: transparent !important;
  border: none !important;
  color: #666 !important;
  font-size: 12px;
  height: 32px;
  padding: 0;
  box-shadow: none !important;
}

.pf__empty {
  text-align: center;
  padding: 40px 0;
  color: #999;
}

.pf__empty-link {
  display: inline-block;
  margin-top: 20px;
  color: #1989fa;
  text-decoration: underline;
  font-size: 14px;
  transition: color 0.3s;
}

.pf__empty-link:hover {
  color: #0570c9;
  text-decoration: underline;
}

.pf__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0;
}

.pf__card {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.pf__cover {
  position: relative;
  width: 100%;
  padding-top: 133%;
}

.pf__cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.pf__cover .image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.pf__cover .image-container img {
  border-radius: 8px;
}

.pf__title {
  padding: 6px 6px 2px 6px;
  font-size: 12px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.pf__desc {
  padding: 0 6px 2px 6px;
  font-size: 11px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.pf__author {
  padding: 0 6px 6px 6px;
  font-size: 10px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

@media screen and (min-width: 768px) {
  .pf__grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }

  .pf .van-tab {
    font-size: 18px !important;
    padding: 0 28px !important;
    margin: 0 12px !important;
  }

  .pf .van-tab__text {
    font-size: 18px !important;
  }

  .pf__clear-btn {
    font-size: 16px !important;
    padding: 8px 16px !important;
  }
}

@media screen and (min-width: 1024px) {
  .pf__grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
}

/* Styles from pages/theater/index.vue - 继续添加其他文件的CSS */

/* 进度条基本样式 - 不强制显示，允许被JS控制隐藏 */
.fp .dplayer-controller {
  position: absolute !important;
  left: 0;
  right: 0;
  height: 15px !important;
  z-index: 1000 !important;
}

.fp .dplayer-controller-mask {
  display: none !important;
}


.fp .dplayer-controller .dplayer-bar-wrap {
  z-index: 1001 !important;
  pointer-events: auto !important;
  padding: 0 0 !important;
  cursor: pointer;
  position: absolute;
  bottom: 0px !important;
  width: calc(100% - 40px);
  z-index: 1000;
  margin-bottom: 1px;
}

.fp .dplayer-notice-list {
  display: none !important;
}

/* 进度条样式 */
.fp .dplayer-bar-wrap .dplayer-bar {
  background: rgba(255, 255, 255, 0.3) !important;
  border-radius: 2px !important;
}

.fp .dplayer-bar-wrap .dplayer-bar .dplayer-played {
  background: rgba(255, 255, 255, 0.8) !important;
  border-radius: 2px !important;
  transition: none !important;
}


/* 拖动时进度点改为白色竖线样式 - 与FullscreenPlayer同步，移除过渡更跟手 */
.fp .dplayer-bar-wrap.dragging .dplayer-bar .dplayer-played .dplayer-thumb {
  background: #ffffff !important;
  border: none !important;
  border-radius: 2px !important;
  width: 4px !important;
  height: 15px !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.9) !important;
  transform: translateY(-0%) !important;
  top: 50% !important;
  margin-left: -2px !important;
  margin-top: -7.5px !important;
  transition: none !important;
}

/* 拖动时进度条变宽 - 移除过渡，即时响应 */
.fp .dplayer-bar-wrap.dragging .dplayer-bar,
.fp .dplayer-bar-wrap.dragging .dplayer-loaded,
.fp .dplayer-bar-wrap.dragging .dplayer-played {
  height: 10px !important;
  transition: none !important;
}

/* 自定义时间显示 */
.fp .custom-time-display {
  position: absolute;
  bottom: 10vh;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
  z-index: 1;
  pointer-events: none;
  backdrop-filter: blur(10px);
  transition: opacity 0.2s ease;
}

.fp .dplayer-loaded {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0) !important;
  height: 3px;
  transition: all 0.5s ease;
  will-change: width;
}

.fp.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  backdrop-filter: blur(10px);
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

/* 居中播放按钮（暂停时常显） */
.fp .center-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.fp .center-play-btn :deep(.van-icon) {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}


.fp .timeline-labels .time-left {
  color: #fff;
  position: absolute;
  left: 18vw;
  top: 3vh;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: rotate(90deg);
  text-align: right;
  transform-origin: left center !important;
}

.fp .timeline-labels .time-right {
  color: #fff;
  position: absolute;
  left: 18vw;
  bottom: 10vh;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: rotate(90deg);
  transform-origin: left center !important;
}

/* DPlayer容器在全屏模式下的样式 */
.fp.fullscreen-overlay .dplayer {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.fp.fullscreen-overlay .dplayer-video-wrap {
  z-index: 1 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.fp.fullscreen-overlay .dplayer-video {
  width: 100vh !important;
  /* 使用视口高度作为宽度 */
  height: 100vw !important;
  /* 使用视口宽度作为高度 */
  object-fit: contain !important;
  transform: rotate(90deg) !important;
  /* 顺时针旋转90度 */
  transform-origin: center center !important;
  /* 从中心旋转 */
}

/* 显示DPlayer的播放按钮和进度条 */
.fp.fullscreen-overlay .dplayer-controller {
  padding: 0 !important;
  width: 75vh !important;
  display: none !important;
  transform: rotate(90deg) !important;
  transform-origin: left top !important;
  /* 使用左上角作为旋转原点，这样width变化不会影响定位 */
  position: absolute !important;
  top: 12.5vh !important;
  left: 18vw !important;
  pointer-events: none !important;
  /* 禁用原生交互，交由自定义逻辑 */
  z-index: 10 !important;
  /* 确保进度条在上层 */
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}

.fp.fullscreen-overlay.controls-visible .dplayer-controller {
  display: block !important;
  opacity: 1 !important;
}

/* 滑动时进度条高亮显示 */
.fp.fullscreen-overlay .dplayer-controller.dragging {
  opacity: 1 !important;
  z-index: 15 !important;
}

/* DPlayer控件内的元素适配横屏 */
.fp.fullscreen-overlay .dplayer-bar-wrap {
  pointer-events: none !important;
  /* 禁用原生交互，交由自定义逻辑 */
  z-index: 11 !important;
  /* 确保进度条在最上层 */
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  padding: 0;
  bottom: 0 !important;
}

.fp.fullscreen-overlay .dplayer-bar {
  pointer-events: none !important;
  /* 禁用原生点击和拖拽 */
  transition: all 0.2s ease !important;
}

/* 滑动时进度条高亮效果 */
.fp.fullscreen-overlay .dplayer-bar-wrap.dragging .dplayer-bar {
  background: rgba(170, 170, 170) !important;
  height: 10px !important;
  box-shadow: rgba(170, 170, 170) !important;
}

.fp.fullscreen-overlay .dplayer-bar-wrap.dragging .dplayer-played {
  background: rgba(240, 240, 240) !important;
  height: 10px !important;
  margin-top: 0 !important;
  box-shadow: 0 0 8px rgba(240, 240, 240) !important;
}

/* 进度点白色圆点样式 */
.fp.fullscreen-overlay .dplayer-thumb {
  background: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  border-radius: 50% !important;
  width: 6px !important;
  height: 6px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.2s ease !important;
  position: absolute !important;
  margin-left: -3px !important;
  margin-top: -3.5px !important;
  top: 0 !important;
  transform: translateY(-0%) !important;
  z-index: 12 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: none !important;
}

/* 拖动时进度点改为白色竖线样式 */
.fp.fullscreen-overlay .dplayer-bar-wrap.dragging .dplayer-thumb {
  background: #ffffff !important;
  border: none !important;
  border-radius: 2px !important;
  width: 4px !important;
  height: 15px !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.9) !important;
}

.fp.fullscreen-overlay .dplayer-played,
.fp.fullscreen-overlay .dplayer-loaded,
.fp.fullscreen-overlay .dplayer-thumb {
  pointer-events: none !important;
}

.fp.fullscreen-overlay .dplayer-time {
  display: none !important;
  transform: rotate(0deg) !important;
  /* 时间显示保持正常方向 */
  pointer-events: none !important;
  /* 不拦截事件 */
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: -20px !important;
  /* 放在进度条上方 */
  transform: none !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
  z-index: 11 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0 4px !important;
}

.fp.fullscreen-overlay.controls-visible .dplayer-time {
  display: flex !important;
}

/* 两端分别显示当前时间与总时长 */
.fp.fullscreen-overlay .dplayer-time .dplayer-time-item:first-child {
  position: static !important;
  order: 0 !important;
}

.fp.fullscreen-overlay .dplayer-time .dplayer-time-item:last-child {
  position: static !important;
  order: 1 !important;
}

/* 隐藏DPlayer的播放按钮，使用自定义的 */
.fp.fullscreen-overlay .dplayer-play,
.fp.fullscreen-overlay .dplayer-play-icon {
  display: none !important;
}


/* 横屏控件布局 */
.fp .landscape-controls {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
}

.fp .landscape-controls>* {
  pointer-events: auto;
}

/* 左上角头部区域：退出按钮+剧集信息 */
.fp .landscape-header {
  position: absolute;
  top: -5vh;
  left: 85vw;
  display: flex;
  align-items: center;
  z-index: 10;
  transform: rotate(90deg);
  transform-origin: left bottom;
}

.fp .landscape-exit-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.fp .landscape-exit-btn:hover {
  transform: scale(1.1);
}

.fp .episode-info {
  display: flex;
  align-items: center;
}

.fp .episode-title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* 暂停/播放按钮 (位置1) - 单独样式 - 已由居中按钮替代，保留但隐藏 */
.fp .landscape-play-pause-btn {
  display: none;
}


/* 左侧控件组 */
.fp .landscape-left-controls {
  position: absolute;
  left: 4vw;
  bottom: 8vh;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* 右侧控件组 */
.fp .landscape-right-controls {
  position: absolute;
  right: 5vw;
  bottom: 8vh;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* 控件项通用样式 */
.fp .landscape-control-item {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: rotate(90deg);
}

/* 倍速按钮文字 */
.fp .speed-text {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* 动作图标样式 */
.fp .action-icon {
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.fp .action-icon.active {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* 点赞图标样式 */
.fp .like-icon.active {
  color: #ff6b6b !important;
}

/* 收藏图标样式 */
.fp .star-icon.active {
  color: #ffd700 !important;
}

/* 进度条拖动事件监听器 */
.fp .progress-drag-listener {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  pointer-events: none;
}

/* 进度条滑动反馈显示样式 */
.fp .progress-feedback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  z-index: 20;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 16px 24px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0);
}

.fp .feedback-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.fp .time-display {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.fp .current-time {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.fp .duration {
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}


.fp .progress-change {
  font-size: 14px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.fp .progress-change.positive {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.2);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.fp .progress-change.negative {
  color: #f87171;
  background: rgba(248, 113, 113, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

/* 全屏模式加载页面 */
.fp .fullscreen-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.fp .fullscreen-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transform: rotate(90deg);
}

.fp .loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fp .wave-container {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 60px;
}

.fp .wave {
  width: 8px;
  height: 20px;
  background: rgba(255, 107, 53, 1);
  border-radius: 4px;
  animation: wave-animation 1.2s ease-in-out infinite;
}

.fp .wave1 {
  animation-delay: 0s;
}

.fp .wave2 {
  animation-delay: 0.1s;
}

.fp .wave3 {
  animation-delay: 0.2s;
}

.fp .wave4 {
  animation-delay: 0.3s;
}

@keyframes wave-animation {

  0%,
  100% {
    height: 20px;
    opacity: 0.4;
  }

  50% {
    height: 50px;
    opacity: 1;
  }
}

.fp .loading-text {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* 响应式适配 */
@media (max-width: 768px) {

  .landscape-left-controls,
  .landscape-right-controls {
    gap: 16px;
  }

  .progress-feedback {
    padding: 12px 20px;
  }

  .time-display {
    font-size: 14px;
    gap: 8px;
  }

  .progress-change {
    font-size: 12px;
    padding: 3px 10px;
  }
}

@media (max-height: 600px) {

  .landscape-left-controls,
  .landscape-right-controls {
    top: 45%;
  }

  .landscape-exit-btn {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .fullscreen-overlay .dplayer-controller {
    bottom: 10px !important;
  }

  .progress-feedback {
    padding: 10px 16px;
  }

  .time-display {
    font-size: 13px;
    gap: 6px;
  }

  .progress-change {
    font-size: 11px;
    padding: 2px 8px;
  }
}
.image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f5f5f5;
  display: block;
  border-radius: 5px;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
  display: block;
}

/* 评分/分类标签 */
.image-container .score-badge {
  position: absolute;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  border-radius: 0px 0 6px 0;
  z-index: 1;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 平板适配 */
@media screen and (min-width: 768px) {
  .image-container .score-badge {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 0 0 12px 0;
  }
}

/* 大屏适配 */
@media screen and (min-width: 1024px) {
  .image-container .score-badge {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 0 0 14px 0;
  }
}

.image-container .score-badge-green {
  background: rgb(65 172 82 / 95%);
}

.image-container .score-badge-gray {
  background: #999
}

.image-container .loading-overlay,
.image-container .error-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #eeeeee;
  z-index: 1;
}

.image-container .loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* 现代化加载器 */
.image-container .modern-loader {
  position: relative;
  width: 40px;
  height: 40px;
}

/* 环形加载动画 */
.image-container .loader-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.image-container .ring {
  position: absolute;
  border: 2px solid transparent;
  border-radius: 50%;
  animation: ring-rotate 1.5s linear infinite;
}

.image-container .ring-1 {
  width: 40px;
  height: 40px;
  border-top-color: #ff6b35;
  border-right-color: rgba(255, 107, 53, 0.3);
  animation-duration: 1.2s;
}

.image-container .ring-2 {
  width: 28px;
  height: 28px;
  top: 6px;
  left: 6px;
  border-top-color: #ff9500;
  border-right-color: rgba(255, 149, 0, 0.3);
  animation-duration: 1.8s;
  animation-direction: reverse;
}

/* 点状加载动画 */
.image-container .loader-dots {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 3px;
}

.image-container .dot {
  width: 4px;
  height: 4px;
  background: #ff6b35;
  border-radius: 50%;
  animation: dot-pulse 1.2s ease-in-out infinite;
}

.image-container .dot-1 {
  animation-delay: 0s;
}

.image-container .dot-2 {
  animation-delay: 0.15s;
}

.image-container .dot-3 {
  animation-delay: 0.3s;
}

/* 加载文字 */
.image-container .loading-text {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 500;
  color: #666;
}

.image-container .loading-text-main {
  color: #666;
}

.image-container .loading-text-dots {
  display: flex;
  gap: 1px;
}

.image-container .dot-text {
  color: #ff6b35;
  animation: text-dot-bounce 1.2s ease-in-out infinite;
}

.image-container .dot-text:nth-child(1) {
  animation-delay: 0s;
}

.image-container .dot-text:nth-child(2) {
  animation-delay: 0.15s;
}

.image-container .dot-text:nth-child(3) {
  animation-delay: 0.3s;
}

.image-container .error-text {
  font-size: 12px;
  color: #999;
  text-align: center;
}

.image-container .error-overlay {
  color: #ccc;
}

/* 动画关键帧 */
@keyframes ring-rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes dot-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.6;
  }
}

@keyframes text-dot-bounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(-2px);
    opacity: 0.7;
  }
}

/* 不同尺寸的加载动画 */
.image-container.small .modern-loader {
  width: 24px;
  height: 24px;
}

.image-container.small .ring-1 {
  width: 24px;
  height: 24px;
}

.image-container.small .ring-2 {
  width: 16px;
  height: 16px;
  top: 4px;
  left: 4px;
}

.image-container.small .dot {
  width: 3px;
  height: 3px;
}

.image-container.small .loading-text {
  font-size: 10px;
}

.image-container.large .modern-loader {
  width: 56px;
  height: 56px;
}

.image-container.large .ring-1 {
  width: 56px;
  height: 56px;
}

.image-container.large .ring-2 {
  width: 40px;
  height: 40px;
  top: 8px;
  left: 8px;
}

.image-container.large .dot {
  width: 6px;
  height: 6px;
}

.image-container.large .loading-text {
  font-size: 14px;
}

.image-container.small .error-text {
  font-size: 10px;
}

.image-container.large .error-text {
  font-size: 14px;
}

/* 平板适配 */
@media screen and (min-width: 768px) {
  .image-container .modern-loader {
    width: 48px;
    height: 48px;
  }

  .image-container .ring-1 {
    width: 48px;
    height: 48px;
  }

  .image-container .ring-2 {
    width: 34px;
    height: 34px;
    top: 7px;
    left: 7px;
  }

  .image-container .dot {
    width: 5px;
    height: 5px;
  }

  .image-container .loading-text {
    font-size: 14px;
  }

  .image-container .error-text {
    font-size: 14px;
  }
}

/* 大屏设备适配 */
@media screen and (min-width: 1024px) {
  .image-container .modern-loader {
    width: 56px;
    height: 56px;
  }

  .image-container .ring-1 {
    width: 56px;
    height: 56px;
  }

  .image-container .ring-2 {
    width: 40px;
    height: 40px;
    top: 8px;
    left: 8px;
  }

  .image-container .dot {
    width: 6px;
    height: 6px;
  }

  .image-container .loading-text {
    font-size: 16px;
  }

  .image-container .error-text {
    font-size: 16px;
  }
}
.fsm.speed-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.fsm .speed-modal {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px 12px 0 0;
  padding: 0;
  width: 100vw;
  height: 20vh;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  /* transform: rotate(90deg); */
  transform-origin: center bottom;
  margin: 0;
}

.fsm .speed-modal-header {
  padding: 2vh;
  /* border-bottom: 1px solid #333; */
}

.fsm .speed-modal-title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  text-align: center;
}

.fsm .speed-modal-content {
  transform: rotate(90deg);
  padding: 2vh 0;
}

.fsm .speed-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 24px;
  color: #ccc;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: calc(10vh - 8px);
}

.fsm .speed-option.active {
  color: #ff6b35;
  background: rgba(255, 107, 53, 0.1);
}

.fsm .check-icon {
  color: #ff6b35;
}
.em {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  isolation: isolate;
  contain: none;
  pointer-events: auto;
  backdrop-filter: blur(0px);
}

.em__modal {
  width: 100%;
  background: #fff;
  position: relative;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.3s ease;
  overflow: hidden;
  height: 63vh;
  z-index: 10000000;
  display: flex;
  flex-direction: column;
  /* 确保在手机浏览器中可以滚动 */
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.em__hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  flex-shrink: 0;
}

.em__nav {
  display: flex;
  gap: 24px;
}

.em__tab {
  font-size: 16px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s ease;
}

.em__tab.active {
  color: #ff9500;
  font-weight: 600;
}

/* 简介页面样式 */
.em__intro {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.em__intro-hd {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.em__cover {
  width: 120px;
  position: relative;
  flex-shrink: 0;
}

.em__cover::before {
  content: '';
  display: block;
  padding-top: 133%;
  /* 3:4 封面比例 */
}

.em__cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* ImageWithLoading组件样式 */
.em__cover .image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.em__cover .image-container img {
  border-radius: 8px;
}

.em__info {
  flex: 1;
}

.em__title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
}

.em__author {
  font-size: 14px;
  color: #666;
  margin: 0 0 12px 0;
}

.em__desc {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
  cursor: pointer;
}

.em__desc:hover {
  opacity: 0.8;
}

.em__desc.expanded {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

.em__rec {
  margin-top: 24px;
}

.em__rec-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px 0;
}

.em__rec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.em__rec-item {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  width: 100%;
  min-width: 0;
  /* 允许flex项目缩小到内容以下 */
}

.em__rec-cover {
  position: relative;
  width: 100%;
  padding-top: 133%;
  /* 3:4 封面比例 */
  margin-bottom: 8px;
}

.em__rec-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* ImageWithLoading组件样式 */
.em__rec-cover .image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.em__rec-cover .image-container img {
  border-radius: 6px;
}

.em__rec-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  min-width: 0;
  /* 允许内容缩小 */
}

.em__rec-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.em__rec-meta {
  font-size: 12px;
  color: #666;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* 选集页面样式 */
.em__episodes {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* 确保在手机浏览器中可以滚动 */
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

/* 固定的分组导航按钮 */
.em__nav-groups {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 0px 12px 12px 12px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.em__nav-btn {
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.em__nav-btn.active {
  color: #000;
  font-weight: 600;
}

/* 可滚动的剧集网格容器 */
.em__grid-container {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px;
  /* 手机浏览器滚动支持 */
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  /* 确保在手机浏览器中可以滚动 */
  overscroll-behavior: contain;
  will-change: scroll-position;
}

.em__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 12px;
  margin: 0;
}

.em__item {
  background: #f6f6f6;
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.em__item.active {
  background: #ff9500;
  border-color: #ff6b35;
  color: #fff;
}

.em__num {
  color: #333;
  font-size: 13px;
  font-weight: 600;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

.em__item.active .em__num {
  color: #fff;
}

/* 平板适配 */
@media screen and (min-width: 768px) {
  .em__hd h3 {
    font-size: 20px;
  }

  .em__tab {
    font-size: 16px;
    padding: 12px 20px;
  }

  /* 简介内容调整 */
  .em__intro h3 {
    font-size: 20px;
  }

  .em__intro p {
    font-size: 16px;
    line-height: 1.6;
  }

  /* 推荐剧集调整 */
  .em__rec-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
  }

  .em__rec-name {
    font-size: 16px;
  }

  .em__rec-meta {
    font-size: 14px;
  }

  /* 选集网格调整 */
  .em__grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 16px;
  }

  .em__item {
    min-height: 48px;
    padding: 12px 8px;
  }

  .em__num {
    font-size: 15px;
  }

  /* 分组按钮调整 */
  .em__nav-btn {
    font-size: 14px;
    padding: 8px 16px;
  }
}

/* 大屏设备适配 */
@media screen and (min-width: 1024px) {
  .em__hd h3 {
    font-size: 24px;
  }

  .em__tab {
    font-size: 18px;
    padding: 16px 24px;
  }

  .em__intro h3 {
    font-size: 24px;
  }

  .em__intro p {
    font-size: 18px;
  }

  .em__rec-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
  }

  .em__grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
  }

  .em__item {
    min-height: 56px;
  }

  .em__num {
    font-size: 16px;
  }
}
/* 底部导航栏容器样式 */
.bn.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6vh;
  /* 导航栏高度 */
  background-color: rgba(25, 25, 25);
  display: flex;
  /* 弹性布局 */
  align-items: center;
  /* 垂直居中对齐 */
  justify-content: space-around;
  /* 水平均匀分布 */
  z-index: 9;
  /* 确保在最上层 */
}

/* 白色背景样式（剧场和我的界面） */
.bn.bottom-nav.white-bg {
  background-color: white;
}

/* 导航项样式 */
.bn .nav-item {
  font-weight: 900;
  display: flex;
  /* 弹性布局 */
  flex-direction: column;
  /* 垂直排列 */
  align-items: center;
  /* 水平居中对齐 */
  justify-content: center;
  /* 垂直居中对齐 */
  padding: 4px 8px;
  /* 内边距 */
  cursor: pointer;
  /* 鼠标指针样式 */
  transition: color 0.3s ease;
  /* 颜色过渡动画 */
  color: #666;
  /* 默认颜色：灰色 */
  min-width: 60px;
  /* 最小宽度 */
}

/* 导航项悬停效果 */
.bn .nav-item:hover {
  color: #000;
  /* 悬停时变为黑色 */
}

/* 激活状态的导航项样式 */
.bn .nav-item.active {
  color: #fff;
  /* 激活时显示橙色 */
}

/* 白色背景下的导航项样式 */
.bn.bottom-nav.white-bg .nav-item {
  color: #aaa;
  /* 白色背景下使用深色文字 */
}

.bn.bottom-nav.white-bg .nav-item:hover {
  color: #000;
  /* 悬停时变为黑色 */
}

.bn.bottom-nav.white-bg .nav-item.active {
  color: #000;
  /* 激活时显示橙色 */
}

/* 导航项图标样式 */
.bn .nav-item .van-icon {
  margin-bottom: 2px;
  /* 图标下方间距 */
}

/* 导航项文字样式 */
.bn .nav-item span {
  font-size: 14px;
  /* 字体大小 */
  /* margin-top: 2px; */
  /* 文字上方间距 */
  line-height: 1;
  /* 行高 */
  text-align: center;
  /* 文字居中对齐 */
}

/* 平板适配 */
@media screen and (min-width: 768px) {
  .bn .nav-item {
    padding: 8px 12px;
    min-width: 80px;
  }

  .bn .nav-item .van-icon {
    font-size: 28px !important;
    margin-bottom: 4px;
  }

  .bn .nav-item span {
    font-size: 16px;
    /* margin-top: 4px; */
  }
}

/* 大屏设备适配 */
@media screen and (min-width: 1024px) {
  .bn.bottom-nav {
    height: 9vh;
  }

  .bn .nav-item {
    min-width: 100px;
  }

  .bn .nav-item .van-icon {
    font-size: 20px !important;
  }

  .bn .nav-item span {
    font-size: 18px;
  }
}

/* 响应式设计：横屏模式下的调整 */
@media (orientation: landscape) {
  .bn.bottom-nav {
    height: 48px;
    /* 横屏时稍微降低高度 */
  }

}
.fem.episode-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  /* background: rgba(0, 0, 0, 0.3); */
  pointer-events: auto;
  overflow: hidden;
}

.fem .episode-modal {
  background: rgba(0, 0, 0, 0.4);
  width: 100vw;
  height: 20vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* transform: rotate(90deg); */
  transform-origin: center bottom;
  margin: 0;
  border-radius: 12px 12px 0 0;
}

.fem .episode-modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #333;
  flex-shrink: 0;
}

.fem .episode-modal-title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  text-align: center;
}

.fem .episode-groups {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  flex-shrink: 0;
}

.fem .episode-group-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.fem .episode-group-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.fem .episode-group-btn.active {
  background: rgba(255, 107, 53, 0.8);
  color: #fff;
  border-color: rgba(255, 107, 53, 0.6);
}

.fem .episode-modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  transform: rotate(90deg);
  transform-origin: center bottom;
  width: 20vh;
  height: 100vw;
  position: absolute;
  bottom: 10vh;
  /* left: 50%; */
  margin-left: -10vh;
}

.fem .episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
  gap: 8px;
}

.fem .episode-item {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  min-width: 40px;
  min-height: 40px;
}

.fem .episode-item.active {
  background: rgba(255, 107, 53);
  border-color: rgba(255, 255, 255, 0.6);
}

.fem .episode-number {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 500;
}

.fem .episode-item.active .episode-number {
  color: #fff;
  font-weight: 600;
}

/* 滚动条样式 - 全屏模式下隐藏滚动条 */
.fem .episode-modal-content::-webkit-scrollbar,
.fem .episode-groups::-webkit-scrollbar {
  width: 0px;
  height: 0px;
  background: transparent;
}

.fem .episode-modal-content::-webkit-scrollbar-track,
.fem .episode-groups::-webkit-scrollbar-track {
  background: transparent;
}

.fem .episode-modal-content::-webkit-scrollbar-thumb,
.fem .episode-groups::-webkit-scrollbar-thumb {
  background: transparent;
}

.fem .episode-modal-content::-webkit-scrollbar-thumb:hover,
.fem .episode-groups::-webkit-scrollbar-thumb:hover {
  background: transparent;
}
.ep {
  background: #fff;
  min-height: 100vh;
  padding-bottom: 80px;
}

.ep__hd {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  color: #333;
  position: relative;
  z-index: 100;
}

.ep__hd h2 {
  margin: 0;
  font-size: 18px;
  /* 单行显示，多余用省略号 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  text-align: center;
}

.ep__meta {
  display: flex;
  gap: 12px;
  padding: 0 20px;
  color: #333;
}

.ep__cover-wrapper {
  width: 100px;
  height: 133px;
  flex-shrink: 0;
}

.ep__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.ep__info {
  flex: 1;
}

/* 演员信息样式 */
.ep__info p {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin: 2px 0;
}

.ep__info p:last-child {
  margin-bottom: 0;
}

.ep__list {
  padding: 20px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 300px);
}

.ep__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.ep__header h3 {
  color: #333;
  margin: 0;
  font-size: 18px;
}

.ep__count {
  color: #999;
  font-size: 14px;
}

/* 固定的分组导航按钮 */
.ep__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
}

.ep__nav-btn {
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ep__nav-btn.active {
  color: #000;
  font-weight: 600;
}

/* 水平滚动的剧集容器 */
.ep__scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

.ep__scroll::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari and Opera */
}

.ep__scroll-list {
  display: flex;
  gap: 12px;
  min-width: max-content;
  margin-top: 12px;
}

.ep__item {
  background: #f6f6f6;
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  min-height: 40px;
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
}

.ep__item:hover {
  color: inherit;
  text-decoration: none;
}

.ep__item.active {
  background: #ff9500;
  border-color: #ff6b35;
  color: #fff;
}

.ep__num {
  color: #333;
  font-size: 13px;
  font-weight: 600;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

.ep__item.active .ep__num {
  color: #fff;
}

/* 推荐剧集 */
.ep__rec {
  padding: 10px 20px;
}

.ep__rec-hd {
  margin-bottom: 16px;
}

.ep__rec-hd h3 {
  color: #333;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.ep__rec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ep__rec-item {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  padding: 4px;
  cursor: pointer;
  width: 100%;
  min-width: 0;
  /* 允许flex项目缩小到内容以下 */
  color: inherit;
  text-decoration: none;
}

.ep__rec-item:hover {
  color: inherit;
  text-decoration: none;
}

.ep__rec-cover {
  position: relative;
  width: 100%;
  padding-top: 133%;
  /* 3:4 封面比例 */
  margin-bottom: 8px;
}

.ep__rec-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* ImageWithLoading组件样式 */
.ep__rec-cover .image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.ep__rec-cover .image-container img {
  border-radius: 6px;
}

.ep__rec-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  min-width: 0;
  /* 允许内容缩小 */
}

.ep__rec-title {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ep__rec-meta {
  font-size: 12px;
  color: #666;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* 简介包装器 - theater/[id].vue */
.ep__desc-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 简介样式 - 默认显示4行 */
.ep__desc {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
  width: 100%;
  cursor: pointer;
  padding: 10px 20px 0 ;
}

.ep__desc:hover {
  opacity: 0.8;
}

/* 展开状态 - 显示全部内容 */
.ep__desc.expanded {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

/* 展开/收起按钮 */
.ep__desc-toggle {
  color: #ff9500;
  font-size: 14px;
  cursor: pointer;
  margin-top: 2px;
  display: block;
  transition: color 0.3s ease;
  text-align: center;
}

.ep__desc-toggle:hover {
  color: #ff6b35;
}

.ep__desc-toggle:active {
  color: #e85f2e;
}

/* 演员包装器 */
.ep__actor-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 演员样式 - 默认显示4行 */
.ep__actor {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
  width: 100%;
  cursor: pointer;
}

.ep__actor:hover {
  opacity: 0.8;
}

/* 演员展开状态 - 显示全部内容 */
.ep__actor.expanded {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

/* 演员展开/收起按钮 */
.ep__actor-toggle {
  color: #ff9500;
  font-size: 14px;
  cursor: pointer;
  margin-top: 8px;
  display: block;
  transition: color 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.ep__actor-toggle:hover {
  color: #ff6b35;
}

.ep__actor-toggle:active {
  color: #e85f2e;
}

/* 平板适配 */
@media screen and (min-width: 768px) {

  /* 封面图片调整 */
  .ep__cover-wrapper {
    width: 140px;
    height: 186px;
  }

  /* 选集导航调整 */
  .ep__nav .ep__nav-btn {
    font-size: 14px;
    padding: 8px 16px;
  }

  /* 选集项调整 */
  .ep__item {
    padding: 12px 16px;
    min-height: 48px;
  }

  .ep__num {
    font-size: 15px;
  }

  /* 推荐网格调整 */
  .ep__rec-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }

  .ep__rec-item h3 {
    font-size: 16px;
  }

  .ep__rec-meta {
    font-size: 14px;
  }
}

/* 大屏设备适配 */
@media screen and (min-width: 1024px) {
  
  /* 封面图片调整 */
  .ep__cover-wrapper {
    width: 180px;
    height: 240px;
  }

  .ep__rec-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
  }

  .ep__item {
    min-height: 56px;
  }

  .ep__num {
    font-size: 16px;
  }
}
/* SEO 页面专用样式 */
.th-seo {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.th-seo-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.th-seo-header h1 {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin: 0 0 10px 0;
}

.th-seo-desc {
  font-size: 16px;
  color: #666;
  margin: 0;
}

/* 剧集网格样式 */
.th-dl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.th-di {
  border-radius: 10px;
  overflow: hidden;
}

.th-dc {
  position: relative;
  width: 100%;
  padding-top: 133%;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  display: block;
}

.th-dc:hover {
  color: inherit;
  text-decoration: none;
}

.th-dc img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* .th-ec {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
} */

.th-po {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.th-dc:hover .th-po {
  opacity: 1;
}

.th-di2 {
  padding: 12px;
}

.th-title {
  margin: 0 0 6px 0;
  font-size: 14px;
  color: #333;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-decoration: none;
}

.th-sub {
  margin: 0;
  color: #999;
  font-size: 12px;
}

/* 分页样式 */
.th-seo-pagination {
  margin-top: 40px;
  text-align: center;
}

.th-seo-pagination-info {
  margin-bottom: 20px;
}

.th-seo-pagination-info p {
  color: #666;
  font-size: 14px;
  margin: 0;
}

.th-seo-pagination-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.th-seo-pagination-link {
  display: inline-block;
  padding: 8px 12px;
  background: #f5f5f5;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.th-seo-pagination-link:hover {
  background: #e0e0e0;
  color: inherit;
  text-decoration: none;
}

.th-seo-pagination-current {
  display: inline-block;
  padding: 8px 12px;
  background: #ff9500;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}

.th-seo-pagination-prev,
.th-seo-pagination-next {
  font-weight: 500;
}

/* 空状态 */
.th-e {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

/* 所有分页链接样式 */
.th-seo-all-pages {
  margin-top: 30px;
  text-align: center;
}

.th-seo-all-pages a {
  display: inline-block;
  margin: 5px;
  padding: 8px 12px;
  background: #f8f9fa;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.th-seo-all-pages a:hover {
  background: #e9ecef;
  color: inherit;
  text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .th-seo {
    padding: 15px;
  }

  .th-seo-header h1 {
    font-size: 24px;
  }

  .th-dl {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }

  .th-seo-pagination-links {
    gap: 4px;
  }

  .th-seo-pagination-link {
    padding: 6px 10px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .th-dl {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
  }

  .th-di2 {
    padding: 8px;
  }

  .th-title {
    font-size: 13px;
  }

  .th-sub {
    font-size: 11px;
  }
}
.th.th-p {
  padding: 0px 12px 80px;
  background: #f5f5f5;
  min-height: 100vh;
}



/* 分类菜单栏样式 */
.th .th-b {
  padding: 15px 0;
  margin-bottom: 1px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: #f5f5f5;
  transform: translateY(0);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}

/* 头部隐藏状态 - 整个分类栏向上移出视图 */
.th .th-b.th-hh {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* 分类头部信息显示在顶部，替代原来的标题 */
.th .th-hd {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  /* margin-bottom: 12px;
  padding: 8px 0; */
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 搜索容器样式 */
.th .th-search-container {
  position: relative;
  flex-shrink: 0;
  width: 65vw;
}

/* 搜索框样式 */
.th .th-si {
  width: 100%;
  background: #fff;
  border-radius: 20px;
  padding: 6px 16px;
}

/* 修复输入框外层白色背景问题 */
.th .th-si :deep(.van-field) {
  background: transparent;
}

.th .th-si :deep(.van-field__body) {
  background: transparent;
}

.th .th-si :deep(.van-field__control) {
  font-size: 14px;
  padding: 4px 12px;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  background: #fff;
}

.th .th-si :deep(.van-field__prefix) {
  color: #999;
  margin-right: 6px;
  font-size: 14px;
}

.th .th-si :deep(.van-field__clear) {
  color: #999;
}

/* 自动补全下拉列表样式 */
.th .th-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 4px;
  padding-top: 25px;
}

.th .th-autocomplete-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.th .th-autocomplete-item:last-child {
  border-bottom: none;
}

.th .th-autocomplete-item:hover {
  background-color: #f8f9fa;
}

.th .th-autocomplete-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.th .th-autocomplete-title {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  line-height: 1.3;
}

.th .th-autocomplete-meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: #666;
}

.th .th-autocomplete-meta span {
  padding: 2px 6px;
  background: #f0f0f0;
  border-radius: 4px;
}

/* 分类信息样式 */
.th .th-ci {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.th .th-tc {
  font-size: 14px;
  color: #666;
}

/* 顶级分类横向滚动 */
.th .th-tc {
  margin-bottom: 1px;
}

.th .th-cs {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 4px 0;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

.th .th-cs::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.th .th-ti {
  padding: 6px 12px;
  background: #f5f5f5;
  border-radius: 16px;
  font-size: 13px;
  color: #666;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.th .th-ti.th-a {
  color: #000;
  font-weight: 600;
}

/* 子分类横向滚动显示 */
.th .th-sc {
  margin-bottom: 8px;
}

.th .th-ss {
  display: flex;
  overflow-x: auto;
  gap: 6px;
  padding: 4px 0;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

.th .th-ss::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.th .th-si2 {
  padding: 4px 10px;
  background: #f0f0f0;
  border-radius: 12px;
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}



.th .th-si2.th-a {
  background: #fff4e6;
  color: #ff9500;
  border-color: #ff9500;
}

.th .th-cc {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.th .th-tc {
  font-size: 12px;
  color: #666;
}

.th .th-e {
  text-align: center;
  color: #666;
  padding: 40px 0;
}

/* 三列网格 */
.th .th-dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* 平板适配 */
@media screen and (min-width: 768px) {
  .th .th-dl {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }

  .th .th-di2 h3,
  .th .th-title {
    font-size: 16px;
    color: inherit;
    text-decoration: none;
  }

  .th .th-di2 .th-sub {
    font-size: 14px;
  }

  .th .th-ec {
    font-size: 12px;
    padding: 4px 8px;
  }

  /* 分类标签调整 */
  .th .th-si2 {
    font-size: 14px;
    padding: 6px 14px;
  }

  .th .th-cc {
    font-size: 16px;
    width: 140px;
  }

  .th .th-tc {
    font-size: 14px;
  }
}

/* 大屏设备适配 */
@media screen and (min-width: 1024px) {
  .th .th-dl {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }

  .th .th-di2 h3,
  .th .th-title {
    font-size: 18px;
    color: inherit;
    text-decoration: none;
  }

  .th .th-di2 .th-sub {
    font-size: 15px;
  }

  .th .th-cc {
    font-size: 16px;
    width: 160px;
  }
}

.th .th-di {
  border-radius: 10px;
  overflow: hidden;
}

.th .th-dc {
  position: relative;
  width: 100%;
  padding-top: 133%;
  /* 3:4 封面比例 */
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  display: block;
}

.th .th-dc:hover {
  color: inherit;
  text-decoration: none;
}

.th .th-dc img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* ImageWithLoading组件样式 */
.th .th-dc .image-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.th .th-dc .image-container img {
  border-radius: 10px;
}

.th .th-ec {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
  /* 单行省略号 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
}

.th .th-po {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.25s;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.th .th-dc:hover .th-po {
  opacity: 1;
}

.th .th-di2 {
  padding: 8px;
}

.th .th-di2 h3,
.th .th-title {
  margin: 0 0 6px 0;
  font-size: 14px;
  color: #333;
  line-height: 1.3;
  /* 单行显示，多余用省略号 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-decoration: none;
}

.th .th-di2 .th-sub {
  margin: 0;
  color: #999;
  font-size: 12px;
}

@media (max-width: 360px) {
  .th .th-dl {
    gap: 10px;
  }

  .th .th-di2 h3,
  .th .th-title {
    font-size: 13px;
    color: inherit;
    text-decoration: none;
  }
}
/* 视频列表容器样式 */
.pl {
  height: 100vh; /* 兼容旧浏览器 */
  height: 100dvh; /* 动态视口高度，不受地址栏影响 */
  overflow: hidden;
  position: relative;
  background: #000;
  /* 优化移动端触摸行为 */
  touch-action: pan-y; /* 允许垂直滑动，阻止水平滑动和缩放 */
  -webkit-overflow-scrolling: touch; /* iOS 平滑滚动 */
}

/* 顶部操作按钮样式 */
.pl__hd {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 30;
  color: #ddd;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pl__title {
  color: #ddd;
  font-size: 16px;
  font-weight: 500;
}

/* 滑动容器样式 */
.pl__slides {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(100% * 3);
  background: #000;
  /* 优化动画性能 */
  backface-visibility: hidden;
  perspective: 1000px;
  transform-style: preserve-3d;
  /* 优化移动端动画性能 */
  will-change: transform;
  -webkit-transform: translateZ(0); /* 强制硬件加速 */
  transform: translateZ(0);
}

/* 单个剧集容器样式 */
.pl__slide {
  height: calc(100% / 3);
  display: flex;
  background: #000;
  /* 优化动画性能 */
  backface-visibility: hidden;
  transform: translateZ(0);
  background-color: rgba(25, 25, 25);
}

/* 占位符样式 */
.pl__placeholder {
  width: 100%;
  height: 100%;
  background: #000;
}
/* 隐藏下划线效果 */
.pf .van-tabs__line {
  display: none !important;
}

/* 菜单居中显示 */
.pf .van-tabs__nav {
  justify-content: center;
}

.pf .van-tabs__wrap {
  display: flex;
  justify-content: center;
}

/* 菜单字体和间隔调整 */
.pf .van-tab {
  font-size: 16px;
  font-weight: 500;
  padding: 0 24px;
  margin: 0 8px;
}

.pf .van-tab__text {
  font-size: 16px;
  font-weight: 500;
}

/* 菜单颜色调整 */
.pf .van-tab {
  color: #bbb !important;
  /* 未选中状态：更淡的灰色 */
}

.pf .van-tab--active {
  color: #000 !important;
  /* 选中状态：深黑色 */
}

.pf .van-tab--active .van-tab__text {
  color: #000 !important;
  /* 确保选中文本是深黑色 */
}

.pf .van-tab__text {
  color: inherit;
  /* 继承父元素颜色 */
}

.pf {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* 防止整个页面滚动 */
}

/* 固定的顶部区域 */
.pf__hd {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 12px;
  background: #fff;
  /* 确保背景色立即可见 */
  visibility: visible;
  opacity: 1;
}

/* 确保 van-tabs 组件立即可见 */
.pf__hd .van-tabs {
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
}

.pf__hd .van-tabs__wrap {
  visibility: visible !important;
  opacity: 1 !important;
  display: flex !important;
}

.pf__hd .van-tabs__nav {
  visibility: visible !important;
  opacity: 1 !important;
  display: flex !important;
}

.pf__hd .van-tab {
  visibility: visible !important;
  opacity: 1 !important;
  display: flex !important;
}

.pf__hd .van-tab__text {
  visibility: visible !important;
  opacity: 1 !important;
}

/* 纯 HTML 实现的 Tabs - 立即显示，不依赖 Vant 组件 */
.pf__tabs-native {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  padding: 0;
}

.pf__tabs-native-item {
  font-size: 16px;
  font-weight: 500;
  padding: 0 24px;
  margin: 0 8px;
  color: #bbb;
  cursor: pointer;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.pf__tabs-native-item:hover {
  color: #999;
}

.pf__tabs-native-item--active {
  color: #000 !important;
  font-weight: 600;
}

.pf__tabs-placeholder-item {
  font-size: 16px;
  font-weight: 500;
  padding: 0 24px;
  margin: 0 8px;
  color: #bbb;
  cursor: pointer;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
}

.pf__tabs-placeholder-item--active {
  color: #000 !important;
  font-weight: 600;
}

/* 可滚动的内容区域 */
.pf__content {
  flex: 1;
  margin-top: 85px;
  /* 为固定头部留出空间 */
  padding: 12px;
  padding-bottom: 80px;
  overflow-y: auto;
  /* 确保内容可以正常滚动 */
  height: calc(100vh - 85px - 80px);
  /* 减去顶部和底部导航的高度 */
}

.pf__clear {
  display: flex;
  justify-content: flex-end;
}

.pf__clear-btn {
  background: transparent !important;
  border: none !important;
  color: #666 !important;
  font-size: 12px;
  height: 32px;
  padding: 0;
  box-shadow: none !important;
}

.pf__empty {
  text-align: center;
  padding: 40px 0;
  color: #999;
}

.pf__empty-link {
  display: inline-block;
  margin-top: 20px;
  color: #ff6b35;
  text-decoration: underline;
  font-size: 14px;
  transition: color 0.3s;
}

.pf__empty-link:hover {
  color: #ff6b35;
  text-decoration: underline;
}

.pf__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0;
}

.pf__card {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.pf__card:hover {
  color: inherit;
  text-decoration: none;
}

.pf__cover {
  position: relative;
  width: 100%;
  padding-top: 133%;
  /* 3:4 封面比例 */
}

.pf__cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* ImageWithLoading组件样式 */
.pf__cover .image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.pf__cover .image-container img {
  border-radius: 8px;
}

.pf__title {
  padding: 6px 6px 2px 6px;
  font-size: 12px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.pf__desc {
  padding: 0 6px 2px 6px;
  font-size: 11px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.pf__author {
  padding: 0 6px 6px 6px;
  font-size: 10px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* 平板适配 */
@media screen and (min-width: 768px) {
  .pf__grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }

  .pf__card {
    padding: 2px;
  }

  .pf__card h3 {
    font-size: 18px;
  }

  .pf__card p {
    font-size: 15px;
  }

  /* 菜单字体调整 */
  .pf .van-tab {
    font-size: 18px !important;
    padding: 0 28px !important;
    margin: 0 12px !important;
  }

  .pf .van-tab__text {
    font-size: 18px !important;
  }

  /* 清除按钮调整 */
  .pf__clear-btn {
    font-size: 16px !important;
    padding: 8px 16px !important;
  }
}

/* 大屏设备适配 */
@media screen and (min-width: 1024px) {
  .pf__grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }

  .pf__card h3 {
    font-size: 20px;
  }

  .pf__card p {
    font-size: 16px;
  }
}
/* 视频列表容器样式 */
.idx {
  height: 100vh;
  overflow: hidden;
  position: relative;
  background: #000;
  /* 为底部导航栏留出空间 */
  padding-bottom: 52px;
}

/* 滑动容器样式 */
.idx .idx-slides {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(100% * 3);
  background: #000;
  /* 优化动画性能 */
  backface-visibility: hidden;
  perspective: 1000px;
  transform-style: preserve-3d;
  /* 优化移动端动画性能 */
  will-change: transform;
  -webkit-transform: translateZ(0); /* 强制硬件加速 */
  transform: translateZ(0);
}

/* 单个视频容器样式 */
.idx .idx-slide {
  height: calc(100% / 3);
  display: flex;
  /* 优化动画性能 */
  backface-visibility: hidden;
  transform: translateZ(0);
  background-color: rgba(25, 25, 25);
}

/* 占位符样式 */
.idx .idx-placeholder {
  width: 100%;
  height: 100%;
  background: #000;
}

/* 下载悬浮框 */
.pf__download-fab {
  position: fixed;
  right: 16px;
  bottom: 16vh;
  z-index: 10;
  background: transparent;
  border-radius: 999px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); */
  cursor: pointer;
  user-select: none;
}

.pf__download-fab:active {
  opacity: 0.85;
}

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

/* 平板适配 */
@media screen and (min-width: 768px) {
  .pf__download-fab {
    right: 24px;
    bottom: 14vh;
    width: 64px;
    height: 64px;
  }
}

/* 大屏适配 */
@media screen and (min-width: 1024px) {
  .pf__download-fab {
    right: 28px;
    bottom: 12vh;
    width: 72px;
    height: 72px;
  }
}