.gaokao-page {
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: 1680px;
  padding-left: 24px;
  padding-right: 24px;
  margin: 0 auto;
  justify-items: stretch;
  box-sizing: border-box;
  min-width: 0;
}

.gaokao-banner {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  height: 360px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  background: #0f172a;
  box-sizing: border-box;
}

.gaokao-banner .swiper-container,
.gaokao-banner .swiper-wrapper,
.gaokao-banner .swiper-slide {
  height: 360px;
}

.gaokao-banner .home-banner {
  display: block;
  width: 100%;
  height: 360px;
  background-size: cover;
  background-position: center;
}

.gaokao-banner-pagination {
  text-align: center;
  padding: 10px 0 14px;
}

.gaokao-page-title {
  text-align: center;
  color: #0f2a5f;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 10px 0 6px;
}

.gaokao-header {
  align-items: center;
  justify-content: flex-end;
}

body.aqh-page {
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.aqh-page .gaokao-page {
  width: 100%;
  max-width: 1680px;
}

#gaokaoFilterPage,
#wishPage {
  margin-left: auto;
  margin-right: auto;
}

.gaokao-filter-card {
  position: relative;
}

.gaokao-filter-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.gaokao-filter-grid {
  display: grid;
  grid-template-columns: minmax(640px, 1.35fr) minmax(520px, 1fr);
  gap: 0;
  align-items: start;
}

.gaokao-filter-left,
.gaokao-filter-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gaokao-filter-right {
  gap: 24px;
  border-left: 1px solid #e6ecf5;
  padding-left: 24px;
}

.gaokao-filter-left {
  padding-right: 24px;
}

.gaokao-geo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 28px;
  align-items: start;
}

.gaokao-geo-side .gaokao-filter-label {
  padding-top: 0;
}

.gaokao-geo-side {
  padding-top: 72px;
  padding-left: 28px;
  margin-left: 18px;
  justify-self: center;
}

