:root {
  --xpu-orange: #ff6002;
  --xpu-orange-deep: #f45e00;
  --xpu-gray-bg: #efefef;
  --xpu-text: #333333;
  --xpu-light-text: #777777;
  --xpu-border: #e9e9e9;
  --content-width: 1200px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

@font-face {
  font-family: SourceHanSerifSC;
  src: url(SourceHanSerifSC-VF-min..ttf) format("truetype-variations");
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--xpu-text);
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol,
li {
  list-style: none;
  margin: 0;
  padding: 0;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

.container {
  width: min(var(--content-width), 100% - 40px);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background-color: rgba(255, 106, 0, 0);
  color: #ffffff;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
  will-change: background-color, box-shadow;
}

.site-header.is-sticky {
  position: sticky;
  background-color: #FF6002;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
  backdrop-filter: saturate(1.08) blur(3px);
}

.topbar {
  height: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.topbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.home-link {
  font-size: 12px;
  opacity: 0.95;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-link:hover {
  opacity: 1;
}

.home-link img {
  width: 14px;
  height: 14px;
}

.header-main {
  height: 84px;
}

.header-main .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
}

.logo-wrap img {
  width: clamp(150px, 50vw, 280px);
  height: auto;
}

.logo-wrap span {
  margin-left: 12px;
  font-size: 32px;
  font-weight: 600;
  color: #ffffff;
}

.search-wrap {
  width: 248px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  display: flex;
  align-items: center;
  padding: 0 10px 0 14px;
  gap: 8px;
}

.search-wrap form {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #ffffff;
  font-size: 12px;
  background: transparent;
}

.search-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.search-wrap button {
  width: 16px;
  height: 16px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.search-wrap button .inline-svg {
  width: 16px;
  height: 16px;
  display: block;
  color: #fff;
}

.mobile-search-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #ffffff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.mobile-search-toggle .inline-svg {
  width: 18px;
  height: 18px;
  display: block;
}

.mobile-search-row {
  display: none;
}

.mobile-search-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  padding: 0 10px 0 14px;
  gap: 8px;
}

.mobile-search-wrap form {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-search-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #ffffff;
  font-size: 12px;
  background: transparent;
}

.mobile-search-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.mobile-search-wrap button {
  width: 16px;
  height: 16px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.mobile-search-wrap button .inline-svg {
  width: 16px;
  height: 16px;
  display: block;
  color: #fff;
}

.mobile-nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #ffffff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.mobile-nav-toggle span,
.mobile-nav-toggle span::before,
.mobile-nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.28s ease, opacity 0.28s ease;
  content: "";
}

.mobile-nav-toggle span {
  position: relative;
}

.mobile-nav-toggle span::before {
  position: absolute;
  left: 0;
  top: -6px;
}

.mobile-nav-toggle span::after {
  position: absolute;
  left: 0;
  top: 6px;
}

.mobile-nav-toggle.is-open span {
  background: transparent;
}

.mobile-nav-toggle.is-open span::before {
  transform: translateY(6px) rotate(45deg);
}

.mobile-nav-toggle.is-open span::after {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-bar {
  height: 54px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.nav-bar .container {
  height: 100%;
}

.nav-list {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.nav-list a {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 44px;
  left: calc(50% - 22px);
}

.home-hero {
  position: relative;
  height: 675px;
  overflow: hidden;
}

.hero-swiper,
.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide {
  width: 100%;
  height: 100%;
}

.hero-slide-bg {
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 1.2s ease, filter 1.2s ease;
  filter: saturate(1.02) contrast(1.04);
}

.hero-swiper .swiper-slide-active .hero-slide-bg {
  transform: scale(1);
}

.hero-swiper .swiper-slide-next .hero-slide-bg,
.hero-swiper .swiper-slide-prev .hero-slide-bg {
  filter: saturate(0.92) contrast(1);
}

.hero-swiper-prev,
.hero-swiper-next {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(4px);
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-swiper-prev:hover,
.hero-swiper-next:hover {
  background: rgba(255, 106, 0, 0.78);
  transform: scale(1.06);
}

.hero-swiper-prev::after,
.hero-swiper-next::after {
  font-size: 15px;
  font-weight: 700;
}

.hero-swiper-pagination {
  bottom: 26px !important;
}

.hero-swiper-pagination .swiper-pagination-bullet {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  opacity: 1;
}

.hero-swiper-pagination .swiper-pagination-bullet-active {
  background: var(--xpu-orange);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 106, 0, 0.06), rgba(255, 106, 0, 0));
  z-index: 2;
  pointer-events: none;
}

.hero-swiper .swiper-pagination,
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  z-index: 3;
}

.quick-entry {
  margin-top: -75px;
  position: relative;
  z-index: 5;
}

.quick-entry-panel {
  background: #f3f3f3;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  padding: 28px 22px 18px;
}

.quick-entry-list {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.quick-entry-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  color: #545454;
  font-size: 14px;
  transition: transform 0.35s ease, color 0.35s ease;
}

.quick-entry-item:hover {
  transform: translateY(-8px);
}

.quick-entry-item .inline-svg {
  display: block;
  margin-bottom: 8px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}

.quick-entry-item .inline-svg path {
  transform-origin: center;
  transform-box: fill-box;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), fill 0.35s ease, opacity 0.35s ease;
  will-change: transform;
}

.quick-entry-item .inline-svg path:not(:first-of-type) {
  stroke: #ff6002;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
}

@media (hover: hover) {
  .quick-entry-item:hover {
    color: var(--xpu-orange-deep);
  }

  .quick-entry-item:hover .inline-svg {
    transform: translateY(-2px) scale(1.05);
    filter: drop-shadow(0 6px 10px rgba(255, 106, 0, 0.2));
  }

  .quick-entry-item:hover .inline-svg path:first-of-type {
    opacity: 0.25;
    transform: scale(0.9);
  }

  .quick-entry-item:hover .inline-svg path:not(:first-of-type) {
    animation: quick-entry-stroke-draw 0.52s ease forwards, quick-entry-path-wave 0.6s ease 0.05s forwards;
  }

  .quick-entry-item:hover .inline-svg path:last-of-type {
    fill: #ff7b1f;
    stroke: #ff7b1f;
    animation: quick-entry-stroke-draw 0.56s ease forwards, quick-entry-path-pop 0.6s cubic-bezier(0.2, 0.8, 0.25, 1) forwards;
  }
}

@keyframes quick-entry-stroke-draw {
  0% {
    stroke-dashoffset: 220;
    fill-opacity: 0.15;
  }

  58% {
    stroke-dashoffset: 0;
    fill-opacity: 0.25;
  }

  100% {
    stroke-dashoffset: 0;
    fill-opacity: 1;
  }
}

@keyframes quick-entry-path-wave {
  0% {
    transform: translateY(0) scale(1);
  }

  40% {
    transform: translateY(-1.5px) scale(1.02);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes quick-entry-path-pop {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.06);
  }

  100% {
    transform: scale(1.02);
  }
}

.quick-entry-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 1px solid #f4b68e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-entry-icon img {
  width: 22px;
  height: 22px;
  display: block;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 5px;
  font-family: 'SourceHanSerifSC';
}

.section-title-main .first-word {
  margin-right: -5px;
  padding: 5px;
  background: url("../img/first-word-bg.svg") center / contain no-repeat;
  color: var(--xpu-orange);
  font-size: 50px;
  font-weight: 700;
  line-height: 50px;
  text-align: center;
  flex-shrink: 0;
}

.section-title-main h2 {
  font-size: 36px;
  line-height: 1;
  color: #333333;
  letter-spacing: 2px;
}

.section-title-main span:not(.first-word) {
  /* flex-basis: 100%; */
  padding-left: 10px;
  margin-left: 0;
  margin-top: 4px;
  color: #b8b8b8;
  font-size: 11px;
  letter-spacing: 2px;
}

.more-link {
  display: inline-flex;
  align-items: center;
  color: var(--xpu-orange);
  font-size: 14px;
  gap: 6px;
  flex-shrink: 0;
}

.more-link img {
  width: 30px;
}

.news-overview {
  margin-top: -75px;
  padding: 100px 0 75px;
  background: url("../img/section-1-bg.jpg") center bottom / cover no-repeat;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.news-grid > article {
  min-width: 0;
}

.news-card {
  background: rgba(255, 255, 255, 0.82);
  padding: 0 18px;
  min-height: 326px;
  min-width: 0;
}

.news-list li {
  border-top: 1px dashed #dfdfdf;
  padding: 12px 0;
  transition: background 0.25s ease, margin 0.25s ease, padding 0.25s ease;
}

.news-list li a {
  display: block;
  width: 100%;
  min-width: 0;
  color: inherit;
}

.news-list li:first-child {
  border-top: 0;
}

.news-date {
  color: #d56a2d;
  font-size: 12px;
  line-height: 1;
  margin-bottom: 8px;
}

.news-title {
  display: block;
  min-width: 0;
  font-size: 14px;
  color: #3d3d3d;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-list li.highlight {
  background: var(--xpu-orange);
  margin: 0 -18px;
  padding: 12px 18px;
}

.news-list li.highlight .news-date,
.news-list li.highlight .news-title {
  color: #ffffff;
}

.news-list li:hover {
  background: var(--xpu-orange);
  margin: 0 -18px;
  padding: 12px 18px;
}

.news-list li:hover .news-date,
.news-list li:hover .news-title {
  color: #ffffff;
}

.major-section {
  position: relative;
  background: #fff3ec;
  padding: 20px 0 40px;
}

.major-section .container {
  position: relative;
}

.section-head-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.section-head-wrap .center-title {
  margin-bottom: 0;
}

.section-head-wrap .major-more {
  position: absolute !important;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.center-title {
  text-align: center;
  margin-bottom: 28px;
}

.center-title .main {
  font-family: 'SourceHanSerifSC';
  font-size: 30px;
  font-weight: 700;
  color: #3a3a3a;
  line-height: 1;
}

.center-title .main .first-word {
  font-size: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 2px;
  color: var(--xpu-orange);
  background: url("../img/first-word-bg.svg") center / contain no-repeat;
}

.center-title .sub {
  margin-top: 6px;
  color: #b4b4b4;
  letter-spacing: 1.4px;
  font-size: 14px;
}

.major-more {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.major-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.major-card {
  background: #ffffff;
  border: 1px solid #ededed;
  height: 148px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.major-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.09);
}

.major-head {
  background: var(--xpu-orange);
  color: #ffffff;
  height: 38px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
}

.major-head img {
  width: 18px;
  height: 18px;
}

.major-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-content: start;
  padding: 10px 12px;
  max-height: 110px;
  overflow-y: auto;
  background: #ffffff url("../img/major-list-bg.png") center bottom / 100% auto no-repeat;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 106, 0, 0.45) transparent;
}

.major-body li {
  flex: 0 0 auto;
  max-width: 100%;
  min-width: 0;
  font-size: 13px;
  color: #4f4f4f;
}

.major-body li a {
  position: relative;
  display: block;
  max-width: 100%;
  min-width: 0;
  line-height: 1.65;
  padding-left: 12px;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s ease, transform 0.25s ease;
}

.major-body::-webkit-scrollbar {
  width: 4px;
}

.major-body::-webkit-scrollbar-thumb {
  background: rgba(255, 106, 0, 0.45);
  border-radius: 999px;
}

.major-body::-webkit-scrollbar-track {
  background: transparent;
}

.major-body li a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff7a1a;
  position: absolute;
  left: 0;
  top: 8px;
}

.major-body li a:hover {
  color: var(--xpu-orange);
  transform: translateX(2px);
}

.admission-section {
  position: relative;
  padding: 88px 0 88px;
  background: url("../img/admission-bg.jpg") center top / cover no-repeat;
}

.admission-section .main {
  color: #fff;
}

.admission-section .center-title .main .first-word {
  color: #fff;
}

/* 抽屉式招生类型模块 - PC端横向抽屉，内容在右侧展开 */
.admission-board {
  margin-top: 20px;
  display: flex;
  min-height: 300px;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
}

.admission-drawer {
  display: flex;
  flex: 0 0 180px;
  min-width: 180px;
  height: 320px;
  flex-direction: row;
  align-items: stretch;
  border-right: 1px solid #f0f0f0;
  overflow: hidden;
  transition: flex-basis 0.35s ease, flex-grow 0.35s ease;
}

.admission-drawer.active {
  flex: 1 1 auto;
}

.admission-drawer:last-child {
  border-right: none;
}

/* 按钮部分 - 左侧 */
.drawer-trigger {
  flex: 0 0 180px;
  width: 180px;
  min-width: 180px;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  padding: 0;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.drawer-trigger img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.4s ease;
  z-index: 0;
}

.drawer-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  transition: background 0.35s ease;
  z-index: 1;
}

