/*历年分数和招生计划*/
.recruit-app {
  padding: 0 0 18px;
}

.recruit-breadcrumb {
  height: 70px;
  border-bottom: 1px solid #efefef;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: #707070;
  font-size: 13px;
}

.recruit-breadcrumb a {
  text-decoration: none;
  padding: 0 4px;
}

.recruit-breadcrumb a:hover {
  background: var(--xpu-orange);
  color: #fff;
  border-radius: 4px;
}

.recruit-breadcrumb .current {
  color: var(--xpu-orange);
}

.mode-switch {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--xpu-orange);
  text-decoration: none;
  font-size: 12px;
}

.mode-switch svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.filter-wrap {
  display: grid;
  gap: 10px;
}

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.filter-label {
  flex-shrink: 0;
  color: #595959;
  min-width: 46px;
  line-height: 28px;
  font-size: 16px;
  font-weight: 600;
}

.filter-options {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: none;
  background: transparent;
  color: #4f4f4f;
  min-width: 60px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  padding: 0 8px;
}

.chip:hover {
  color: var(--xpu-orange);
}

.chip.active {
  background: var(--xpu-orange);
  color: #fff;
}

.table-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 22px 0 10px;
}

.table-title {
  color: var(--xpu-orange);
  font-size: 32px;
  font-weight: 600;
  margin: 0;
  flex-shrink: 0;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid #d9d9d9;
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  flex: 0 1 300px;
  padding: 0 8px;
  gap: 4px;
}

.search-input {
  flex: 1;
  border: none;
  padding: 8px;
  font-size: 16px;
  outline: none;
  min-width: 0;
}

.search-clear-btn {
  border: none;
  background: transparent;
  color: #999;
  width: 28px;
  cursor: pointer;
  font-size: 16px;
}

.tips {
  display: none;
  font-size: 10px;
  padding-left: 10px;
  margin: -8px 0 6px;
  color: #888;
}

.table-card {
  background: #fff;
}

.state-text {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: #888;
}

.state-error {
  color: #d23f31;
}

.retry-btn {
  border: 1px solid var(--xpu-orange);
  color: var(--xpu-orange);
  background: transparent;
  height: 34px;
  padding: 0 16px;
  border-radius: 4px;
  cursor: pointer;
}

.table-scroll-wrap {
  position: relative;
}

.table-scroll {
  overflow-x: auto;
}

.recruit-table {
  width: 100%;
  min-width: 1000px;
  border-collapse: collapse;
  table-layout: auto;
}

.recruit-table th,
.recruit-table td {
  border: 1px solid rgba(255, 96, 2, 0.5);
  text-align: left;
  padding: 10px 8px;
  font-size: 16px;
  line-height: 1.35;
  white-space: nowrap;
}

.recruit-table th {
  background: var(--xpu-orange);
  color: #fff;
  font-weight: 600;
}

.recruit-table th:not(.sticky-col),
.recruit-table td:not(.sticky-col) {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.sortable-th {
  cursor: pointer;
  user-select: none;
}

.sortable-th:hover {
  background: var(--xpu-orange);
}

.th-content {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sort-arrows {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.sort-arrows i {
  font-style: normal;
  font-size: 9px;
  line-height: 1;
  opacity: 0.35;
  display: block;
}

.sort-arrows i.active {
  opacity: 1;
}

.recruit-table .sticky-col {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 110px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recruit-table td.sticky-col {
  background: #fff;
  z-index: 2;
}

.major-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  color: var(--xpu-orange);
  text-decoration: none;
}

.major-link:hover {
  opacity: 0.82;
}

.major-link-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.major-link-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.major-name-text {
  color: #2f2f2f;
}

.sticky-shadow {
  display: none;
}

@media (max-width: 768px) {
  .content-panel {
    padding: 0;
  }

  .tips {
    /* display: block; */
    display: none;
  }

  .table-scroll-wrap {
    --mobile-major-width: 120px;
  }

  .filter-wrap {
    padding-left: 8px;
  }

  .filter-row {
    gap: 6px;
  }

  .filter-options {
    gap: 6px;
  }

  .filter-label {
    min-width: 40px;
    line-height: 26px;
    font-size: 14px;
  }

  .chip {
    height: 26px;
    min-width: 50px;
    padding: 0 4px;
    font-size: 13px;
    border: 1px solid #ececec;
  }

  .chip:not(.active) {
    background: #f7f7f7;
    color: #7f7f7f;
  }

  .table-header-row {
    align-items: stretch;
    margin: 16px 8px 8px;
    gap: 10px;
  }

  .table-title {
    font-size: 24px;
  }

  .search-box {
    flex: 0 1 150px;
  }

  .recruit-table {
    min-width: 0;
    width: max-content;
    table-layout: fixed;
  }

  .recruit-table th,
  .recruit-table td {
    font-size: 13px;
    padding: 8px 4px;
  }

  .major-link-icon {
    width: 15px;
    height: 15px;
  }

  .recruit-table .sticky-col,
  .recruit-table .col-major {
    width: var(--mobile-major-width) !important;
    min-width: var(--mobile-major-width) !important;
    max-width: var(--mobile-major-width) !important;
  }

  .recruit-table th.sticky-col,
  .recruit-table td.sticky-col {
    box-shadow: 4px 0 8px -6px rgba(0, 0, 0, 0.22);
  }

  .sticky-shadow {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--mobile-major-width);
    width: 8px;
    pointer-events: none;
    z-index: 20;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0));
  }
}