.xsgz-body {
  background: #fff;
  overflow-x: hidden;
}

.xsgz-body #sec-dynamics,
.xsgz-body #sec-activities,
.xsgz-body #sec-honor,
.xsgz-body #sec-aid,
.xsgz-body #sec-enlistment,
.xsgz-body #sec-mental,
.xsgz-body #album {
  scroll-margin-top: 7.25rem;
}

.xsgz-banner {
  position: relative;
  height: 100vh;
  min-height: 460px;
  max-height: 100vh;
  overflow: hidden;
  background: var(--theme-hero-visual-bg);
}

.xsgz-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.xsgz-main {
  background: #fff;
}

.xsgz-jump-bar {
  background: color-mix(in srgb, var(--theme-primary) 6%, #fff);
  border-bottom: 1px solid var(--theme-border-light);
  padding: 0.75rem 0;
}

.xsgz-jump-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.7rem;
  font-size: 0.875rem;
}

.xsgz-jump-bar a {
  color: var(--theme-primary);
  text-decoration: none;
  font-weight: 600;
  padding: 0.25rem 0.45rem;
  border-radius: 0.2rem;
}

.xsgz-jump-bar a:hover,
.xsgz-jump-bar a:focus-visible {
  background: color-mix(in srgb, var(--theme-primary) 10%, transparent);
  text-decoration: underline;
}

.xsgz-jump-bar__sep {
  color: var(--theme-border-subtle);
  user-select: none;
  font-weight: 300;
}

.xsgz-act-section {
  padding: 2.5rem 0 2.75rem;
}

.xsgz-act-section--muted {
  background: color-mix(in srgb, var(--theme-section-muted-bg) 45%, #fff);
}

.xsgz-act-title {
  margin-bottom: 1.35rem;
  text-align: center;
}

.xsgz-act-title--left {
  text-align: left;
}

.xsgz-act-title__en {
  margin-bottom: 0.35rem;
  color: var(--theme-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.xsgz-act-title__en span {
  margin-left: 0.35rem;
  color: var(--theme-primary);
}

.xsgz-act-title h2 {
  display: inline-block;
  min-width: min(100%, 12rem);
  margin: 0 auto;
  padding-bottom: 0.65rem;
  border-bottom: 3px solid var(--theme-primary);
  color: var(--theme-heading);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 800;
}

.xsgz-act-title--left h2 {
  margin: 0;
}

.xsgz-dynamics-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.xsgz-dynamics-header .xsgz-act-title {
  margin-bottom: 0;
  flex: 0 1 auto;
  text-align: center;
}

.xsgz-dynamics-header .xsgz-act-title h2 {
  margin: 0 auto;
}

.xsgz-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.xsgz-section-head .xsgz-act-title {
  margin-bottom: 0;
  text-align: left;
}

.xsgz-section-head .xsgz-act-title h2 {
  margin: 0;
}

.xsgz-view-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--theme-primary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: color 0.2s ease, gap 0.2s ease;
}

.xsgz-view-more:hover,
.xsgz-view-more:focus-visible {
  color: var(--theme-primary-dark);
  gap: 0.5rem;
}

.xsgz-view-more--inline {
  position: static;
  top: auto;
  right: auto;
  transform: none;
  flex-shrink: 0;
}

.xsgz-empty {
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--theme-text-muted);
  background: #fff;
  border: 1px solid var(--theme-border-light);
  border-radius: 0.375rem;
}

@media (max-width: 991.98px) {
  .xsgz-banner {
    height: min(78dvh, 620px);
  }

  .xsgz-body #sec-dynamics,
  .xsgz-body #sec-activities,
  .xsgz-body #sec-honor,
  .xsgz-body #sec-aid,
  .xsgz-body #sec-enlistment,
  .xsgz-body #sec-mental,
  .xsgz-body #album {
    scroll-margin-top: 6.7rem;
  }
}

@media (max-width: 767.98px) {
  .xsgz-banner {
    min-height: 320px;
    height: min(62dvh, 460px);
  }

  .xsgz-jump-bar__inner {
    justify-content: flex-start;
  }

  .xsgz-section-head,
  .xsgz-dynamics-header {
    flex-direction: column;
    align-items: center;
  }

  .xsgz-section-head .xsgz-act-title {
    text-align: center;
  }

  .xsgz-section-head .xsgz-act-title h2 {
    margin: 0 auto;
  }

  .xsgz-view-more {
    position: static;
    transform: none;
  }
}

/* ================================================
   图文卡片 — 奖助学金 / 征兵入伍 / 心理健康教育
   ================================================ */
.xsgz-imgtext-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .25s ease, transform .25s ease;
}
.xsgz-imgtext-card:hover,
.xsgz-imgtext-card:focus-visible {
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  transform: translateY(-3px);
  color: inherit;
  text-decoration: none;
}
.xsgz-imgtext-card__img {
  width: 100%;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  background: var(--theme-border-light, #eee);
  flex-shrink: 0;
}
.xsgz-imgtext-card__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.xsgz-imgtext-card:hover .xsgz-imgtext-card__img img {
  transform: scale(1.04);
}
.xsgz-imgtext-card__img .cms-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  color: var(--theme-text-muted, #aaa);
  font-size: .8rem;
}
.xsgz-imgtext-card__img .cms-image-placeholder .cms-image-placeholder__icon {
  font-size: 2rem;
  opacity: .4;
}
.xsgz-imgtext-card__body {
  padding: .85rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.xsgz-imgtext-card__title {
  margin: 0;
  font-size: clamp(.875rem, 1.5vw, 1rem);
  font-weight: 700;
  color: var(--theme-heading, #222);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.xsgz-imgtext-card__desc {
  margin: 0;
  font-size: .8125rem;
  color: var(--theme-text-muted, #666);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .xsgz-imgtext-grid .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}
@media (max-width: 479.98px) {
  .xsgz-imgtext-grid .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