.drawer-trigger span {
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.drawer-trigger:hover img,
.drawer-trigger.active img {
  transform: scale(1.08);
}

.drawer-trigger:hover::after,
.drawer-trigger.active::after {
  background: rgba(0, 0, 0, 0.05);
}

/* 内容部分 - 右侧 */
.drawer-content {
  flex: 1;
  overflow: hidden;
  transition: max-width 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
  opacity: 0;
  max-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  background: url(../img/admission-list-bg.png) center bottom / 100% auto no-repeat;
}

.drawer-content.active {
  opacity: 1;
  max-width: 1000px;
  padding: 20px;
  /* background: #ffffff; */
}

.drawer-more {
  width: 100%;
  display: flex;
  margin-left: auto;
  align-self: flex-end;
  justify-content: flex-end;
}

.drawer-list {
  flex: 1;
  overflow: visible;
  /* padding-bottom: 12px;
  background: url("../img/admission-list-bg.png") center bottom / 100% auto no-repeat; */
}

.drawer-list li {
  border-bottom: 1px dashed #ececec;
  font-size: 14px;
  color: #4a4a4a;
  padding: 13px 0;
  cursor: pointer;
  transition: padding-left 0.3s ease, color 0.3s ease;
}

.drawer-list li a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  white-space: nowrap;
}

