/* 通用表格基础样式：1/2/3 行表头 + 横/竖斑马纹 */
.table-header-1row-zebra-horizontal table,
.table-header-1row-zebra-vertical table,
.table-header-2row-zebra-horizontal table,
.table-header-2row-zebra-vertical table,
.table-header-3row-zebra-horizontal table,
.table-header-3row-zebra-vertical table {
  border-collapse: collapse;
  width: 100%;
  table-layout: auto;
  border: 1px solid #ffffff;
  background-color: #fff;
  font-size: 18px;
  line-height: 1.2;
}


.table-header-1row-zebra-vertical table th,
.table-header-1row-zebra-vertical table td,
.table-header-2row-zebra-vertical table th,
.table-header-2row-zebra-vertical table td,
.table-header-3row-zebra-vertical table th,
.table-header-3row-zebra-vertical table td {
  border: 1px solid #ffffff;
  border-bottom: 1px solid #EDEBEB;
  text-align: center;
  vertical-align: middle;
  padding: 6px 8px;
  color: #1f2937;
  white-space: nowrap;
}

.table-header-1row-zebra-vertical table tr th:first-child,
.table-header-1row-zebra-vertical table tr td:first-child,
.table-header-2row-zebra-vertical table tr th:first-child,
.table-header-2row-zebra-vertical table tr td:first-child,
.table-header-3row-zebra-vertical table tr th:first-child,
.table-header-3row-zebra-vertical table tr td:first-child {
  border-left: 1px solid #EDEBEB;
}

.table-header-1row-zebra-vertical table tr th:last-child,
.table-header-1row-zebra-vertical table tr td:last-child,
.table-header-2row-zebra-vertical table tr th:last-child,
.table-header-2row-zebra-vertical table tr td:last-child,
.table-header-3row-zebra-vertical table tr th:last-child,
.table-header-3row-zebra-vertical table tr td:last-child {
  border-right: 1px solid #EDEBEB;
}

.table-header-1row-zebra-horizontal table th,
.table-header-1row-zebra-horizontal table td,
.table-header-2row-zebra-horizontal table th,
.table-header-2row-zebra-horizontal table td,
.table-header-3row-zebra-horizontal table th,
.table-header-3row-zebra-horizontal table td {
  border: 1px solid transparent;
  border-left: 1px solid #EDEBEB;
  border-right: 1px solid #EDEBEB;
  text-align: center;
  vertical-align: middle;
  padding: 6px 8px;
  color: #1f2937;
  white-space: nowrap;
}

.table-header-1row-zebra-horizontal table tr:last-child th,
.table-header-1row-zebra-horizontal table tr:last-child td,
.table-header-2row-zebra-horizontal table tr:last-child th,
.table-header-2row-zebra-horizontal table tr:last-child td,
.table-header-3row-zebra-horizontal table tr:last-child th,
.table-header-3row-zebra-horizontal table tr:last-child td {
  border-bottom: 1px solid #EDEBEB;
}

/* 第 1 行表头 */
.table-header-1row-zebra-horizontal table tbody tr:first-child,
.table-header-1row-zebra-vertical table tbody tr:first-child {
  background-color: #0b5ea8;
  color: #fff;
  font-weight: 500;
}

.table-header-1row-zebra-horizontal table tbody tr:first-child td,
.table-header-1row-zebra-horizontal table tbody tr:first-child th,
.table-header-1row-zebra-vertical table tbody tr:first-child td,
.table-header-1row-zebra-vertical table tbody tr:first-child th {
  border-color: #8fb0cf;
  color: #fff;
}

/* 前 2 行表头 */
.table-header-2row-zebra-horizontal table tbody tr:nth-child(-n+2),
.table-header-2row-zebra-vertical table tbody tr:nth-child(-n+2) {
  background-color: #0b5ea8;
  color: #fff;
  font-weight: 500;
}

.table-header-2row-zebra-horizontal table tbody tr:nth-child(-n+2) td,
.table-header-2row-zebra-horizontal table tbody tr:nth-child(-n+2) th,
.table-header-2row-zebra-vertical table tbody tr:nth-child(-n+2) td,
.table-header-2row-zebra-vertical table tbody tr:nth-child(-n+2) th {
  border-color: #8fb0cf;
  color: #fff;
}

/* 前 3 行表头 */
.table-header-3row-zebra-horizontal table tbody tr:nth-child(-n+3),
.table-header-3row-zebra-vertical table tbody tr:nth-child(-n+3) {
  background-color: #0b5ea8;
  color: #fff;
  font-weight: 500;
}

.table-header-3row-zebra-horizontal table tbody tr:nth-child(-n+3) td,
.table-header-3row-zebra-horizontal table tbody tr:nth-child(-n+3) th,
.table-header-3row-zebra-vertical table tbody tr:nth-child(-n+3) td,
.table-header-3row-zebra-vertical table tbody tr:nth-child(-n+3) th {
  border-color: #8fb0cf;
  color: #fff;
}

/* 竖向（按列）斑马纹：由 JS 添加 col-stripe-* */
.table-header-1row-zebra-vertical table tbody td.col-stripe-odd,
.table-header-2row-zebra-vertical table tbody td.col-stripe-odd,
.table-header-3row-zebra-vertical table tbody td.col-stripe-odd {
  background-color: #ffffff;
}

.table-header-1row-zebra-vertical table tbody td.col-stripe-even,
.table-header-2row-zebra-vertical table tbody td.col-stripe-even,
.table-header-3row-zebra-vertical table tbody td.col-stripe-even {
  background-color: #f3f4f6;
}

/* 横向（按行）斑马纹：由 JS 添加 row-stripe-* */
.table-header-1row-zebra-horizontal table tbody td.row-stripe-odd,
.table-header-2row-zebra-horizontal table tbody td.row-stripe-odd,
.table-header-3row-zebra-horizontal table tbody td.row-stripe-odd {
  background-color: #ffffff;
}

.table-header-1row-zebra-horizontal table tbody td.row-stripe-even,
.table-header-2row-zebra-horizontal table tbody td.row-stripe-even,
.table-header-3row-zebra-horizontal table tbody td.row-stripe-even {
  background-color: #f3f4f6;
}

/* 为表格添加左右滑动样式 */
.table-header-1row-zebra-horizontal .elementor-widget-container,
.table-header-1row-zebra-vertical .elementor-widget-container,
.table-header-2row-zebra-horizontal .elementor-widget-container,
.table-header-2row-zebra-vertical .elementor-widget-container,
.table-header-3row-zebra-horizontal .elementor-widget-container,
.table-header-3row-zebra-vertical .elementor-widget-container {
  overflow-x: auto;
}


/* 极简细线条 - 适合现代 UI */
.wp-block-table::-webkit-scrollbar, .elementor-widget-container::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.wp-block-table::-webkit-scrollbar-track , .elementor-widget-container::-webkit-scrollbar-track {
  background: transparent;
}

.wp-block-table::-webkit-scrollbar-thumb, .elementor-widget-container::-webkit-scrollbar-thumb  {
  background: #e0e0e0;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.wp-block-table::-webkit-scrollbar-thumb:hover, .elementor-widget-container::-webkit-scrollbar-thumb:hover  {
  background: #bdbdbd;
}

/* Firefox 支持 */
.wp-block-table, .elementor-widget-container  {
  scrollbar-width: thin;
  scrollbar-color: #e0e0e0 transparent;
}