/* =========================================================
   官网模板 · 分数计划内容区
   页面外壳（导航 / banner / 页脚）复用学校官网样式，
   这里只负责左侧两个栏目 + 右侧查询表格。
   ========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
}

.official-content,
.official-content *,
.official-content *::before,
.official-content *::after {
  box-sizing: border-box;
}

/* response.css 原本通过 JS 动画显示 header，这里直接置为可见 */
.header {
  opacity: 1 !important;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 9999;
  padding: 9px 16px;
  background: #004b8d;
  color: #fff;
  font-size: 13px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid #af0707;
  outline-offset: 2px;
}

/* Banner：单张图，不启用轮播脚本 */
.pc_swiper {
  width: 100%;
  overflow: hidden;
  background: #fff;
}

.pc_swiper .swiper-container-top {
  height: auto;
}

.pc_swiper .swiper-wrapper {
  display: block;
  width: 100%;
}

.pc_swiper .swiper-slide {
  width: 100%;
}

.pc_swiper .swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================================================
   左侧「分数计划」栏目
   ========================================================= */

.official-content {
  align-items: flex-start;
}

.official-side {
  display: flex;
  flex-direction: column;
  flex: 0 0 310px;
  min-height: 0;
  padding-bottom: 18px;
  box-sizing: border-box;
}

.xyzy_content_right {
  flex: 1 1 0;
  min-width: 0;
}

.official-side .xyzy_content_left_title_wrap {
  padding-top: 1px;
}

.official-side .xyzy_content_left_title {
  text-decoration: none;
}

.official-side .xyzy_content_left_img {
  display: block;
  width: 100%;
  left: 0;
  margin: 0 auto;
}

.official-side-nav {
  padding: 12px 24px 24px !important;
}

.official-side-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  margin-bottom: 12px;
  padding: 0 18px;
  border: 1px solid #c7dcec;
  background: #fff;
  color: #004b8d;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.official-side-link span {
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: #8eb0c9;
}

.official-side-link:hover {
  border-color: #004b8d;
  background: #f4f9fd;
  color: #004b8d;
}

.official-side-link.is-active {
  border-color: #004b8d;
  background: #004b8d;
  color: #fff;
}

.official-side-link.is-active span {
  color: #fff;
}

/* =========================================================
   右侧内容
   ========================================================= */

.official-main {
  box-sizing: border-box;
  width: 100%;
  padding: 48px 50px 56px;
  color: #333;
  font-size: 14px;
  text-align: left;
}

.official-main p {
  margin: 0;
  color: #666;
  font-size: 13px !important;
  line-height: 1.8 !important;
  text-align: left !important;
}

.official-main a {
  color: #004b8d;
  text-decoration: none;
}

.official-main a:hover {
  color: #af0707;
}

.o-page-title {
  position: relative;
  margin: 0 0 32px;
  padding-bottom: 14px;
  color: #004b8d;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-align: center;
}

.o-page-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 78px;
  height: 3px;
  background: linear-gradient(90deg, rgba(0, 75, 141, 0), #004b8d 22%, #004b8d 78%, rgba(0, 75, 141, 0));
  transform: translateX(-50%);
}

/* =========================================================
   筛选
   ========================================================= */

.o-filters {
  margin-bottom: 2px;
}

.o-filter-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 6px;
  line-height: 28px;
}

.o-filter-row[hidden] {
  display: none !important;
}

.o-filter-label {
  width: 47px;
  flex: none;
  color: #333;
  font-size: 14px;
  text-align: left;
}

.o-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
  min-width: 0;
}

.o-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 1px 7px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #444;
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.o-chip:hover {
  background: #eef4fb;
  color: #004b8d;
}

.o-chip.is-active {
  padding: 1px 12px;
  background: #004b8d;
  color: #fff;
}

.o-chip.is-active:hover {
  background: #004b8d;
  color: #fff;
}

.o-chips--province {
  row-gap: 3px;
}

.o-chip-empty {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 1px 4px;
  color: #aaa;
  font-size: 13px;
}

/* =========================================================
   区块 / 表格
   ========================================================= */

.o-section {
  margin-top: 26px;
}

.o-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #222;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.o-section-title::before {
  content: "";
  width: 3px;
  height: 17px;
  flex: none;
  background: #004b8d;
}

.o-scroll-hint {
  display: none;
  margin-top: 8px !important;
  color: #999 !important;
  font-size: 11px !important;
  text-align: right !important;
}

.o-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #c5cedb transparent;
}

.o-table-wrap::-webkit-scrollbar {
  height: 8px;
}

.o-table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  background: #c5cedb;
  background-clip: content-box;
}

.o-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid #dfe5ee;
}

.o-table th {
  padding: 10px 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
  background: #004b8d;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.o-table th:last-child {
  border-right: 0;
}

.o-table td {
  padding: 10px 8px;
  border-right: 1px solid #f0f2f7;
  border-bottom: 1px solid #eceef3;
  background: #fff;
  color: #333;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
  word-break: break-word;
}

.o-table td:last-child {
  border-right: 0;
}

.o-table tbody tr:last-child td {
  border-bottom: 0;
}

.o-table tbody tr:hover td {
  background: #f8fbff;
}

.o-table .col-year {
  width: 72px;
}

