/* 角色页面整体容器 */
.character-wrap {
  display: flex;
  gap: 30px;
  margin-top: 20px;
  position: relative;
  height: calc(100vh - 92px);
  overflow: hidden;
}

/* 左侧独立滚动导航 */
.character-left-nav {
  min-width: 180px;
  align-self: flex-start;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
}

/* 细窄美化滚动条 */
.character-left-nav::-webkit-scrollbar {
  width: 4px;
}

.character-left-nav::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.character-left-nav::-webkit-scrollbar-thumb {
  background: rgba(130, 90, 240, 0.35);
  border-radius: 10px;
}

.character-left-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(130, 90, 240, 0.55);
}

.character-left-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.character-nav-item {
  padding: 12px 16px;
  border-radius: 6px;
  cursor: pointer;
  color: #b8b8d0;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.character-nav-item:hover {
  background: rgba(130, 90, 240, 0.18);
  color: #e0d0ff;
}

.character-nav-item.active {
  background: linear-gradient(135deg, rgba(110, 70, 220, 0.22), rgba(60, 160, 255, 0.12));
  border: 1px solid rgba(140, 100, 255, 0.4);
  color: #d8c8ff;
  box-shadow: 0 0 8px rgba(120, 80, 240, 0.2);
}

/* 右侧内容容器 */
.character-content-box {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.character-content-box::-webkit-scrollbar {
  width: 4px;
}

.character-content-box::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.character-content-box::-webkit-scrollbar-thumb {
  background: rgba(130, 90, 240, 0.35);
  border-radius: 10px;
}

.character-content-box::-webkit-scrollbar-thumb:hover {
  background: rgba(130, 90, 240, 0.55);
}

.character-content-block {
  display: none;
}

.character-content-block.show {
  display: block;
  max-width: 70%;
  margin: 0 auto;
}

/* 标题文字全局统一 */
.character-content-block h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: rgb(200, 150, 150);
  text-align: center;
  margin: 12px;
}

.character-content-block h4 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #fff;
  margin: 12px;
}

.character-content-block p {
  font-size: 18px;
  line-height: 1.7;
  margin: 0 auto;
  color: #b8b8d0;
  text-indent: 2em;
}

/* 角色推荐顶部Tab导航 */
.recommend-tab-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  justify-content: center;
}

.recommend-tab-item {
  padding: 10px 22px;
  border-radius: 6px;
  cursor: pointer;
  color: #b8b8d0;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  font-size: 17px;
}

.recommend-tab-item:hover {
  background: rgba(130, 90, 240, 0.18);
  color: #e0d0ff;
}

.recommend-tab-item.active {
  background: linear-gradient(135deg, rgba(110, 70, 220, 0.22), rgba(60, 160, 255, 0.12));
  border: 1px solid rgba(140, 100, 255, 0.4);
  color: #d8c8ff;
  box-shadow: 0 0 8px rgba(120, 80, 240, 0.2);
}

.recommend-tab-content {
  display: none;
}

.recommend-tab-content.show {
  display: block;
}

/* 榜单图片容器样式 */
.tier-desc {
  font-size: 16px;
  color: #b8b8d0;
  margin: 6px 0 24px;
  line-height: 1.7;
}

.tier-img-box {
  width: 100%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  text-align: center;
}

.rank-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid rgba(140, 100, 255, 0.2);
  object-fit: contain;
}

/* 移动端自适应 */
@media screen and (max-width:768px) {
  .character-wrap {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  .character-left-nav {
    height: auto;
    overflow: visible;
  }

  .character-left-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .character-content-box {
    height: auto;
    overflow: visible;
  }

  .recommend-tab-bar {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}