.page-zs-portal {
  background: var(--theme-body-bg);
  padding-top: 0;
  overflow-x: hidden;
}

.page-zs-portal .site-header-fixed {
  top: 0;
}

.page-zs-portal .navbar-gzca {
  padding-top: 0.125rem;
  padding-bottom: 0.5rem;
}

.page-zs-portal .zs-portal__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  line-height: 1.2;
}

.page-zs-portal .zs-portal__brand-text {
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  letter-spacing: 0.14em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.zs-portal-main {
  padding-top: 0;
  overflow-x: hidden;
}

.zs-portal-banner {
  position: relative;
  width: 100%;
  margin-top: 0;
}

.zs-portal-banner .carousel-item {
  height: 100vh;
  background: var(--theme-hero-visual-bg);
}

.zs-portal-banner .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.zs-portal-banner.carousel {
  padding: 0;
}

.zs-portal-banner .carousel-control-prev,
.zs-portal-banner .carousel-control-next {
  width: 2.5rem;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  height: 2.75rem;
  opacity: 0.85;
}

.zs-portal-banner .carousel-control-prev {
  left: clamp(0.35rem, 2.5vw, 2.5rem);
}

.zs-portal-banner .carousel-control-next {
  right: clamp(0.35rem, 2.5vw, 2.5rem);
}

.zs-portal-quick {
  position: relative;
  z-index: 2;
  margin-top: -2.5rem;
  margin-bottom: 2.5rem;
}

.zs-portal-quick__grid {
  background: #fff;
  border-radius: 0.375rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 0.5rem;
}

.zs-portal-quick__grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 0.35rem;
  text-decoration: none;
  color: var(--theme-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.25rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.zs-portal-quick__grid a:hover,
.zs-portal-quick__grid a:focus-visible {
  color: var(--theme-primary);
  background: rgba(var(--theme-primary-rgb), 0.06);
}

.zs-portal-quick__icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.zs-portal-quick__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.zs-portal-quick__icon .bi {
  font-size: 32px;
  color: var(--theme-primary);
  line-height: 1;
}

.zs-portal-title {
  text-align: center;
  margin-bottom: 1.75rem;
}

.zs-portal-title h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: var(--theme-heading);
  margin: 0;
  letter-spacing: 0.02em;
}

.zs-portal-title h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0.65rem auto 0;
  background: linear-gradient(90deg, var(--theme-primary), var(--theme-primary-light));
  border-radius: 2px;
}

.zs-portal-section {
  padding: 2.25rem 0;
}

.zs-portal-section--muted {
  background: var(--theme-section-muted-bg);
}

