/* star-detail.css */
.star-detail {
  background-color: #lalala;
  color: #fff;
  padding: 30px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头像容器 */
.avatar-container {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #00bfff;
  box-shadow: 0 0 20px rgba(0, 187, 255, 0.4);
  transition: transform 0.3s ease;
}

.avatar-container:hover {
  transform: scale(1.05);
}

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

/* 顶部信息区 */
.header-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  justify-content: space-between;
  font-size: 0.9rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ccc;
}

.info-item svg {
  width: 14px;
  height: 14px;
  fill: #00bfff;
}

/* 点赞按钮 - 修复：固定宽度，避免撑高 */
.like-btn {
  background: #ff6b00;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  width: 120px; /* 固定宽度，防止拉伸 */
  transition: all 0.3s ease;
}

.like-btn:hover {
  background: #e55a00;
  transform: translateY(-1px);
}

/* 标签切换 - 关键修复：移动端保持横向 */
.tabs {
  display: flex;
  border-bottom: 2px solid #2d2d2d;
  margin-top: 20px;
  overflow-x: auto; /* 防止内容溢出 */
  -webkit-overflow-scrolling: touch; /* iOS 滚动支持 */
}

.tab {
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 600;
  color: #aaa;
  transition: all 0.3s ease;
  white-space: nowrap; /* 防止文字换行 */
}

.tab.active {
  color: #00bfff;
  border-bottom: 2px solid #00bfff;
}

/* 内容区域 */
.content {
  padding: 20px 0;
  display: none;
}

.content.active {
  display: block;
}

/* 个人资料内容 */
.bio-content {
  line-height: 1.8;
  color: #ddd;
  font-size: 1rem;
}

/* 参演影视列表 */
.film-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
}

.film-item {
  background: rgba(20, 20, 20, 0.7);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.film-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.film-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.film-item .title {
  padding: 8px 10px;
  text-align: center;
  font-size: 0.85rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 相关资讯 */
.news-list {
  list-style: none;
  padding: 0;
}

.news-item {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #2d2d2d;
}

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

.news-item h4 {
  margin: 0 0 8px;
  color: #00bfff;
  font-size: 1rem;
}

.news-item p {
  margin: 0;
  color: #ccc;
  font-size: 0.9rem;
}

/* 响应式：移动端标签保持横向 */
@media (max-width: 768px) {
  .avatar-container {
    width: 140px;
    height: 140px;
  }

  .header-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .info-item {
    font-size: 0.85rem;
  }

  .like-btn {
    width: 100px;
    font-size: 0.85rem;
  }

  /* 关键修复：移动端标签仍保持水平排列 */
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 10px;
  }

  .tab {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
}

.icon-sm {
  width: 16px;
  height: 16px;
  vertical-align: -0.25em; /* 微调垂直对齐 */
}