/* 院系独立页：参考兄弟院校院系站（白底 + 主色蓝），仅用于 college.html */

.college-page {
  --theme-body-bg: var(--theme-surface);
  --theme-body: var(--theme-text);
  --theme-primary-light: #4f91d3;
  --college-muted-bg: color-mix(in srgb, var(--theme-primary) 6%, var(--theme-body-bg));
  --college-gold: #d4af37;
  overflow-x: hidden;
}

.page-banner--yxsz {
  height: min(52vw, 420px);
  background: url("../../images/banner1.jpg") center/cover no-repeat;
}

.yxsz-entry-main {
  padding-top: 3rem;
  padding-bottom: 4.5rem;
}

.yxsz-entry-intro {
  max-width: 48rem;
  margin-bottom: 2.25rem;
  color: var(--theme-muted);
  line-height: 1.9;
}

.college-sub-page {
  padding-top: 0;
}

/* 首屏：与首页一致为100dvh；顶栏 fixed + 自上而下的黑透渐变（layout.css · site-header-fixed--at-top） */
.college-sub-hero {
  position: relative;
  box-sizing: border-box;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  background: var(--theme-hero-bg);
}

.college-sub-head__bar.site-header-fixed {
  border-bottom: none;
  box-shadow: none;
}

.site-header-fixed:not(.site-header-fixed--at-top).college-sub-head__bar {
  box-shadow: 0 4px 24px rgba(var(--theme-primary-rgb), 0.25);
}

.college-sub-head__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.college-sub-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.college-sub-brand:hover,
.college-sub-brand:focus-visible {
  color: inherit;
  text-decoration: none;
}

.college-sub-brand__logo {
  height: auto;
  max-height: 3rem;
  width: auto;
  max-width: min(280px, 46vw);
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

@media (min-width: 992px) {
  .college-sub-brand__logo {
    max-height: 3.75rem;
    max-width: min(320px, 40vw);
  }
}

.college-sub-brand__name {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  white-space: normal;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.college-sub-toggler {
  margin-left: auto;
  padding: 0.35rem 0.5rem;
  border-color: rgba(255, 255, 255, 0.55);
}

.college-sub-toggler .navbar-toggler-icon {
  filter: invert(1);
}

.college-sub-collapse {
  flex-basis: 100%;
}

@media (min-width: 992px) {
  .college-sub-collapse {
    flex-basis: auto;
    flex-grow: 1;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem 1rem;
  }
}

.college-sub-nav {
  flex: 1 1 auto;
  min-width: 0;
}

@media (min-width: 992px) {
  .college-sub-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
  }
}

.college-sub-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
}

.college-sub-nav__list a {
  display: block;
  padding: 0.35rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.college-sub-nav__list a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.college-sub-nav__current {
  display: block;
  padding: 0.35rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 800;
  color: #fff;
  border-radius: 4px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: default;
}

@media (max-width: 991.98px) {
  .college-sub-collapse {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.375rem;
    max-height: calc(100dvh - 10rem);
    overflow-y: auto;
  }

  .site-header-fixed--at-top.college-sub-head__bar .college-sub-collapse {
    background: rgba(0, 0, 0, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--theme-primary);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  }

  .site-header-fixed:not(.site-header-fixed--at-top).college-sub-head__bar .college-sub-collapse {
    background: color-mix(in srgb, var(--theme-primary-dark) 96%, black);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  }

  .college-sub-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: 0.75rem;
  }

  .college-sub-nav__list a {
    border-radius: 0;
    padding: 0.5rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.95);
  }

  .college-sub-nav__list a:hover {
    background: rgba(255, 255, 255, 0.06);
  }
}

.college-sub-official {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--theme-primary) !important;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.95);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.college-sub-official:hover {
  background: #fff;
  border-color: #fff;
  color: var(--theme-primary-dark) !important;
}

.site-header-fixed:not(.site-header-fixed--at-top) .college-sub-official {
  background: #fff;
  border-color: #fff;
  color: var(--theme-primary) !important;
}