.drawer-list li:hover {
  padding-left: 10px;
  color: var(--xpu-orange);
}

.drawer-list li:last-child {
  border-bottom: 0;
}

.drawer-list .news-date {
  margin-bottom: 0;
  flex: 0 0 auto;
}

.drawer-list .news-title {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.campus-section {
  background: #f4f4f4 url("../img/campus-bg.jpg") center top / cover no-repeat;
  padding: 20px 0 0;
}

.campus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.campus-grid > article {
  min-width: 0;
}

.campus-card {
  background: rgba(255, 255, 255, 0.86);
  /* border: 1px solid #ececec; */
  padding: 18px;
  min-width: 0;
}

.campus-card .card-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.campus-card .card-title .name {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: #353535;
  font-family: 'SourceHanSerifSC';
}

.campus-card .card-title .name .first-word {
  display: inline-flex;
  width: 46px;
  height: 50px;
  font-size: 50px;
  align-items: center;
  justify-content: center;
  margin-right: 2px;
  color: var(--xpu-orange);
  background: url("../img/first-word-bg.svg") center / contain no-repeat;
}

.campus-card .card-title .name .sub {
  margin-left: 10px;
  font-size: 14px;
  color: #b4b4b4;
  font-weight: 400;
  letter-spacing: 1px;
}

.campus-photo {
  padding: 30px 30px 0 30px;
  /* border: 12px solid var(--xpu-orange); */
  /* height: 280px; */
  overflow: hidden;
}

.campus-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.campus-card:hover .campus-photo img {
  transform: scale(1.08);
}

.campus-photo.left-bg {
  background: url('../img/campus-left-bg.svg') no-repeat center / cover;
}

.campus-photo.right-bg {
  background: url('../img/campus-right-bg.svg') no-repeat center / cover;
}

.campus-news {
  padding: 20px 30px 40px 30px;
  background: #FFF6F2;
}

.campus-news li {
  background: #ffffff;
  border-top: 1px solid #ededed;
  padding: 12px 10px;
  min-width: 0;
}

.campus-news li:first-child {
  border-top: 0;
}

.campus-news li:last-child {
  border-bottom: 4px solid var(--xpu-orange);
}

.campus-news li a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  color: inherit;
}

