/* === 首页专题推荐板块 - 超紧凑版（适配移动端）=== */
.home-topic-section {
  display: flex;
  justify-content: space-between;
  width: 1104px;
  margin: 24px auto 32px;
  padding: 0;
  gap: 16px;
}

.home-topic-item {
  width: calc((1104px - 32px) / 3);
  text-decoration: none;
  color: #f4f4f4;
  transition: transform 0.2s ease;
}

.home-topic-item:hover {
  transform: translateY(-3px);
}

.home-topic-cover {
  position: relative;
  padding-top: 65%; /* ← 桌面端更矮 */
  border-radius: 6px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.home-topic-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.home-topic-item:hover .home-topic-cover img {
  transform: scale(1.03);
}

.home-topic-title {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
  color: #f0f0f0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 32px; /* 稍微再压一点 */
}

/* 手机端：极致紧凑 + 贴边 */
@media (max-width: 767px) {
  .home-topic-section {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 12px auto 16px;
    padding: 0 4px; /* ← 左右仅 4px，极致扩展 */
  }
  .home-topic-item {
    width: 100%;
    max-width: none;
  }
  .home-topic-cover {
    padding-top: 55%; /* ← 关键：高度大幅降低 */
    border-radius: 6px;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  }
  .home-topic-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .home-topic-title {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    color: #eee;
    /* 单行显示，避免高度波动 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 20px;
    line-height: 20px;
  }
}


/* === 首页幻灯片 Banner - 宽屏海报专用版 === */
.home-swiper-banner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  margin-top: 12px;    /* ← 小缝隙，不贴导航 */
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 8px;  /* 可选：加点圆角更柔和 */
}

.home-swiper-banner .swiper {
  width: 100%;
  height: 420px;
  background: #1a1a1a; /* ← 主页色调，避免纯黑 */
  display: block;
  overflow: hidden;
}

.home-swiper-banner .swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

/* 关键：宽屏海报完美覆盖 */
.home-swiper-banner .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ← 正确方式：填满无黑边 */
  display: block;
}

/* 轻量遮罩：仅用于提升文字可读性（很淡） */
.home-swiper-banner .slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
  z-index: 1;
}

/* 文字内容 */
.slide-content {
  position: absolute;
  left: 6%;
  bottom: 40px;
  color: white;
  max-width: 600px;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6); /* 轻微阴影，不压图 */
}
.slide-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.slide-score {
  display: inline-flex;
  align-items: center;
  background: rgba(244, 63, 94, 0.9);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  margin-right: 12px;
}
.slide-play-btn {
  width: 52px;
  height: 52px;
  background: rgba(244, 63, 94, 0.95);
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.slide-play-btn:hover {
  background: #f43f5e;
  transform: scale(1.05);
}
.slide-play-btn i {
  font-size: 18px;
  margin-left: 2px;
}

/* 分页器（保持好看） */
.home-swiper-banner .swiper-pagination {
  position: absolute;
  bottom: 16px;
  right: 20px;
  z-index: 3;
  display: flex;
  gap: 4px;
}
.home-swiper-banner .swiper-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  opacity: 1;
  transition: all 0.2s ease;
}
.home-swiper-banner .swiper-pagination .swiper-pagination-bullet-active {
  background: #f43f5e;
  width: 24px;
  border-radius: 5px;
  transform: scale(1.1);
}

/* 手机端：极致紧凑 Banner */
@media (max-width: 767px) {
  .home-swiper-banner {
    margin-bottom: 6px; /* 间距再微缩 */
  }
  .home-swiper-banner .swiper {
    height: 160px; /* ← 关键：从 200px 降到 160px */
  }
  .slide-content {
    left: 4%;
    bottom: 12px; /* 下移减少 */
    max-width: 92%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .slide-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 0 !important;
    line-height: 1.3;
    max-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* 单行更省空间 */
  }
  .slide-score {
    background: rgba(244, 63, 94, 0.85);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
  }
  .slide-play-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .slide-play-btn i {
    font-size: 14px;
    margin-left: 1px;
  }

  /* 分页器上移，避免遮挡内容 */
  .home-swiper-banner .swiper-pagination {
    bottom: 8px;
    right: 10px;
  }
  .home-swiper-banner .swiper-pagination .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
  }
  .home-swiper-banner .swiper-pagination .swiper-pagination-bullet-active {
    width: 16px;
  }
}

/* ==============================
   首页 - 热门明星模块（最终修复版）
   主色调：#1a1a1a（与主页一致）
   ============================== */
.hot-star-container {
    width: 100%;
    max-width: 1200px;
    margin: 24px auto 0;
    /* 移除了背景颜色的设置 */
    color: #ffffff; /* 假设你需要文本颜色为白色 */
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

/* 标题栏 */
.hot-star-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.hot-star-header .more-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  transition: all 0.2s ease;
}
.hot-star-header .more-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Swiper 区域 */
.hot-star-swiper {
  position: relative;
  overflow: visible;
  padding: 0;
}

.hot-star-swiper .swiper {
  padding: 0 40px; /* 为左右箭头留出空间 */
}

/* 修复 slide 宽度，防止头像溢出 */
.hot-star-swiper .swiper-slide {
  width: 140px !important;
  height: auto !important;
  margin-right: 20px;
  display: flex;
  justify-content: center;
}

/* 明星项 */
.hot-star-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
}

.hot-star-item img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  box-shadow: 0 0 0 2px rgba(0, 187, 255, 0.3); /* 浅蓝光晕 */
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hot-star-item:hover img {
  transform: scale(1.05);
  border-color: #00bfff;
  box-shadow: 0 0 0 2px #00bfff;
}

.hot-star-item span {
  margin-top: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Swiper 导航按钮（左右箭头） */
.hot-star-swiper .swiper-button-prev,
.hot-star-swiper .swiper-button-next {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  opacity: 0.8;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.2s ease;
  z-index: 3;
  margin-top: 0 !important;
}
.hot-star-swiper .swiper-button-prev:hover,
.hot-star-swiper .swiper-button-next:hover {
  background: rgba(255, 255, 255, 0.25);
  opacity: 1;
}
.hot-star-swiper .swiper-button-prev::after,
.hot-star-swiper .swiper-button-next::after {
  font-size: 16px;
  font-weight: bold;
}
.hot-star-swiper .swiper-button-prev {
  left: 8px;
}
.hot-star-swiper .swiper-button-next {
  right: 8px;
}

/* 移动端适配 */
@media (max-width: 767px) {
  .hot-star-container {
    margin: 16px auto 0;
    padding: 16px;
    border-radius: 6px;
  }
  .hot-star-header {
    font-size: 16px;
    margin-bottom: 12px;
  }
  .hot-star-swiper .swiper {
    padding: 0 30px;
  }
  .hot-star-swiper .swiper-slide {
    width: 100px !important;
    margin-right: 16px;
  }
  .hot-star-item img {
    width: 80px;
    height: 80px;
  }
  .hot-star-item span {
    font-size: 12px;
    max-width: 70px;
  }
  .hot-star-swiper .swiper-button-prev,
  .hot-star-swiper .swiper-button-next {
    width: 28px;
    height: 28px;
  }
  .hot-star-swiper .swiper-button-prev::after,
  .hot-star-swiper .swiper-button-next::after {
    font-size: 14px;
  }
  .hot-star-swiper .swiper-button-prev {
    left: 4px;
  }
  .hot-star-swiper .swiper-button-next {
    right: 4px;
  }
}