.yibo_product_matrix {
  background: var(--bg-color);
  overflow: hidden;
  padding: var(--component-gap) 0;
}

.yibo_product_matrix-head {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: var(--text-gap-md);
  text-align: center;
}

.yibo_product_matrix-title {
  color: var(--title-text-color);
  font-family: var(--title-font-family);
  font-size: var(--title-size);
  font-weight: 500;
  line-height: 1;
  margin: 0;
}

.yibo_product_matrix-subtitle {
  color: #161413;
  font-family: var(--font-family);
  font-size: var(--text-size-md);
  font-weight: 400;
  line-height: 1.4118;
  margin: 0;
}

.yibo_product_matrix-table-wrap {
  margin-top: calc(var(--text-gap-xl) * 2);
  font-family: var(--title-font-family);
}

.yibo_product_matrix-table.rich-text {
  color: var(--title-text-color);
}

.yibo_product_matrix-table.rich-text .rich-table {
  overflow-x: auto;
}

/* 自定义滚动条粗细 */
.yibo_product_matrix-table.rich-text .rich-table::-webkit-scrollbar {
  height: 6px;
  /* 横向滚动条高度 */
  width: 6px;
}

/* 轨道背景 */
.yibo_product_matrix-table.rich-text .rich-table::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

/* 滑块样式 */
.yibo_product_matrix-table.rich-text .rich-table::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

/* 鼠标悬停滑块变颜色 (如 #B55100) */
.yibo_product_matrix-table.rich-text .rich-table::-webkit-scrollbar-thumb:hover {
  background: #B55100;
}

/* Firefox 兼容 */
.yibo_product_matrix-table.rich-text .rich-table {
  scrollbar-width: thin;
  scrollbar-color: #ccc #f1f1f1;
}



.yibo_product_matrix-table.rich-text table {
  border: 1px solid rgba(160, 157, 157, 0.4);
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 100%;
}

.yibo_product_matrix-table.rich-text table p {
  margin: 0;
}


.yibo_product_matrix-table.rich-text th,
.yibo_product_matrix-table.rich-text td {
  border: 1px solid rgba(160, 157, 157, 0.4);
  color: inherit;
  padding: var(--text-gap-md);
  text-align: center;
  vertical-align: middle;
  width: auto;
  font-size: var(--text-size-md);
  font-weight: 400;
  line-height: 1.25;
  color: var(--title-text-color);
}

.yibo_product_matrix-table.rich-text :is(th, td) p{
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  margin: 0;
  font-family: inherit;
}

.yibo_product_matrix-table.rich-text thead th,
.yibo_product_matrix-table.rich-text tbody tr:first-child td,
.yibo_product_matrix-table.rich-text tbody tr:first-child td :is(p, strong,b) {
  font-weight: 500;
  background: var(--color-primary);
  color: #FFFAF4;
  white-space: nowrap;
  font-family: var(--title-font-family);
}


.yibo_product_matrix-table.rich-text tbody tr:not(:first-child) td:first-child :is(p, strong,b) {
  font-weight: 500;
  background: transparent;
  text-align: left;
  white-space: nowrap;
  color: var(--title-text-color);
  font-size: var(--text-size);
  font-family: var(--title-font-family);
}

.yibo_product_matrix-table.rich-text tbody tr:not(:first-child) td:first-child {
  background: rgba(255, 250, 244, 0.6);
}


.yibo_product_matrix-table.rich-text p {
  color: #A09D9D;
  font-weight: 400;
  font-size: var(--text-size-sm);
  line-height: 1.71;
  font-style: normal;
  margin: var(--text-gap-md) 0 0;
}