.scroll-hint {
  display: none;
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 8px;
}

.table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}

/* 行业数据表使用接近Excel的浅灰直角表头。 */
.page-industry .table-wrap {
  border-radius: 0;
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
}

.page-industry .data-table thead th {
  color: #fff;
  background: #173f63;
  border-right: 1px solid #2f5878;
  border-radius: 0;
  text-align: center;
  position: static;
  top: auto;
  z-index: auto;
}

.page-industry .data-table th:last-child {
  border-right: 0;
}

/* 三级页的说明卡与数据表使用相同的内容宽度。 */
.page-industry .prose {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.official-industry-table {
  min-width: 0;
  table-layout: fixed;
}

.weighted-industry-table {
  min-width: 0;
  table-layout: fixed;
}

.constituent-momentum-table {
  min-width: 0;
  table-layout: fixed;
}

.official-industry-table th,
.weighted-industry-table th {
  padding: 7px 3px;
  white-space: normal;
  line-height: 1.2;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.official-industry-table td,
.weighted-industry-table td {
  padding: 7px 3px;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.constituent-momentum-table th {
  padding: 7px 3px;
  white-space: normal;
  line-height: 1.2;
  font-size: 10.5px;
  overflow-wrap: anywhere;
}

.constituent-momentum-table td {
  padding: 7px 3px;
  font-size: 10.5px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.constituent-momentum-table td:nth-child(2),
.constituent-momentum-table td:nth-child(3) {
  text-align: left;
}

.constituent-momentum-table td:nth-child(n+4) {
  text-align: right;
}

.constituent-momentum-table td:nth-child(1) {
  text-align: center;
}

.constituent-momentum-table th:nth-child(1) { width: 3%; }
.constituent-momentum-table th:nth-child(2) { width: 5%; }
.constituent-momentum-table th:nth-child(3) { width: 5.5%; }
.constituent-momentum-table th:nth-child(4) { width: 4.5%; }
.constituent-momentum-table th:nth-child(5) { width: 3.8%; }
.constituent-momentum-table th:nth-child(6),
.constituent-momentum-table th:nth-child(7),
.constituent-momentum-table th:nth-child(8),
.constituent-momentum-table th:nth-child(9) { width: 3.6%; }
.constituent-momentum-table th:nth-child(10),
.constituent-momentum-table th:nth-child(11),
.constituent-momentum-table th:nth-child(12),
.constituent-momentum-table th:nth-child(13) { width: 4.1%; }
.constituent-momentum-table th:nth-child(14) { width: 6.5%; }
.constituent-momentum-table th:nth-child(15) { width: 5.2%; }
.constituent-momentum-table th:nth-child(16) { width: 5.8%; }
.constituent-momentum-table th:nth-child(17) { width: 4.5%; }
.constituent-momentum-table th:nth-child(18) { width: 5%; }
.constituent-momentum-table th:nth-child(19) { width: 4.5%; }
.constituent-momentum-table th:nth-child(20) { width: 4.5%; }

.constituent-section .source-note {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.55;
  color: #73808c;
}

/* 官方指数表：短数值字段尽量窄，名称与日期字段保留更多空间。 */
.official-industry-table th:nth-child(1) { width: 9%; }
.official-industry-table th:nth-child(2) { width: 7%; }
.official-industry-table th:nth-child(3) { width: 10%; }
.official-industry-table th:nth-child(4) { width: 3%; }
.official-industry-table th:nth-child(5) { width: 8%; }
.official-industry-table th:nth-child(6) { width: 5%; }
.official-industry-table th:nth-child(7),
.official-industry-table th:nth-child(8),
.official-industry-table th:nth-child(9) { width: 5%; }
.official-industry-table th:nth-child(10) { width: 5%; }
.official-industry-table th:nth-child(11),
.official-industry-table th:nth-child(12),
.official-industry-table th:nth-child(13),
.official-industry-table th:nth-child(14) { width: 6.25%; }
.official-industry-table th:nth-child(15) { width: 6%; }
.official-industry-table th:nth-child(16) { width: 7%; }

/* 加权表额外包含覆盖率和权重字段，继续压缩短数字列。 */
.weighted-industry-table th:nth-child(1) { width: 8%; }
.weighted-industry-table th:nth-child(2) { width: 6.5%; }
.weighted-industry-table th:nth-child(3) { width: 9%; }
.weighted-industry-table th:nth-child(4) { width: 3.5%; }
.weighted-industry-table th:nth-child(5) { width: 3.8%; }
.weighted-industry-table th:nth-child(6) { width: 7%; }
.weighted-industry-table th:nth-child(7) { width: 5%; }
.weighted-industry-table th:nth-child(8),
.weighted-industry-table th:nth-child(9),
.weighted-industry-table th:nth-child(10),
.weighted-industry-table th:nth-child(11) { width: 4.5%; }
.weighted-industry-table th:nth-child(12),
.weighted-industry-table th:nth-child(13),
.weighted-industry-table th:nth-child(14),
.weighted-industry-table th:nth-child(15) { width: 5.5%; }
.weighted-industry-table th:nth-child(16) { width: 5.5%; }
.weighted-industry-table th:nth-child(17),
.weighted-industry-table th:nth-child(18) { width: 5.85%; }

.official-industry-table td:nth-child(-n+3),
.weighted-industry-table td:nth-child(-n+3) {
  text-align: left;
}

@media (max-width: 980px) {
  .scroll-hint {
    display: block;
  }

  .official-industry-table {
    min-width: 1320px;
    table-layout: auto;
  }

  .weighted-industry-table {
    min-width: 1480px;
    table-layout: auto;
  }

  .constituent-momentum-table {
    min-width: 1540px;
    table-layout: auto;
  }

  .official-industry-table th,
  .official-industry-table td,
  .weighted-industry-table th,
  .weighted-industry-table td {
    padding: 9px 7px;
    font-size: 12px;
    white-space: nowrap;
  }


  .constituent-momentum-table th,
  .constituent-momentum-table td {
    padding: 9px 7px;
    font-size: 12px;
    white-space: nowrap;
  }
}