.zs-portal-section--news {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.zs-portal-news-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 5.5rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border-radius: 0.375rem 0.375rem 0 0;
  border-bottom: 4px solid var(--theme-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: var(--theme-heading);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.5;
  text-align: center;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.zs-portal-news-card:hover,
.zs-portal-news-card:focus-visible {
  color: #b8860b;
  border-bottom-color: #d4a017;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.zs-portal-news-slide .carousel-caption {
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.65rem 1rem 0.85rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}

.zs-portal-news-slide .carousel-caption .fs-sm {
  font-size: 0.875rem;
  text-align: left;
}

.zs-portal-news-slide .carousel {
  padding: 0 clamp(0.35rem, 2vw, 2.25rem);
}

.zs-portal-news-slide .carousel-control-prev,
.zs-portal-news-slide .carousel-control-next {
  width: 2.25rem;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  height: 2.5rem;
  opacity: 1;
}

.zs-portal-news-slide .carousel-control-prev {
  left: 0;
}

.zs-portal-news-slide .carousel-control-next {
  right: 0;
}

.zs-portal-news-slide .carousel-control-prev-icon,
.zs-portal-news-slide .carousel-control-next-icon {
  width: 2rem;
  height: 2rem;
  filter: invert(0.35) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.zs-portal-major-card,
.zs-portal-role-card {
  display: block;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0.375rem;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
  text-decoration: none;
  color: inherit;
  border-bottom: 3px solid var(--theme-primary);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.zs-portal-major-card:hover,
.zs-portal-major-card:focus-visible,
.zs-portal-role-card:hover,
.zs-portal-role-card:focus-visible {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  border-bottom-color: #d4a017;
}

.zs-portal-major-card .ratio img,
.zs-portal-role-card .ratio img {
  object-fit: cover;
}

.zs-portal-major-card h3,
.zs-portal-role-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0.65rem 0.85rem 0.35rem;
  line-height: 1.4;
  color: var(--theme-heading);
}

.zs-portal-major-card .major-card__foot,
.zs-portal-role-card .role-card__more {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 0.85rem 0.65rem;
  font-size: 0.8125rem;
  color: var(--theme-text-muted);
}

.zs-portal-majors-carousel {
  position: relative;
  padding: 0 clamp(0.35rem, 2.5vw, 2.75rem) 2.75rem;
}

.zs-portal-majors-carousel .carousel-indicators {
  margin-bottom: 0;
  bottom: -2.25rem;
  gap: 0.35rem;
}

.zs-portal-majors-carousel .carousel-indicators [type="button"] {
  width: 0.5rem;
  height: 0.5rem;
  margin-left: 0;
  margin-right: 0;
  border-radius: 50%;
  background-color: rgba(var(--theme-primary-rgb), 0.35);
  border: 0;
  opacity: 1;
}

.zs-portal-majors-carousel .carousel-indicators .active {
  background-color: var(--theme-primary);
}

.zs-portal-majors-carousel .carousel-control-prev,
.zs-portal-majors-carousel .carousel-control-next {
  width: 2.5rem;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  height: 2.75rem;
  opacity: 1;
}

.zs-portal-majors-carousel .carousel-control-prev {
  left: 0;
}

.zs-portal-majors-carousel .carousel-control-next {
  right: 0;
}

.zs-portal-majors-carousel .carousel-control-prev-icon,
.zs-portal-majors-carousel .carousel-control-next-icon {
  width: 2.25rem;
  height: 2.25rem;
  filter: invert(0.4) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

.zs-portal-stats {
  position: relative;
  padding: 3rem 0 3.5rem;
  background: url("../../images/zsxx-banner.png?v=20260610") center / cover no-repeat;
  color: #fff;
}

.zs-portal-stats__head {
  margin-bottom: 1.75rem;
}

.zs-portal-stats__body {
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 992px) {
  .zs-portal-stats__body {
    padding-left: 350px;
    padding-right: 100px;
  }
}

.zs-portal-stats__head h3 {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #fff;
}

.zs-portal-stats__head .lead-para {
  font-size: 0.9375rem;
  line-height: 1.75;
  opacity: 0.94;
  max-width: 36rem;
}

.zs-portal-stat-tile {
  position: relative;
  border-radius: 0.5rem;
  padding: 1.25rem 1.15rem;
  min-height: 5.5rem;
}

.zs-portal-stat-tile--light {
  background: #fff;
  color: var(--theme-heading);
}

.zs-portal-stat-tile--accent {
  background: var(--theme-primary-light);
  color: #fff;
}

/* 内部横向布局：左侧文字 + 右侧图标（居中模式） */
.zs-portal-stat-tile__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 100%;
  flex-wrap: wrap;
}

.zs-portal-stat-tile__inner .stat-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-align: center;
}

.zs-portal-stat-tile__inner .stat-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.zs-portal-stat-tile--light .stat-icon {
  background: rgba(var(--theme-primary-rgb), 0.08);
}

.zs-portal-stat-tile__inner .stat-icon .bi {
  font-size: 1.35rem;
  line-height: 1;
}

.zs-portal-stat-tile--light .stat-icon .bi {
  color: var(--theme-primary);
}

.zs-portal-stat-tile--accent .stat-icon .bi {
  color: rgba(255, 255, 255, 0.92);
}

.zs-portal-stat-tile .stat-num {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: normal;
}

.zs-portal-stat-tile .stat-num sub {
  font-size: 0.875rem;
  font-weight: 500;
  bottom: 0;
  display: inline;
  white-space: nowrap;
}

.zs-portal-stat-tile .stat-label {
  font-size: 0.8125rem;
  margin: 0;
  opacity: 0.95;
}

.zs-portal-section--campus-side {
  padding-top: 1.35rem;
  padding-bottom: 1.35rem;
}

.zs-portal-vr-wrap {
  border-radius: 0.375rem;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.zs-portal-vr-wrap .ratio {
  background: var(--theme-hero-visual-bg);
}

.zs-portal-vr-wrap .ratio img {
  object-fit: cover;
}

.zs-portal-side-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.65rem 1rem;
  background: #fff;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  color: var(--theme-heading);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.zs-portal-side-link .bi {
  font-size: 1.1rem;
  color: var(--theme-primary);
  transition: color 0.2s ease;
}

.zs-portal-side-link:hover,
.zs-portal-side-link:focus-visible {
  background: var(--theme-primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(var(--theme-primary-rgb), 0.25);
  transform: translateY(-2px);
  border-color: transparent;
}

.zs-portal-side-link:hover .bi,
.zs-portal-side-link:focus-visible .bi {
  color: #fff;
}

.zs-portal-album-card {
  display: block;
  position: relative;
  border-radius: 0.375rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
}

.zs-portal-album-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 140px;
}

.zs-portal-album-card .album-card__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem 0.75rem;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.zs-portal-album-card .album-card__bar h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  color: var(--theme-heading);
}

.zs-portal-album-card:hover .album-card__bar h4,
.zs-portal-album-card:focus-visible .album-card__bar h4 {
  color: var(--theme-primary);
}

.zs-portal-more-btn {
  border-radius: 2rem;
  padding: 0.45rem 1.35rem;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .zs-portal-quick {
    margin-top: -1.25rem;
    margin-bottom: 1.75rem;
  }

  .zs-portal-quick__icon {
    width: 26px;
    height: 26px;
  }

  .zs-portal-quick__icon .bi {
    font-size: 26px;
  }

  .zs-portal-banner .carousel-item {
    height: min(78dvh, 620px);
  }
}

@media (max-width: 767.98px) {
  .zs-portal-banner .carousel-item {
    height: min(62dvh, 460px);
  }

  .page-zs-portal .zs-portal__brand-text {
    display: none;
  }

  .zs-portal-quick__icon {
    width: 20px;
    height: 20px;
  }

  .zs-portal-quick__icon .bi {
    font-size: 20px;
  }

  .zs-portal-banner .carousel-control-prev,
  .zs-portal-banner .carousel-control-next {
    display: none;
  }
}