.gaokao-filter-tags--vertical {
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.gaokao-filter-tags--vertical .gaokao-filter-tag {
  padding: 10px 18px;
}

.gaokao-filter-section {
  background: #ffffff;
  border: 1px solid #e6ecf5;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.gaokao-filter-section .gaokao-section-title,
.gaokao-filter-section .gaokao-geo-title {
  margin-bottom: 10px;
}

.gaokao-section-title {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1px;
  width: fit-content;
}

.gaokao-section-title.is-school {
  background: #239550;
}

.gaokao-section-title.is-major {
  background: #04949C;
}

.gaokao-section-title.is-other {
  background: #3E60A0;
}

.gaokao-section-label {
  color: #2a2f3a;
  font-weight: 600;
}

.gaokao-section-label--school {
  color: #239550;
}

.gaokao-section-label--major {
  color: #04949C;
}

.gaokao-section-label--other {
  color: #3E60A0;
}

.gaokao-geo-title {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 6px;
  background: #084279;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1px;
  width: fit-content;
}

.gaokao-filter-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 16px;
  align-items: flex-start;
}

.gaokao-filter-right .gaokao-filter-row + .gaokao-filter-row {
  margin-top: 18px;
}

.gaokao-filter-row--province {
  grid-template-columns: 1fr;
  gap: 10px;
}

.gaokao-filter-row--province .gaokao-filter-label {
  padding-top: 0;
}

.gaokao-filter-label {
  font-weight: 600;
  color: #2a2f3a;
  padding-top: 6px;
  min-width: 88px;
}

.gaokao-geo-label {
  color: #084279;
}

.gaokao-geo-side .gaokao-filter-label {
  display: block;
}

.gaokao-geo-side .gaokao-filter-control {
  margin-top: 10px;
}

.gaokao-geo-side .gaokao-filter-tags--vertical {
  gap: 14px;
}

.gaokao-geo-side .gaokao-filter-tags--vertical .gaokao-filter-tag {
  padding: 6px 12px;
  font-size: 12px;
}

.gaokao-filter-control {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gaokao-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gaokao-filter-tag {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #e6e6e6;
  background: #fafafa;
  color: #2a2f3a;
  cursor: pointer;
  font-size: 12px;
}

.gaokao-filter-tag.is-active {
  background: var(--section-active-color, #2d2f33);
  color: #fff;
  border-color: var(--section-active-color, #2d2f33);
}

.gaokao-wish-btn.is-selected {
  background: #0b2c6d;
  color: #fff;
  border: 1px solid #0b2c6d;
}

.gaokao-wish-btn.is-selected:hover {
  opacity: 0.9;
}

.gaokao-filter-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gaokao-filter-inline input {
  border: 1px solid #e0e6f0;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
}

.gaokao-filter-select {
  border: 1px solid #e0e6f0;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 14px;
  background: #fff;
}

.gaokao-filter-hint {
  font-size: 12px;
  color: #6c7078;
}

.gaokao-filter-split {
  color: #6c7078;
}

.gaokao-result-card {
  padding-bottom: 8px;
  width: 100%;
}

.gaokao-filter-card {
  width: 100%;
}

.gaokao-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.gaokao-result-header,
.gaokao-result-item {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(320px, 1.5fr) minmax(520px, 2fr) 120px;
  gap: 16px;
  padding: 12px 16px;
  box-sizing: border-box;
  align-items: stretch;
}

.gaokao-result-header {
  position: relative;
  z-index: 6;
  border-top: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
  background: #fafafa;
  font-size: 16px;
  color: #2a2f3a;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.gaokao-result-header.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  transform: none;
  width: auto;
  z-index: 30;
}

.gaokao-result-header-placeholder {
  height: 0;
}

.gaokao-result-head,
.gaokao-result-block {
  min-width: 0;
  box-sizing: border-box;
}

.gaokao-result-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  text-align: left;
}

.gaokao-result-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-bottom: 1px solid #e6e6e6;
}

.gaokao-result-item {
  border-top: 1px solid #e6e6e6;
  background: #fff;
}

.gaokao-result-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.gaokao-result-title {
  font-weight: 600;
  color: #2a2f3a;
  line-height: 20px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.gaokao-result-sub {
  font-size: 13px;
  color: #6c7078;
  line-height: 18px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.gaokao-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gaokao-history-heads,
.gaokao-history-grid {
  --gaokao-history-label-width: 90px;
  display: grid;
  grid-template-columns: var(--gaokao-history-label-width) repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.gaokao-history-heads {
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(
    to right,
    #f1f5f9 0,
    #f1f5f9 var(--gaokao-history-label-width),
    #FEF9F7 var(--gaokao-history-label-width),
    #FEF9F7 calc(var(--gaokao-history-label-width) + (100% - var(--gaokao-history-label-width)) / 3),
    #F4FCFE calc(var(--gaokao-history-label-width) + (100% - var(--gaokao-history-label-width)) / 3),
    #F4FCFE calc(var(--gaokao-history-label-width) + (100% - var(--gaokao-history-label-width)) * 2 / 3),
    #F3FCF4 calc(var(--gaokao-history-label-width) + (100% - var(--gaokao-history-label-width)) * 2 / 3),
    #F3FCF4 100%
  );
}

.gaokao-result-header .gaokao-col-history {
  margin-top: -12px;
  margin-bottom: -12px;
  padding-top: 12px;
  padding-bottom: 12px;
  border-radius: 0;
}

.gaokao-history-heads > span {
  padding: 8px 10px;
  text-align: center;
}

.gaokao-history-year {
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 16px !important;
}

.gaokao-history-year.is-active {
  color: #0b2c6d;
}

.gaokao-history-year::after {
  content: "▴▾";
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: #9aa3b2;
  letter-spacing: -3px;
}

.gaokao-history-year.is-asc::after {
  content: "▴";
  font-size: 15px;
  color: #0b2c6d;
  letter-spacing: 0;
}

.gaokao-history-year.is-desc::after {
  content: "▾";
  font-size: 17px;
  color: #0b2c6d;
  letter-spacing: 0;
}

.gaokao-history-grid {
  min-height: 120px;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  font-size: 13px;
  color: #2a2f3a;
  background: transparent;
  grid-auto-rows: 1fr;
  align-content: stretch;
}

.gaokao-history-grid > div {
  padding: 8px 10px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gaokao-history-label {
  color: #6c7078;
  white-space: nowrap;
  background: #f1f5f9;
}

.gaokao-result-block.is-history {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  border-radius: 0;
}

.gaokao-result-block.is-history .gaokao-history-grid {
  flex: 1 1 auto;
}

.gaokao-result-item .gaokao-col-history {
  --gaokao-history-label-width: 90px;
  margin-top: -12px;
  margin-bottom: -12px;
  padding-top: 12px;
  padding-bottom: 12px;
  background: linear-gradient(
    to right,
    #f1f5f9 0,
    #f1f5f9 var(--gaokao-history-label-width, 90px),
    #FEF9F7 var(--gaokao-history-label-width, 90px),
    #FEF9F7 calc(var(--gaokao-history-label-width, 90px) + (100% - var(--gaokao-history-label-width, 90px)) / 3),
    #F4FCFE calc(var(--gaokao-history-label-width, 90px) + (100% - var(--gaokao-history-label-width, 90px)) / 3),
    #F4FCFE calc(var(--gaokao-history-label-width, 90px) + (100% - var(--gaokao-history-label-width, 90px)) * 2 / 3),
    #F3FCF4 calc(var(--gaokao-history-label-width, 90px) + (100% - var(--gaokao-history-label-width, 90px)) * 2 / 3),
    #F3FCF4 100%
  );
}

.gaokao-result-block.is-action {
  align-items: flex-start;
}

.gaokao-result-title {
  font-size: 18px;
}

.gaokao-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  position: relative;
}

.gaokao-table th,
.gaokao-table td {
  white-space: nowrap;
  vertical-align: top;
}

.gaokao-table td:first-child {
  white-space: normal;
}

.gaokao-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #f2f2f2;
  color: #2a2f3a;
  margin-right: 6px;
}

.gaokao-tag.is-highlight {
  background: #fff4e6;
  color: #d36b00;
}

.gaokao-sort-tip {
  font-size: 12px;
  color: #6c7078;
}

.gaokao-cell-title {
  font-weight: 600;
  color: #2a2f3a;
}

.gaokao-table td .gaokao-cell-title {
  white-space: normal;
  line-height: 20px;
  max-height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.gaokao-cell-sub {
  font-size: 12px;
  color: #6c7078;
  margin-top: 6px;
}

.gaokao-cell-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.gaokao-table {
  border-collapse: collapse;
  min-width: 1100px;
  width: 100%;
  table-layout: fixed;
}

#resultTable th:first-child,
#resultTable td:first-child {
  min-width: 210px;
  width: 210px;
}

.gaokao-wish-table {
  min-width: 1400px;
  width: 100%;
}

.gaokao-wish-table td:nth-child(3) .gaokao-cell-title {
  white-space: normal;
  line-height: 20px;
  max-height: 60px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.gaokao-table th {
  background: #f7f7f7;
  font-weight: 600;
  color: #2a2f3a;
  border-bottom: 1px solid #e6e6e6;
}

.gaokao-table td {
  border-bottom: 1px solid #efefef;
}

.gaokao-table tbody tr:hover {
  background: #fafafa;
}

.gaokao-province-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gaokao-province-map {
  display: grid;
  grid-template-columns: minmax(640px, 1.9fr) minmax(260px, 0.6fr);
  gap: 16px;
  align-items: stretch;
}

.gaokao-province-map-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gaokao-province-chart {
  width: 100%;
  height: 560px;
  border-radius: 12px;
  background: #f3f8ff;
}

.gaokao-filter-tag.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.gaokao-province-panel {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gaokao-province-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.gaokao-province-panel-title {
  font-size: 14px;
  font-weight: 600;
  color: #2a2f3a;
}

.gaokao-province-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.gaokao-entry-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  padding: 24px;
}

.gaokao-entry-box {
  width: 100%;
  max-width: 680px;
  background: #fff;
  border: 1px solid #e6ecf5;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.gaokao-entry-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.gaokao-entry-row:last-child {
  margin-bottom: 0;
}

.gaokao-entry-label {
  min-width: 70px;
  font-weight: 600;
  color: #2a2f3a;
}

.gaokao-entry-score {
  flex: 1;
  min-width: 200px;
}

.gaokao-entry-score input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e6f0;
  border-radius: 8px;
  font-size: 14px;
}

.gaokao-entry-hint {
  font-size: 12px;
  color: #6c7078;
}

.gaokao-entry-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gaokao-entry-subject-btn {
  border: 1px solid #d6e1f2;
  background: #f7f9ff;
  color: #2a2f3a;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
}

.gaokao-entry-subject-btn.is-active {
  background: #3b58fe;
  color: #fff;
  border-color: #3b58fe;
}

.gaokao-entry-tips {
  text-align: center;
  font-size: 13px;
  color: #2a2f3a;
  line-height: 1.6;
}

.gaokao-entry-remaining {
  color: #ff8a4c;
  font-weight: 600;
}

.gaokao-entry-batch {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.gaokao-entry-batch-btn {
  border: 1px solid #c9d6ff;
  background: #f2f5ff;
  color: #3b58fe;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
}

.gaokao-entry-batch-btn.is-active {
  background: #3b58fe;
  color: #fff;
  border-color: #3b58fe;
}

.gaokao-entry-submit {
  min-width: 160px;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
}

.gaokao-province-tip {
  font-size: 12px;
  color: #6c7078;
}

.gaokao-province-group {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: flex-start;
}

.gaokao-province-group-title {
  font-size: 13px;
  font-weight: 600;
  color: #084279;
  margin-top: 6px;
  min-width: 72px;
  white-space: nowrap;
}

.gaokao-province-group-title::after {
  content: "：";
}

.gaokao-province-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gaokao-province-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.gaokao-province-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  padding: 4px 6px;
  background: #fff;
}

.gaokao-province-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  color: #2a2f3a;
  padding: 2px 4px;
  border-radius: 4px;
}

.gaokao-province-btn.is-active {
  background: var(--section-active-color, #2d2f33);
  color: #fff;
}

.gaokao-province-sep {
  font-size: 12px;
  color: #c2c6ce;
}

.gaokao-province-caret {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  color: #6c7078;
  padding: 2px 4px;
}

.gaokao-province-popover {
  position: absolute;
  top: 30px;
  left: 0;
  min-width: 220px;
  max-width: 320px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  padding: 10px;
  z-index: 10;
  display: none;
}

.gaokao-province-pill.is-open .gaokao-province-popover {
  display: block;
}

.gaokao-province-popover-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.gaokao-province-search {
  border: 1px solid #e0e6f0;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
}

.gaokao-province-actions {
  display: flex;
  gap: 6px;
}

.gaokao-province-action {
  border: 1px solid #e0e0e0;
  background: #fafafa;
  color: #2a2f3a;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
}

.gaokao-province-cities {
  max-height: 200px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
}

.gaokao-city-option,
.gaokao-level-leaf {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #2a2f3a;
}

.gaokao-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gaokao-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f3f3;
  color: #2a2f3a;
  font-size: 12px;
}

.gaokao-chip button {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #9b9b9b;
  font-size: 14px;
  line-height: 1;
}

.gaokao-level-select {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 10px;
  background: #fafafa;
}

.gaokao-level-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
}

.gaokao-level-item {
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  color: #2a2f3a;
  border: none;
  background: transparent;
  text-align: left;
}

.gaokao-level-item.is-current {
  background: #f0f2f7;
  color: #2a2f3a;
}

.gaokao-level-item.is-active {
  background: var(--section-active-color, #2d2f33);
  color: #fff;
}

.gaokao-level-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.gaokao-level-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  padding: 4px 6px;
  background: #fff;
}

.gaokao-level-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  color: #2a2f3a;
  padding: 2px 4px;
  border-radius: 4px;
}

.gaokao-level-btn.is-active {
  background: var(--section-active-color, #2d2f33);
  color: #fff;
}

.gaokao-level-caret {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  color: #6c7078;
  padding: 2px 4px;
}

.gaokao-level-popover {
  position: absolute;
  top: 30px;
  left: 0;
  min-width: 220px;
  max-width: 360px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  padding: 10px;
  z-index: 12;
  display: none;
}

.gaokao-level-pill.is-open .gaokao-level-popover {
  display: block;
}

.gaokao-level-mid {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 6px;
}

.gaokao-level-mid:hover {
  background: #f7f8fa;
}

.gaokao-level-mid-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  color: #2a2f3a;
  padding: 2px 4px;
  border-radius: 4px;
}

.gaokao-level-mid-btn.is-active {
  background: var(--section-active-color, #2d2f33);
  color: #fff;
}

.gaokao-level-mid-popover {
  position: absolute;
  left: 100%;
  top: 0;
  margin-left: 8px;
  min-width: 220px;
  max-width: 360px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  padding: 10px;
  z-index: 13;
  display: none;
  max-height: 220px;
  overflow: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
}

.gaokao-level-mid.is-open .gaokao-level-mid-popover,
.gaokao-level-mid:hover .gaokao-level-mid-popover {
  display: grid;
}

.gaokao-filter-summary-row .gaokao-selected {
  min-height: 30px;
}

.gaokao-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  justify-content: flex-end;
}

.gaokao-page-jump {
  display: flex;
  align-items: center;
  gap: 6px;
}

#pageJumpInput {
  width: 80px;
  padding: 6px 8px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 13px;
}