.site-header-fixed:not(.site-header-fixed--at-top) .college-sub-official:hover {
  color: var(--theme-primary-dark) !important;
}

.college-sub-banner {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--theme-hero-visual-bg);
}

.college-sub-banner img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

#sec-majors,
#sec-news,
#sec-notices,
#sec-awards,
#sec-students,
#sec-labs,
#sec-coop,
#sec-training {
  scroll-margin-top: 6rem;
}

@media (min-width: 992px) {
  #sec-majors,
  #sec-news,
  #sec-notices,
  #sec-awards,
  #sec-students,
  #sec-labs,
  #sec-coop,
  #sec-training {
    scroll-margin-top: 6.75rem;
  }
}

/* 二级学院 · 通知公告列表页内容区 */
.college-notice-list-page__panel {
  background: #fff;
  border: 1px solid var(--theme-border-light);
  border-radius: 4px;
  padding: 0.25rem 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.college-notice-list-page__panel .college-notice-list li:last-child {
  border-bottom: none;
}

.college-section--split-top {
  padding-top: 0;
  padding-bottom: 1.75rem;
}

@media (min-width: 992px) {
  .college-section--split-top {
    padding-bottom: 2.25rem;
  }
}

.college-section {
  padding: 2.5rem 0;
}

/* 浅底色区块铺满视口宽度，内容仍受外层 .container 限制 */
.college-sub-page main .container > section.college-section--muted {
  position: relative;
  z-index: 0;
  background: transparent;
  isolation: isolate;
}

.college-sub-page main .container > section.college-section--muted::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 100vw;
  max-width: 100vw;
  transform: translateX(-50%);
  background: var(--college-muted-bg);
  z-index: -1;
  pointer-events: none;
}

.college-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--theme-primary);
}

.college-section__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--theme-heading);
}

.college-section__more {
  font-size: 0.9rem;
  color: var(--theme-primary);
  text-decoration: none;
  white-space: nowrap;
}

.college-section__more:hover {
  text-decoration: underline;
}

.college-section__empty {
  padding: 2rem 1rem;
  border: 1px dashed rgba(var(--theme-primary-rgb), 0.2);
  border-radius: 0.5rem;
  color: var(--theme-text-muted);
  text-align: center;
  background: rgba(var(--theme-primary-rgb), 0.03);
}

.college-majors-section .college-majors__intro {
  margin-bottom: 0;
  max-width: 58rem;
  line-height: 1.65;
}

.college-majors__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  border: none;
  padding: 0;
  margin: 0;
}

.college-majors__tabs .nav-item {
  margin: 0;
}

.college-majors__tabs .nav-link {
  border: none;
  border-radius: 999px;
  color: color-mix(in srgb, var(--theme-body) 78%, var(--theme-heading));
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.35rem 0.95rem;
  background: color-mix(in srgb, var(--theme-body-bg) 35%, transparent);
  transition: color 0.15s ease, background 0.15s ease;
}

.college-majors__tabs .nav-link:hover {
  color: var(--theme-primary-dark);
  background: color-mix(in srgb, var(--theme-primary) 10%, transparent);
}

.college-majors__tabs .nav-link:focus-visible {
  outline: 2px solid var(--theme-primary);
  outline-offset: 2px;
}

.college-majors__tabs .nav-link.active {
  color: var(--theme-primary-dark);
  background: color-mix(in srgb, var(--theme-primary) 14%, transparent);
}

.college-majors__panes {
  border: none;
  border-radius: 0;
  padding: 1.1rem 0 0 !important;
  margin: 0;
  background: transparent;
  min-height: 0;
}

.college-majors__panes .tab-pane {
  margin: 0;
  line-height: 1.75;
  color: var(--theme-body);
}

.college-majors-panel {
  display: grid;
  gap: 1.15rem;
  align-items: start;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .college-majors-panel {
    grid-template-columns: minmax(0, 15.5rem) minmax(0, 1fr);
    gap: 1.35rem;
  }
}

