/* 整体容器 */
.rpc-siblings {
  margin: 2em 0;
}

/* 标题 */
.rpc-siblings h3 {
  margin-bottom: 0.5em;
  font-size: 1.2em;
}

/* 横向滚动列表 */
.rpc-siblings-list {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0;
  margin: 0;
  list-style: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* 每个分类卡片 */
.rpc-sibling-item {
  flex: 0 0 auto;
  display: flex;            /* 横向布局 */
  align-items: center;      /* 垂直居中 */
  width: 200px;             /* 可根据需求调整宽度 */
  margin-right: 1em;
  padding: 0.5em 1em;
  background: #fff;         /* 白色背景 */
  border-radius: 8px;       /* 圆角 */
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  scroll-snap-align: start;
  box-sizing: border-box;
}

/* “全部”按钮 */
.rpc-sibling-item.all {
  width: auto;
  background: #000;
  box-shadow: none;
}
.rpc-sibling-item.all a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  padding: 0.5em 1em;
  font-size: 0.95em;
}
.rpc-sibling-item.all a:hover {
  background: #333;
}

/* 分类图标 */
.rpc-sibling-item img,
.rpc-sibling-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

/* 占位图标 */
.rpc-sibling-placeholder {
  background: #eee;
}

/* 分类名称 */
.rpc-sibling-name {
  margin-left: 0.75em;
  font-size: 1em;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 高亮当前分类 */
.rpc-sibling-item.current {
  border: 2px solid #000;
}

/* 隐藏滚动条 */
.rpc-siblings-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.rpc-siblings-list {
  -ms-overflow-style: none;  /* IE 和 Edge */
  scrollbar-width: none;     /* Firefox */
}