.o-table .col-province {
  width: 72px;
}

.o-table .col-subject {
  width: 82px;
}

.o-table .col-type {
  width: 92px;
}

.o-table--plan .col-type {
  width: 220px;
}

.o-table--plan .col-note {
  width: 170px;
}

.o-table--detail .col-type {
  width: 220px;
}

.o-table .col-count {
  width: 82px;
}

.o-table .col-duration {
  width: 70px;
}

.o-table .col-score {
  width: 82px;
}

.o-table .col-line {
  width: 82px;
}

.o-table .col-note {
  width: 190px;
}

.o-table--detail .col-major,
.o-table--plan .col-major {
  width: auto;
}

.o-table--plan {
  min-width: 800px;
}

.o-empty-row td {
  padding: 30px 8px !important;
  color: #999 !important;
  font-size: 13px !important;
}

.o-note {
  margin-top: 10px !important;
  color: #666 !important;
  font-size: 13px !important;
  line-height: 1.8 !important;
}

.o-subnote {
  margin-top: 2px !important;
  color: #999 !important;
  font-size: 12px !important;
  line-height: 1.7 !important;
}

.o-note--plan {
  color: #000 !important;
  font-weight: 400 !important;
}

.o-noscript {
  padding: 12px 20px;
  background: #fff4f4;
  color: #b51f24;
  text-align: center;
  font-size: 12px;
}

/* =========================================================
   响应式：官网内容区
   ========================================================= */

@media screen and (max-width: 1400px) {
  .official-main {
    padding-left: 42px;
    padding-right: 42px;
  }
}

@media screen and (max-width: 1240px) {
  .xyzy_content {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .xyzy_content_left {
    width: 260px;
    flex-basis: 260px;
  }

  .xyzy_content_right {
    width: calc(100% - 260px);
  }

  .official-main {
    padding: 42px 34px 50px;
  }
}

@media screen and (max-width: 1024px) {
  .pc_swiper .swiper-slide img {
    height: 300px;
    object-fit: cover;
  }

  .m_nav_box_wrap.is-open {
    display: block;
  }

  .xyzy_content {
    display: block;
    width: 100%;
    padding: 0 15px;
  }

  .xyzy_content_left {
    width: 100%;
    min-height: 0;
    margin: 16px 0 0;
    padding-bottom: 2px;
  }

  .official-side {
    display: block;
  }

  .official-side .xyzy_content_left_title_wrap {
    padding-top: 0;
  }

  .official-side .xyzy_content_left_title {
    margin-top: 18px;
    margin-bottom: 4px;
    font-size: 26px;
  }

  .official-side .xyzy_content_left_img {
    width: 100%;
    left: 0;
  }

  .official-side-nav {
    display: flex;
    gap: 8px;
    padding: 8px 14px 14px !important;
  }

  .official-side-link {
    flex: 1;
    height: 48px;
    margin-bottom: 0;
    padding: 0 14px;
    font-size: 16px;
  }

  .official-side-link span {
    display: none;
  }

  .xyzy_content_right {
    width: 100%;
  }

  .official-main {
    padding: 20px 20px 38px;
  }
}

@media screen and (max-width: 860px) {
  .o-scroll-hint {
    display: block;
  }
}

@media screen and (max-width: 760px) {
  .pc_swiper .swiper-slide img {
    height: 200px;
    object-fit: cover;
  }

  .xyzy_content {
    padding: 0 12px;
  }

  .official-main {
    padding: 18px 12px 32px;
  }

  .o-page-title {
    margin-bottom: 26px;
    padding-bottom: 12px;
    font-size: 24px;
  }

  .o-page-title::after {
    width: 62px;
    height: 2.5px;
  }

  .o-filter-row {
    display: block;
    margin-bottom: 8px;
  }

  .o-filter-label {
    display: block;
    width: auto;
    margin-bottom: 2px;
    line-height: 22px;
  }

  .o-chips {
    gap: 2px 3px;
  }

  .o-chips--province {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
  }

  .o-chips--province::-webkit-scrollbar {
    display: none;
  }

  .o-chip {
    min-height: 27px;
    padding: 1px 6px;
    font-size: 13px;
  }

  .o-chip.is-active {
    padding: 1px 10px;
  }

  .o-section {
    margin-top: 22px;
  }

  .o-section-title {
    font-size: 17px;
  }

  .o-scroll-hint {
    display: none;
  }

  .o-table {
    min-width: 0;
    table-layout: auto;
  }

  .o-table--plan,
  .o-table--detail {
    min-width: 0;
  }

  .o-table .col-year,
  .o-table .col-province,
  .o-table .col-subject,
  .o-table .col-type,
  .o-table .col-duration {
    display: none;
  }

  .o-table .col-major {
    width: auto;
  }

  .o-table .col-count {
    width: 58px;
  }

  .o-table .col-score,
  .o-table .col-line {
    width: 58px;
  }

  .o-table .col-note {
    width: 88px;
  }

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

  .o-subnote {
    display: none;
  }
}

@media screen and (max-width: 430px) {
  .o-page-title {
    font-size: 22px;
  }

  .official-side .xyzy_content_left_title {
    font-size: 23px;
  }

  .official-side-link {
    height: 44px;
    font-size: 15px;
  }

  .o-note {
    font-size: 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
  }
}