.college-majors-panel__media {
  display: block;
  border-radius: 0.45rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.college-majors-panel__media:hover {
  box-shadow: 0 10px 28px rgba(var(--theme-primary-rgb), 0.12);
  transform: translateY(-1px);
}

.college-majors-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
}

.college-majors-panel__body {
  min-width: 0;
}

.college-majors-panel__text {
  margin: 0 0 0.85rem;
  color: color-mix(in srgb, var(--theme-body) 92%, var(--theme-heading));
}

.college-majors-panel__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--theme-primary);
  text-decoration: none;
}

.college-majors-panel__more:hover {
  color: var(--theme-primary-dark);
  text-decoration: underline;
}

.college-majors-panel__more .bi {
  font-size: 1rem;
  transition: transform 0.15s ease;
}

.college-majors-panel__more:hover .bi {
  transform: translateX(3px);
}

/* 学院资讯：大图轮播 + 右侧竖卡 + 底部三卡（参考兄弟院校排版） */
.college-news-mosaic__top {
  min-height: 240px;
}

@media (min-width: 992px) {
  .college-news-mosaic__top {
    min-height: 300px;
  }
}

.college-news-mosaic__bottom {
  margin-top: 1.5rem;
}

@media (min-width: 992px) {
  .college-news-mosaic__bottom {
    margin-top: 2rem;
  }
}

.college-news-carousel {
  position: relative;
  height: 100%;
  min-height: 240px;
  overflow: hidden;
  background: var(--theme-hero-visual-bg);
}

@media (min-width: 992px) {
  .college-news-carousel {
    min-height: 300px;
  }
}

.college-news-carousel .carousel-inner {
  height: 100%;
  min-height: inherit;
}

.college-news-carousel .carousel-item {
  height: 100%;
  min-height: inherit;
}

.college-news-carousel__slide {
  display: block;
  position: relative;
  height: 100%;
  min-height: 240px;
  color: #fff;
  text-decoration: none;
}

@media (min-width: 992px) {
  .college-news-carousel__slide {
    min-height: 300px;
  }
}

.college-news-carousel__slide img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.college-news-carousel__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1rem 5rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}

.college-news-carousel__title {
  margin: 0 0 0.35rem;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 700;
  line-height: 1.35;
}

.college-news-carousel__date {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.92;
}

.college-news-carousel__indicators {
  position: absolute;
  left: auto;
  right: 0.65rem;
  bottom: 0.65rem;
  margin: 0;
  z-index: 2;
  justify-content: flex-end;
  gap: 0.35rem;
}

.college-news-carousel__indicators [data-bs-target] {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin: 0;
  background-color: #fff;
  opacity: 0.45;
  border: none;
}

.college-news-carousel__indicators [data-bs-target].active {
  opacity: 1;
}

.college-news-spotlight {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 240px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--theme-border-light);
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s, border-color 0.2s;
}

@media (min-width: 992px) {
  .college-news-spotlight {
    min-height: 300px;
  }
}

.college-news-spotlight:hover {
  border-color: color-mix(in srgb, var(--theme-primary) 25%, var(--theme-border-light));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  color: inherit;
}

.college-news-spotlight__media {
  position: relative;
  flex: 1 1 52%;
  min-height: 0;
  background: var(--theme-hero-visual-bg);
}

.college-news-spotlight__media img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.college-news-spotlight__panel {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1rem 0.75rem;
  color: var(--theme-text);
  background: #fff;
}

.college-news-spotlight__title {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--theme-heading);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.college-news-spotlight__time {
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--theme-text-muted);
}

.college-news-mini {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--theme-border-light);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.college-news-mini:hover {
  border-color: color-mix(in srgb, var(--theme-primary) 35%, var(--theme-border-light));
  box-shadow: 0 4px 14px rgba(var(--theme-primary-rgb), 0.1);
  color: inherit;
}

.college-news-mini__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1rem 1rem 0.85rem;
  min-height: 0;
}