.gaokao-pagination select {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 6px 8px;
}

.gaokao-auth-guard {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 0;
}

.gaokao-auth-guard.aqh-hidden {
  display: none;
}

.gaokao-auth-card {
  border: 1px dashed #d5d8df;
  border-radius: 12px;
  padding: 18px 20px;
  text-align: center;
  background: #fafafa;
  max-width: 360px;
}

.gaokao-auth-title {
  font-size: 16px;
  font-weight: 600;
  color: #2a2f3a;
  margin-bottom: 6px;
}

.gaokao-auth-desc {
  font-size: 12px;
  color: #6c7078;
  margin-bottom: 12px;
}

.gaokao-auth-locked .gaokao-filter-list,
.gaokao-auth-locked .gaokao-result-card {
  display: none;
}

.gaokao-auth-locked .gaokao-wish-toggle,
.gaokao-auth-locked .gaokao-wish-backdrop,
.gaokao-auth-locked .gaokao-wish-drawer {
  display: none;
}

.gaokao-wish-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gaokao-wish-status {
  font-size: 12px;
  color: #6c7078;
}

.gaokao-wish-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 12px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.gaokao-wish-action:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.gaokao-wish-action.is-primary {
  background: #3b58fe;
}

.gaokao-wish-action.is-success {
  background: #19b26b;
}