.campus-news .news-date {
  margin-bottom: 0;
  min-width: 76px;
}

.campus-news .news-title {
  display: block;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.impression-section {
  background: #ececec url("../img/impression-bg.jpg") center top / cover no-repeat;
  padding: 40px 0 80px;
}

.impression-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e9e9e9;
}

.impression-left,
.impression-right {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.impression-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.38s ease;
}

.impression-thumb::after,
.impression-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.32) 100%);
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.impression-thumb img,
.impression-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
}

.impression-main {
  position: relative;
  /* height: 400px; */
  overflow: hidden;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.38s ease;
}

.impression-main .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: var(--xpu-orange);
  color: #ffffff;
  font-size: 38px;
  font-weight: 700;
  display: flex;
  align-items: center;
  padding: 0 24px;
  transform: translateY(0);
  transition: transform 0.35s ease, background-color 0.35s ease;
}

.play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  transition: transform 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease;
}

.play-btn::before {
  content: "";
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #ffffff;
}

.impression-thumb .text {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  color: #ffffff;
  font-size: 27px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transform: translateY(0);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .impression-thumb:hover,
  .impression-main:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
  }

  .impression-thumb:hover::after,
  .impression-main:hover::after {
    opacity: 0.3;
  }

  .impression-thumb:hover img,
  .impression-main:hover img {
    transform: scale(1.08);
    filter: saturate(1.08);
  }

  .impression-thumb:hover .text {
    transform: translateY(-4px);
    opacity: 0.96;
  }

  .impression-main:hover .caption {
    transform: translateY(-4px);
    background: #e45600;
  }

  .impression-main:hover .play-btn,
  .impression-thumb:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.08);
    background: rgba(255, 96, 2, 0.9);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  }
}