.college-news-mini__title {
  margin: 0 0 0.5rem 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--theme-heading);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.college-news-mini__summary {
  margin: 0 0 0.65rem 0;
  font-size: 0.8125rem;
  color: var(--theme-text-muted);
  line-height: 1.55;
  flex: 1 1 auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.college-news-mini__time {
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--theme-text-muted);
}

/* 通知公告 */
.college-notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.college-notice-list li {
  border-bottom: 1px solid var(--theme-border-light);
}

.college-notice-list a {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0;
  text-decoration: none;
  color: inherit;
  font-size: 0.9rem;
  transition: color 0.15s, background 0.15s;
}

.college-notice-list a:hover {
  color: var(--theme-primary);
  background: color-mix(in srgb, var(--theme-primary) 4%, transparent);
}

.college-notice-list__date {
  flex: 0 0 5.5rem;
  color: var(--theme-text-muted);
  font-size: 0.8rem;
}

.college-notice-list__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 学院获奖 */
.college-award-slide .row {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.college-award-card {
  display: flex;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(var(--theme-primary-rgb), 0.08);
  border: 1px solid var(--theme-border-light);
  height: 100%;
  min-height: 5.5rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.college-award-card:hover {
  box-shadow: 0 4px 20px rgba(var(--theme-primary-rgb), 0.14);
  border-color: color-mix(in srgb, var(--theme-primary) 35%, var(--theme-border-light));
}

.college-award-card__date {
  flex: 0 0 4.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--college-muted-bg);
  color: var(--theme-primary);
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}

.college-award-card:hover .college-award-card__date {
  background: var(--theme-primary);
  color: #fff;
}

.college-award-card:hover .college-award-card__date span:last-child {
  color: var(--college-gold);
}

.college-award-card__date span:first-child {
  font-size: 1.35rem;
  line-height: 1;
}

.college-award-card__date span:last-child {
  font-size: 0.75rem;
  margin-top: 0.2rem;
  font-weight: 600;
  opacity: 0.95;
  transition: color 0.2s;
}

.college-award-card__body {
  flex: 1;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--theme-heading);
}

.college-award .carousel-indicators {
  position: static;
  margin: 1rem 0 0;
}

.college-award .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--theme-primary);
  opacity: 0.35;
}

.college-award .carousel-indicators .active {
  opacity: 1;
}

/* 优秀学子 */
.college-student-card {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(var(--theme-primary-rgb), 0.08);
  border: 1px solid var(--theme-border-light);
  height: 100%;
}

/* 横向配图：固定宽幅比例，避免竖图占位 */
.college-student-card__photo {
  flex: 0 0 auto;
  width: clamp(140px, 42%, 280px);
  aspect-ratio: 16 / 10;
  position: relative;
  background: linear-gradient(135deg, var(--theme-primary-light), var(--theme-primary));
}

.college-student-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.12), transparent 55%);
  pointer-events: none;
}

.college-student-card__photo img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.college-student-card__body {
  flex: 1;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.college-student-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--theme-heading);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.college-student-card__summary {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  color: var(--theme-text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.college-student-card__meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--theme-text-muted);
}

/* 首页三列：上图下文，便于窄栏排版 */
.college-student-card--vertical {
  flex-direction: column;
}

.college-student-card--vertical .college-student-card__photo {
  flex: none;
  width: 100%;
  max-width: none;
}

.college-student-card--vertical .college-student-card__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  min-height: 0;
  object-fit: cover;
}

.college-student-card--vertical .college-student-card__body {
  flex: 1 1 auto;
}

.college-student-card-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.college-student-card-link:hover .college-student-card {
  border-color: color-mix(in srgb, var(--theme-primary) 35%, var(--theme-border-light));
  box-shadow: 0 8px 28px rgba(var(--theme-primary-rgb), 0.14);
}

.college-student-card-link:focus-visible {
  outline: 2px solid var(--theme-primary);
  outline-offset: 2px;
}

