/* ===== 页面容器 ===== */
.container {
  max-width: 90rem;
  margin: 0 auto;
  padding: 1.25rem;
  font-family: Arial, sans-serif;
}

/* ===== 页面标题 ===== */
.title {
  text-align: center;
  margin-bottom: 1.875rem;
  font-size: 1.75rem;
}

/* ===== 表单区域 ===== */
.search-form {
  margin: 0 auto 1.25rem;
  max-width: 60rem; 
  justify-content: center;
  align-items: center

}

.form-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  margin-bottom: 0.9375rem;
}

.form-row label {
  width: 7.5rem;
  font-weight: bold;
  text-align: right;
}

.form-row input,
.form-row select {
  flex: 1;
  padding: 0.375rem;
  min-width: 11.25rem;
}

.dropdown-field {
  position: relative;
  display: inline-block;
}
.dropdown-btn {
  background-color: #3498db;
  color: white;
  padding: 0.375rem 0.75rem;
  border: none;
  border-radius: 0.25rem 0 0 0.25rem;
  cursor: pointer;
}
.dropdown-menu {
  display: none;
  position: absolute;
  background-color: white;
  border: 1px solid #ccc;
  z-index: 1000;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 150px;
}
.dropdown-menu li {
  padding: 0.5rem;
  cursor: pointer;
}
.dropdown-menu li:hover {
  background-color: #f0f0f0;
}
.advanced-toggle {
  margin-left: auto;
  background: none;
  border: none;
  color: #3498db;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
}

.search-button {
  margin: 0 auto;
  padding: 0.625rem 1.5625rem;
  font-size: 1rem;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.3s;
  user-select: none;
}

.search-button:hover {
  background: linear-gradient(135deg, #2980b9, #1f618d);
}

.advanced-panel {
  border: 1px solid #ccc;
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: #f9f9f9;
  margin-top: 1rem;
}
/* ===== 结果表格样式 ===== */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: 0.9375rem;
  margin-top: 0.9375rem;
}

.styled-table {
  width: 100%;
  min-width: 37.5rem;
  border-collapse: collapse;
  margin-top: 1rem;
  table-layout: fixed;
}

.styled-table thead {
  background-color: #3a6b9c;
  color: white;
  font-size: 1.125rem;
}

.styled-table thead th {
  padding: 0.75rem;
  text-align: left;
  vertical-align: middle;
  border: 1px solid #ccc;
}

.row-white {
  background-color: white;
}

.row-gray {
  background-color: #e6e6e6;
}

.styled-table tbody td {
  padding: 0.75rem;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  overflow-x: auto;
  font-size: 0.9375rem;
  border: 1px solid #ccc;
}

input[type="checkbox"] {
  width: 0.75rem;
  height: 0.75rem;
  cursor: pointer;
}

.word-link {
  text-decoration: none;
  font-weight: normal;
  color: #000;
  transition: font-weight 0.2s ease;
}

.word-link:hover {
  font-weight: bold;
}

.source-seq-link {
  text-decoration: none;
  font-weight: normal;
  color: #000;
  transition: font-weight 0.2s ease;
}

.source-seq-link:hover{
  font-weight: bold;
}
.source-seq-link + .source-seq-link {
  margin-left: 0.125rem;
}
/* ===== 表格列宽比例 ===== */
.styled-table th:first-child,
.styled-table td:first-child {
  width: 2%;
}

.styled-table th:nth-child(2),
.styled-table td:nth-child(2) {
  width: 9%;
}

.styled-table th:nth-child(3),
.styled-table td:nth-child(3) {
  width: 9%;
}

.styled-table th:nth-child(4),
.styled-table td:nth-child(4) {
  width: 16%;
}

.styled-table th:nth-child(5),
.styled-table td:nth-child(5) {
  width: 22%;
}

.styled-table th:nth-child(6),
.styled-table td:nth-child(6) {
  width: 14%;
}
.styled-table th:nth-child(7),
.styled-table td:nth-child(7) {
  width: 14%;
}

.styled-table th:nth-child(8),
.styled-table td:nth-child(8) {
  width: 14%;
}

.scroll-cell {
  overflow-x: auto;
  white-space: nowrap;
}

.sort-icon {
  margin-left: 0.3125rem;
  text-decoration: none;
  color: #999;
  font-size: 0.75rem;
  vertical-align: middle;
  transition: color 0.2s ease;
}

.sort-icon:hover {
  color: #333;
}

.sort-icon.active {
  color: #000;
  font-weight: bold;
}

.export-btn {
  text-align: left;
}

.btn-export {
  margin-top: 0.75rem;
  padding: 0.625rem 1.5625rem;
  font-size: 1rem;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.3s;
  user-select: none;
}

.btn-export:hover {
  background: linear-gradient(135deg, #2980b9, #1f618d);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  padding: 0.375rem 0.75rem;
  text-decoration: none;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
}

.pagination .disabled {
  background-color: #f1f1f1;
  color: #999;
}

mark {
  font-weight: bold;
  background-color: inherit;
  color: inherit;
}