.impression-action {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.impression-action a {
  min-width: 140px;
  height: 34px;
  border: 1px solid var(--xpu-orange);
  border-radius: 18px;
  color: var(--xpu-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.25s ease;
}

.impression-action a:hover {
  background: var(--xpu-orange);
  color: #ffffff;
}

.site-footer {
  background: var(--xpu-orange);
  color: #ffffff;
}

.footer-top {
  min-height: 228px;
  background: var(--xpu-orange) url("../img/bottom-bg.png") center bottom / auto 100% no-repeat;
  padding-top: 36px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
}

.footer-contact h3 {
  font-size: 30px;
  margin-bottom: 18px;
}

.footer-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 22px;
}

.footer-info p {
  font-size: 13px;
  line-height: 1.9;
  opacity: 0.96;
}

.footer-qr {
  display: flex;
  gap: 30px;
  padding-top: 8px;
}

.qr-box {
  text-align: center;
  font-size: 12px;
}

.qr-placeholder {
  width: 100px;
  height: 100px;
  border: 4px solid #ffffff;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.8) 50%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.8) 50%, transparent 50%),
    #f0f0f0;
  background-size: 12px 12px;
  margin-bottom: 8px;
}

.footer-bottom {
  height: 44px;
  background: #2f2f2f;
  color: #c7c7c7;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inner-banner {
  height: 400px;
  background: url("../img/top-banner.jpg") center / cover no-repeat;
}

.inner-main {
  background: #efefef;
  padding: 46px 0 84px;
}

.inner-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.sidebar {
  background: #ffffff;
  border: 1px solid #e6e6e6;
}

.sidebar h3 {
  height: 86px;
  background: var(--xpu-orange);
  color: #ffffff;
  font-size: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 66px;
  border-top: 1px solid #eeeeee;
  color: #5f5f5f;
  font-size: 18px;
  transition: all 0.25s ease;
}

.sidebar ul li a.active,
.sidebar ul li a:hover {
  color: var(--xpu-orange);
  background: #f4ece6;
}

.content-panel {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  padding: 0 44px 44px;
}

.breadcrumb {
  height: 70px;
  border-bottom: 1px solid #efefef;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #898989;
  font-size: 12px;
}

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

.list-news {
  padding-top: 16px;
}

.list-news li {
  border-bottom: 1px dashed #eeeeee;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.list-news li .title {
  flex: 1;
  min-width: 0;
  color: #3e3e3e;
  font-size: 16px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s ease;
}

.list-news li:hover .title {
  color: var(--xpu-orange);
}

.list-news li .date {
  color: #9d9d9d;
  font-size: 13px;
}

.list-news li.active .title,
.list-news li.active .date {
  color: var(--xpu-orange);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}

.pagination a,
.pagination span {
  min-width: 30px;
  height: 30px;
  border: 1px solid #e7e7e7;
  background: #ffffff;
  color: #999999;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pagination a.active {
  background: var(--xpu-orange);
  border-color: var(--xpu-orange);
  color: #ffffff;
}

.article-wrap {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  padding: 0 70px 58px;
}

.article-head {
  border-bottom: 1px solid #efefef;
  padding: 30px 0 24px;
  text-align: center;
}

.article-head h1 {
  font-size: 36px;
  color: #343434;
  line-height: 1.45;
  margin-bottom: 12px;
}

.article-meta {
  color: #999999;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.article-body {
  padding-top: 30px;
  color: #4c4c4c;
  font-size: 16px;
  line-height: 2;
}

.article-body p {
  margin-bottom: 18px;
}

.article-body h4 {
  margin: 16px 0 8px;
  font-size: 18px;
  color: #3d3d3d;
}

.article-nav {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid #ececec;
  color: #575757;
  font-size: 14px;
}

.article-nav p {
  margin-bottom: 12px;
}

.article-nav a {
  color: var(--xpu-orange);
}

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="left"] {
  transform: translateX(-30px);
}

[data-animate="left"].animated {
  transform: translateX(0);
}

[data-animate="right"] {
  transform: translateX(30px);
}

[data-animate="right"].animated {
  transform: translateX(0);
}

@keyframes floatUpDown {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0);
  }
}

.float-item {
  animation: floatUpDown 3.8s ease-in-out infinite;
}

.float-item.delay-1 {
  animation-delay: 0.3s;
}

.float-item.delay-2 {
  animation-delay: 0.6s;
}

.float-item.delay-3 {
  animation-delay: 0.9s;
}

@media (max-width: 1400px) {
  body {
    zoom: 0.9;
  }
}

/* =========== 响应式设计 =========== */

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
  :root {
    --content-width: 960px;
  }

  body {
    zoom: 1;
  }

  .topbar {
    height: 24px;
    font-size: 12px;
  }

  .header-main {
    height: 70px;
  }

  .logo-wrap img {
    width: clamp(120px, 40vw, 300px);
  }

  .search-wrap {
    width: 200px;
    height: 32px;
  }

  .nav-list {
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
  }

  .nav-list a {
    font-size: 13px;
  }

  .home-hero {
    height: 450px;
  }

  .quick-entry {
    margin-top: -20px;
  }

  .quick-entry-panel {
    padding: 20px 16px 12px;
  }

  .quick-entry-list {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }

  .quick-entry-icon {
    width: 36px;
    height: 36px;
  }

  .quick-entry-icon img,
  svg.inline-svg {
    width: 30px;
    height: 30px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-title-main .first-word {
    width: 36px;
    height: 40px;
    font-size: 40px;
    line-height: 40px;
  }

  .section-title-main h2 {
    font-size: 28px;
  }

  .section-title-main span:not(.first-word) {
    padding-left: 41px;
  }

  .major-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .center-title .main {
    font-size: 28px;
  }

  .admission-board {
    min-height: 240px;
  }

  .admission-drawer {
    flex: 0 0 72px;
    min-width: 72px;
    border-right: 1px solid #f0f0f0;
  }

  .admission-drawer.active {
    flex: 1 1 auto;
  }

  .drawer-trigger {
    flex-basis: 72px;
    width: 72px;
    min-width: 72px;
    min-height: 240px;
  }

  .drawer-content.active {
    padding: 16px;
  }

  .campus-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0;
    width: auto;
  }

  .campus-photo {
    /* height: 200px; */
  }

  .impression-grid {
    grid-template-columns: 1fr;
  }

  .impression-left,
  .impression-right {
    grid-template-rows: 200px;
  }

  .impression-main {
    height: 300px;
    order: -1;
  }

  .footer-info {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-qr {
    flex-direction: column;
    align-items: center;
  }
}