/* 优秀学子列表页：图文卡片 */
.college-student-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.college-student-feed__link {
  display: flex;
  flex-direction: row;
  gap: 0;
  min-height: 0;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 6px;
  border: 1px solid var(--theme-border-light);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.college-student-feed__link:hover {
  border-color: color-mix(in srgb, var(--theme-primary) 35%, var(--theme-border-light));
  box-shadow: 0 8px 28px rgba(var(--theme-primary-rgb), 0.12);
  color: inherit;
}

.college-student-feed__media {
  flex: 0 0 38%;
  max-width: 280px;
  min-width: 140px;
  position: relative;
  background: linear-gradient(135deg, var(--theme-primary-light), var(--theme-primary));
}

.college-student-feed__media img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
}

.college-student-feed__body {
  flex: 1;
  min-width: 0;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.college-student-feed__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--theme-heading);
  line-height: 1.35;
}

.college-student-feed__summary {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: var(--theme-text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.college-student-feed__meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--theme-text-muted);
}

@media (max-width: 575.98px) {
  .college-student-feed__link {
    flex-direction: column;
  }

  .college-student-feed__media {
    flex: none;
    max-width: none;
    width: 100%;
  }

  .college-student-feed__media img {
    min-height: 200px;
    aspect-ratio: 16 / 10;
    height: auto;
  }
}

/* 实训条件：Cover Flow 层叠轮播（Swiper） */
.college-lab-coverflow {
  position: relative;
  margin-left: 0;
  margin-right: 0;
  padding: 0.35rem 2.75rem 0.75rem;
  overflow: hidden;
}

@media (min-width: 992px) {
  .college-lab-coverflow {
    padding-left: 3.25rem;
    padding-right: 3.25rem;
  }
}

.college-lab-swiper {
  overflow: hidden;
  padding-bottom: 0.35rem;
}

.college-lab-swiper .swiper-slide {
  width: min(88vw, 820px);
  height: auto;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .college-lab-swiper .swiper-slide {
    width: min(68%, 900px);
  }
}

.college-lab-slide {
  display: block;
  position: relative;
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.college-lab-swiper .swiper-slide:not(.swiper-slide-active) .college-lab-slide {
  opacity: 0.82;
  filter: brightness(0.97);
}

.college-lab-slide img {
  width: 100%;
  aspect-ratio: 4 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
}

.college-lab-slide__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 1rem 0.75rem 0.65rem;
  text-align: center;
  font-size: clamp(0.9rem, 2.2vw, 1.2rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 42%, transparent 100%);
  pointer-events: none;
}

.college-lab-swiper .college-lab-swiper__btn {
  --swiper-navigation-size: 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #c8c8c8;
  color: var(--theme-primary);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.college-lab-swiper .college-lab-swiper__btn::after {
  display: none;
}

.college-lab-swiper .college-lab-swiper__btn i {
  font-size: 1.35rem;
  line-height: 1;
}

.college-lab-swiper .college-lab-swiper__btn--prev {
  left: 0.35rem;
}

.college-lab-swiper .college-lab-swiper__btn--next {
  right: 0.35rem;
}

@media (min-width: 992px) {
  .college-lab-swiper .college-lab-swiper__btn--prev {
    left: 0.6rem;
  }

  .college-lab-swiper .college-lab-swiper__btn--next {
    right: 0.6rem;
  }
}

.college-lab-swiper .college-lab-swiper__btn:hover {
  background: #fff;
  border-color: color-mix(in srgb, var(--theme-primary) 45%, #c8c8c8);
  color: var(--theme-primary);
}

.college-lab-swiper .college-lab-swiper__btn.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* 院系入口页卡片 */
.college-hub-card {
  display: block;
  height: 100%;
  padding: 1.25rem 1.35rem;
  border-radius: 4px;
  border: 1px solid var(--theme-border-light);
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.college-hub-card:hover {
  border-color: color-mix(in srgb, var(--theme-primary) 40%, var(--theme-border-light));
  box-shadow: 0 6px 24px rgba(var(--theme-primary-rgb), 0.12);
  transform: translateY(-2px);
  color: inherit;
}

.college-hub-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--theme-primary);
}

.college-hub-card__desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--theme-text-muted);
  line-height: 1.5;
}