.gaokao-wish-toggle {
  position: fixed;
  right: 24px;
  top: 75%;
  z-index: 40;
  background: #2f5bff;
  color: #fff;
  border: none;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(47, 91, 255, 0.25);
}

.gaokao-wish-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 45;
}

.gaokao-wish-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gaokao-wish-drawer {
  position: fixed;
  right: -420px;
  top: 0;
  height: 100vh;
  width: 380px;
  background: #fff;
  box-shadow: -20px 0 40px rgba(15, 23, 42, 0.15);
  z-index: 50;
  display: flex;
  flex-direction: column;
  transition: right 0.25s ease;
}

.gaokao-wish-drawer.is-open {
  right: 0;
}

.gaokao-wish-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #eef1f6;
  font-weight: 600;
}

.gaokao-wish-close {
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  color: #6c7078;
}

.gaokao-wish-body {
  padding: 16px 20px;
  overflow: auto;
  flex: 1;
}

.gaokao-wish-search {
  width: 100%;
  border: 1px solid #e0e6f0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  margin-bottom: 12px;
}

.gaokao-wish-item {
  border-bottom: 1px solid #eef1f6;
  padding: 10px 0;
}

.gaokao-wish-title {
  font-weight: 600;
  color: #1f2a44;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gaokao-wish-sub {
  font-size: 12px;
  color: #6c7078;
  margin-top: 6px;
}