/* 手机设备 (480px - 768px) */
@media (max-width: 768px) {
  :root {
    --content-width: 100%;
  }

  .topbar {
    height: 20px;
    font-size: 11px;
  }

  .header-main {
    height: 60px;
    padding: 0 10px;
  }

  .header-main .container {
    gap: 12px;
    justify-content: space-between;
  }

  .logo-wrap img {
    max-width: 120px;
  }

  .search-wrap {
    display: none;
  }

  .mobile-search-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .mobile-search-row {
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    background: #FF6002;
    transition: max-height 0.32s ease, opacity 0.26s ease;
  }

  .mobile-search-row .container {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .site-header.search-open .mobile-search-row {
    max-height: 72px;
    opacity: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .mobile-search-wrap {
    height: 34px;
    padding: 0 10px 0 12px;
  }

  .mobile-search-wrap input {
    font-size: 11px;
  }

  .nav-bar {
    height: auto;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    border-top: 0;
    background: #FF6002;
    transition: max-height 0.32s ease, opacity 0.26s ease;
  }

  .site-header.menu-open .nav-bar {
    max-height: 420px;
    opacity: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 8px 10px 12px;
    min-width: 0;
    height: auto;
  }

  .nav-list li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .nav-list li:last-child {
    border-bottom: 0;
  }

  .nav-list a {
    justify-content: flex-start;
    font-size: 14px;
    font-weight: 500;
    height: 42px;
    padding: 0 2px;
  }

  .nav-list a::after {
    display: none;
  }

  .home-hero {
    height: 280px;
  }

  .hero-swiper-prev,
  .hero-swiper-next {
    width: 34px;
    height: 34px;
  }

  .hero-swiper-pagination {
    bottom: 16px !important;
  }

  .quick-entry {
    margin-top: -16px;
  }

  .quick-entry-panel {
    background: linear-gradient(135deg, #f3f3f3, #f8f8f8);
    padding: 16px 10px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  }

  .quick-entry-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }

  .quick-entry-item {
    font-size: 12px;
    text-align: center;
  }

  .quick-entry-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 6px;
    border-radius: 8px;
    background: rgba(255, 106, 0, 0.1);
  }

  .quick-entry-icon img,
  svg.inline-svg {
    width: 30px;
    height: 30px;
    color: var(--xpu-orange);
  }

  .news-overview {
    padding: 40px 0;
    margin-top: 20px;
  }

  .news-overview .container {
    padding: 0 10px;
    width: auto;
  }

  .news-overview .container article{
    margin-bottom: 30px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .news-card {
    min-height: auto;
    padding: 12px 14px;
  }

  .news-list li {
    padding: 8px 0;
  }

  .news-title {
    font-size: 13px;
  }

  .news-date {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .major-section {
    padding: 30px 0 40px;
  }

  .major-section::before {
    top: -30px;
    height: 50px;
  }

  .major-section .container {
    width: 100%;
    padding: 0 0 0 10px;
    margin: 0;
  }

  .major-section .container .section-head-wrap {
    margin-right: 10px;
  }


  .center-title {
    margin-bottom: 16px;
  }

  .center-title .main {
    font-size: 22px;
  }

  .center-title .main .first-word {
    width: 28px;
    height: 28px;
    font-size: 28px;
  }

  .center-title .sub {
    font-size: 12px;
    margin-top: 4px;
  }

  .major-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto);
    grid-auto-columns: minmax(170px, 42vw);
    grid-template-columns: none;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 10px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .major-grid::-webkit-scrollbar {
    height: 4px;
  }

  .major-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.16);
    border-radius: 4px;
  }

  .major-card {
    height: 124px;
    scroll-snap-align: start;
  }

  .major-more {
    right: 12px;
    font-size: 12px;
    gap: 3px;
  }

  .major-head {
    height: 36px;
    padding: 0 10px;
    font-size: 14px;
  }

  .major-head img,
  .major-head svg {
    width: 16px;
    height: 16px;
  }

  .major-body {
    gap: 4px 8px;
    max-height: 88px;
    padding: 8px 10px;
    background-size: cover;
  }

  .major-body li {
    font-size: 12px;
  }

  .major-body li a {
    padding-left: 10px;
    line-height: 1.5;
  }

  .major-body li a::before {
    top: 7px;
  }

  .section-title {
    margin-bottom: 12px;
    flex-direction: row;
    /* align-items: flex-start; */
    align-items: center;
    gap: 8px;
  }

  .section-title-main {
    gap: 0 12px;
  }

  .section-title-main .first-word {
    /* width: 26px;
    height: 28px; */
    font-size: 28px;
    line-height: 28px;
    margin-right: -8px;
    /* padding: 5px; */
  }

  .section-title-main h2 {
    font-size: 20px;
  }

  .section-title-main span:not(.first-word) {
    padding-left: 0;
    font-size: 10px;
  }

  .more-link {
    font-size: 12px;
  }

  .admission-section {
    padding: 30px 0;
  }

  .admission-section .container {
    padding: 0 10px;
    width: auto;
  }

  .admission-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    align-items: start;
  }

  .admission-drawer {
    display: contents;
    flex: initial;
    min-width: 0;
    min-height: auto;
  }

  .drawer-trigger {
    grid-row: 1;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 96px;
    padding: 12px;
    border: 0;
    border-right: 1px solid #f0f0f0;
    font-size: 14px;
  }

  .admission-drawer:last-child .drawer-trigger {
    border-right: none;
  }

  .drawer-trigger span {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    font-size: 14px;
    letter-spacing: 1px;
  }

  .drawer-content {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
  }

  .drawer-content.active {
    max-height: 1000px;
    opacity: 1;
    padding: 10px 10px 10px;
    background: #ffffff;
  }

  .drawer-list {
    padding-bottom: 6px;
  }

  .drawer-list li {
    padding: 8px 0;
    font-size: 12px;
  }

  .drawer-trigger span {
    font-size: 13px;
    letter-spacing: 0.5px;
  }

  .campus-section {
    padding: 30px 0 0;
  }

  .campus-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .campus-card {
    padding: 10px;
  }

  .campus-card .card-title .name {
    font-size: 24px;
  }

  .campus-card .card-title .name .first-word {
    width: 30px;
    height: 30px;
    font-size: 30px;
  }

  .campus-card .card-title .sub {
    font-size: 12px;
  }

  .campus-photo {
    padding: 20px 20px 0 20px;
    /* height: 180px; */
    /* border: 8px solid var(--xpu-orange); */
  }

  .campus-news{
    padding: 10px 0 10px;
  }

  .campus-news li {
    gap: 8px;
    padding: 8px 0;
  }

  .campus-news .news-date {
    min-width: 60px;
    font-size: 11px;
  }

  .campus-news .news-title {
    font-size: 12px;
  }

  .impression-section {
    padding: 30px 0 50px;
  }

  .impression-section .container {
    padding: 0 10px;
    width: auto;
  }

  .impression-grid {
    grid-template-columns: 1fr;
    border: none;
    gap: 10px;
  }

  .impression-left,
  .impression-right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 10px;
  }

  .impression-thumb {
    height: 100px;
  }

  .impression-thumb .text {
    font-size: 14px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    line-height: 1.3;
  }

  .impression-main {
    height: 250px;
    order: -1;
  }

  .impression-main .caption {
    height: 50px;
    font-size: 28px;
    padding: 0 16px;
  }

  .play-btn {
    width: 40px;
    height: 40px;
  }

  .play-btn::before {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #ffffff;
  }

  .impression-action {
    margin-top: 16px;
  }

  .impression-action a {
    min-width: 120px;
    height: 32px;
    font-size: 12px;
  }

  .footer-top {
    min-height: auto;
    padding-top: 24px;
    padding-bottom: 20px;
  }

  .footer-content {
    padding: 0 10px;
    width: auto;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-contact h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .footer-info {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .footer-info p {
    font-size: 12px;
    line-height: 1.7;
  }

  .footer-qr {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    padding-top: 0;
  }

  .qr-box {
    font-size: 11px;
  }

  .qr-placeholder {
    width: 80px;
    height: 80px;
    border: 3px solid #ffffff;
    margin-bottom: 6px;
  }

  .footer-bottom {
    height: 40px;
    font-size: 11px;
  }

  /* 内容页面响应式 */

  .inner-banner{
    height: 120px;
  }

  .inner-main .container {
    padding: 0;
    width: 100%;
  }

  .inner-main{
    padding: 0;
  }
  .inner-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 10px;
    width: auto;
  }

  .sidebar {
    display: none;
  }

  .sidebar h3 {
    height: 60px;
    font-size: 28px;
  }

  .sidebar ul li a {
    height: 50px;
    font-size: 14px;
  }

  .content-panel {
    padding: 0 10px 16px;
  }

  .breadcrumb {
    height: 50px;
    font-size: 11px;
  }

  .list-news li {
    padding: 12px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .list-news li .title {
    font-size: 14px;
  }

  .list-news li .date {
    font-size: 12px;
  }

  .pagination a,
  .pagination span {
    min-width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .article-wrap {
    padding: 0 16px 40px;
  }

  .article-head {
    padding: 20px 0 16px;
  }

  .article-head h1 {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .article-meta {
    font-size: 12px;
    gap: 12px;
  }

  .article-body {
    padding-top: 16px;
    font-size: 14px;
    line-height: 1.8;
  }

  .article-body p {
    margin-bottom: 12px;
  }

  .article-body h4 {
    margin: 12px 0 6px;
    font-size: 16px;
  }

  .article-nav {
    margin-top: 24px;
    padding-top: 12px;
    font-size: 13px;
  }

  .article-nav a {
    font-size: 13px;
  }
}

/* 小手机设备 (< 480px) */
@media (max-width: 480px) {
  .topbar {
    height: 0;
    display: none;
  }

  .header-main {
    height: 50px;
    padding: 0 10px;
  }

  .header-main .container {
    gap: 4px;
    padding: 0;
    width: auto;
  }

  .logo-wrap img {
    max-width: 140px;
  }

  .logo-wrap span {
    font-size: 14px;
  }

  .mobile-search-toggle,
  .mobile-nav-toggle {
    width: 30px;
    height: 30px;
  }

  .mobile-search-toggle .inline-svg {
    width: 16px;
    height: 16px;
  }

  .mobile-nav-toggle span,
  .mobile-nav-toggle span::before,
  .mobile-nav-toggle span::after {
    width: 16px;
  }

  .mobile-search-row .container {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .mobile-search-wrap {
    height: 30px;
  }

  .mobile-search-wrap input::placeholder {
    font-size: 10px;
  }

  .nav-list {
    grid-template-columns: repeat(3, minmax(80px, 1fr));
    gap: 0;
    padding: 0 4px;
  }

  .nav-list a {
    height: 40px;
    font-size: 14px;
    font-weight: 400;
  }

  .home-hero {
    height: 200px;
  }

  .hero-swiper-prev,
  .hero-swiper-next {
    display: none;
  }

  .hero-swiper-pagination .swiper-pagination-bullet {
    width: 24px;
  }

  .quick-entry {
    margin-top: -12px;
    padding: 0 18px;
    width: auto;
  }

  .quick-entry-panel {
    padding: 12px 8px 4px;
  }

  .quick-entry-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .quick-entry-list li {
    margin: 10px 0;
  }

  .quick-entry-item {
    font-size: 12px;
  }

  .quick-entry-icon {
    width: 28px;
    height: 28px;
    margin: 0 auto 4px;
  }

  .quick-entry-icon img,
  svg.inline-svg {
    width: 30px;
    height: 30px;
  }

  .news-overview {
    padding: 30px 0 0;
  }

  .center-title .main {
    font-size: 20px;
  }

  .major-more {
    right: 8px;
    top: -2px;
    font-size: 11px;
  }

  .major-head {
    font-size: 12px;
  }

  .section-title-main h2 {
    font-size: 18px;
  }

  .admission-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 0;
  }

  .drawer-content {
    max-height: 0;
  }

  .drawer-content.active {
    max-height: 1000px;
  }

  .drawer-trigger {
    min-height: 84px;
  }

  .campus-card .card-title .name {
    font-size: 20px;
  }

  .footer-contact h3 {
    font-size: 18px;
  }
}

/* =========== 增强的动画效果 =========== */

/* 按钮波纹效果 */
button,
a[href] {
  position: relative;
}

button:hover,
a[href]:hover {
  transition: all 0.3s ease;
}

/* 输入框焦点动画 */
input:focus {
  outline: none;
  transition: all 0.3s ease;
}

/* 卡片悬停动画增强 */
.major-card,
.campus-card {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.major-card:hover,
.campus-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* 图片缩放动画 */
img {
  transition: transform 0.4s ease;
}

.major-card:hover img,
.campus-card:hover img {
  transform: scale(1.08);
}

/* 链接下划线动画 */
a:not(.quick-entry-item):not(.drawer-trigger) {
  position: relative;
  transition: color 0.3s ease;
}

/* 透明渐变过渡 */
.news-card,
.major-card,
.campus-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.95));
  backdrop-filter: blur(10px);
}

/* 加载动画 */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* 闪烁效果 */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* 彩虹渐变动画 */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* 为svg图标添加颜色过渡 */
svg.inline-svg {
  transition: color 0.3s ease, transform 0.3s ease;
}

a:hover svg.inline-svg {
  /* color: var(--xpu-orange); */
  transform: translateX(2px);
}

button:hover svg.inline-svg {
  color: #ffffff;
  transform: scale(1.1);
}

/* 滚动时的缓进效果 */
html {
  scroll-behavior: smooth;
}

/* 页面加载动画 */
[data-animate] {
  will-change: transform, opacity;
}

[data-animate].animated {
  animation: slideInUp 0.6s ease backwards;
}

[data-animate="left"].animated {
  animation: slideInLeft 0.6s ease backwards;
}

[data-animate="right"].animated {
  animation: slideInRight 0.6s ease backwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translate3d(-40px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translate3d(40px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translate3d(0, -20px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}