.college-template-summary {
  max-width: 58rem;
  margin-bottom: 2rem;
}

.college-template-summary__title {
  margin: 0 0 0.85rem;
  color: var(--theme-heading);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
}

.college-template-summary__desc {
  margin: 0;
  color: var(--theme-muted);
  line-height: 1.9;
}

.college-notice-list__entry {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0;
  color: inherit;
  font-size: 0.9rem;
  transition: color 0.15s, background 0.15s;
}

.college-notice-list__entry:hover {
  color: var(--theme-primary);
  background: color-mix(in srgb, var(--theme-primary) 4%, transparent);
}

/* ===== 专业卡片（Swiper 轮播） ===== */
.major-card {
  transition: 0.2s;
  height: 340px !important;
  display: flex;
  flex-direction: column;
  border: none !important;
  border-radius: 0.375rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  width: 100% !important;
}

.major-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.major-card a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.major-card__img {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* 学院荣誉：图片比例 16:9 */
.college-award .major-card__img {
  aspect-ratio: 16 / 9;
}

.major-card__img img {
  width: 100%;
  height: 100% !important;
  object-fit: fill !important;
  display: block;
}

.major-card__img .cms-image-placeholder {
  height: 100% !important;
  width: 100%;
}

.major-card .p-3 {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  background: #fff;
  width: 100%;
}

.major-card__title {
  margin: 0 0 0.5rem 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--theme-heading);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.major-card__summary {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--theme-text-muted);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 专业 Swiper 容器 */
.college-major-swiper {
  padding: 0;
  position: relative;
}

.college-major-swiper .swiper-slide {
  width: 25% !important;
  box-sizing: border-box;
  padding: 0 8px;
}

.college-major-swiper .swiper-wrapper {
  gap: 0;
}

/* 前后翻页按钮 */
.major-prev,
.major-next {
  width: 26px;
  height: 26px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 50%;
  color: #333;
  transition: opacity 0.2s ease;
  z-index: 10;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.major-prev {
  left: 10px;
}

.major-next {
  right: 10px;
}

.major-prev:after,
.major-next:after {
  font-size: 14px;
}

.major-prev.swiper-button-disabled,
.major-next.swiper-button-disabled {
  opacity: 0.35 !important;
  pointer-events: none !important;
  cursor: default !important;
}

@media (max-width: 991.98px) {
  .college-template-summary {
    margin-bottom: 1.6rem;
  }
}
/* ===== 移动端 Banner：横图按 16:9 比例显示，不撑满全屏 ===== */
@media (max-width: 991.98px) {
  .college-sub-hero {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  .college-sub-banner {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
  }

  .college-sub-banner .carousel,
  .college-sub-banner .carousel-inner,
  .college-sub-banner .carousel-item {
    height: 100% !important;
  }

  .college-sub-banner img,
  .college-sub-banner .page-banner__image {
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }

  .college-major-swiper .swiper-slide {
    width: 100% !important;
    padding: 0 !important;
  }

  .major-card {
    height: auto !important;
  }

  .major-prev,
  .major-next {
    width: 32px;
    height: 32px;
  }

  .major-prev:after,
  .major-next:after {
    font-size: 16px;
  }

  .major-prev {
    left: 4px;
  }

  .major-next {
    right: 4px;
  }

  /* 学院资讯卡片：移动端去掉强制撑高 */
  .college-news-mini {
    height: auto !important;
  }

  .college-news-mini__body {
    flex: 0 0 auto;
  }

  .college-news-mini__summary {
    flex: 0 0 auto;
  }

  .college-news-spotlight {
    min-height: 0;
  }

  .college-news-spotlight__media {
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
    min-height: 180px;
  }

  .college-news-spotlight__panel {
    flex: 0 0 auto;
  }
}