.gaokao-wish-extra {
  font-size: 12px;
  color: #9aa3b2;
  margin-top: 4px;
}

.gaokao-wish-delete {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #c44b4b;
}

.gaokao-wish-footer {
  padding: 12px 20px 18px;
  border-top: 1px solid #eef1f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gaokao-page-info {
  font-size: 12px;
  color: #6c7078;
}

.gaokao-empty {
  font-size: 12px;
  color: #9b9b9b;
}

@media (max-width: 960px) {
  .gaokao-filter-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gaokao-filter-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .gaokao-geo-layout {
    grid-template-columns: 1fr;
  }

  .gaokao-filter-left {
    padding-right: 0;
  }

  .gaokao-filter-right {
    border-left: none;
    padding-left: 0;
  }

  .gaokao-filter-row {
    grid-template-columns: 1fr;
  }

  .gaokao-filter-row--province {
    grid-template-columns: 1fr;
  }

  .gaokao-level-select {
    grid-template-columns: 1fr;
  }

  .gaokao-result-item {
    grid-template-columns: 1fr;
  }

  .gaokao-result-header {
    grid-template-columns: 1fr;
  }

  .gaokao-table-wrap {
    --gaokao-history-label-width: 60px;
    --gaokao-history-inner-shift: 0px;
  }

  .gaokao-history-grid {
    min-height: 110px;
  }

  .gaokao-province-map {
    grid-template-columns: 1fr;
  }

  .gaokao-province-panel {
    order: 2;
  }
}
