@charset "utf-8";

/* 首页模块五：70年·校庆 */
.module-media {
  position: relative;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  padding: 96px 0 28px;
}

.module-media__bg {
  position: absolute;
  inset: 0;
  background-color: #eef4fa;
  background-image: var(--module-bg-image, url("/images/default-cover.jpg"));
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.module-media__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.48) 55%,
    rgba(255, 255, 255, 0.58) 100%
  );
}

.module-media__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 100px 0 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 标题 */
.module-media__head {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  flex-shrink: 0;
}

.module-media__title {
  flex: 1;
  text-align: center;
}

.module-media__icon {
  display: block;
  margin: 0 auto 8px;
  color: #2a6cb5;
}

.module-media__title-cn {
  font-size: 34px;
  font-weight: bold;
  color: #2a6cb5;
  letter-spacing: 0.15em;
  line-height: 1.2;
}

.module-media__title-en {
  margin-top: 10px;
  font-size: 12px;
  color: #8fa8be;
  letter-spacing: 0.35em;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.module-media__title-en::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 110px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #2a6cb5, transparent);
}

/* 主体：3列×2行 4:3 卡片 + 右侧查看更多 */
.module-media__body {
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex: 0 0 auto;
  min-height: 0;
  max-height: none;
  width: 100%;
}

.module-media__grid {
  --media-grid-gap: 12px;
  flex: 1 1 auto;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto;
  grid-template-areas: none;
  gap: var(--media-grid-gap);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  aspect-ratio: unset;
  height: auto;
  overflow: visible;
  align-self: stretch;
  box-sizing: border-box;
}

.media-item {
  min-height: 0;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  display: flex;
}

.media-card {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  flex: none;
  min-height: 0;
  background: #dde5ec;
  text-decoration: none;
}

.media-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #dde5ec;
  transition: transform 0.5s ease;
}

.media-card:hover img {
  transform: scale(1.05);
}

.media-card__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.68));
  z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 右侧竖排「查看更多」— 仅文字，无社交图标 */
.module-media__more {
  flex-shrink: 0;
  width: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-bottom: 8px;
  text-decoration: none;
  color: #666;
  transition: color 0.2s;
}

.module-media__more:hover {
  color: #2a6cb5;
}

.module-media__more-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 14px;
  letter-spacing: 0.2em;
}

.module-media__more-arrow {
  font-size: 16px;
  line-height: 1;
  opacity: 0.7;
}

@media (max-width: 992px) {
  .module-media__inner {
    padding: 0 20px;
    max-height: none;
    overflow: visible;
  }

  .module-media__body {
    flex-direction: column;
    max-height: none;
    width: 100%;
  }

  .module-media__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    aspect-ratio: unset;
    max-height: none;
    width: 100%;
  }

  .module-media__grid > .media-item:nth-child(n) {
    grid-area: auto;
    grid-column: auto;
  }

  .media-item {
    overflow: visible;
    display: block;
  }

  .media-card {
    aspect-ratio: unset;
    height: auto;
    overflow: visible;
    background: transparent;
  }

  .media-card img {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .media-card__cap {
    position: static;
    padding: 8px 2px 0;
    font-size: 13px;
    line-height: 1.5;
    color: #1a3a5c;
    background: none;
    min-height: 2.8em;
  }

  .module-media__more {
    width: auto;
    flex-direction: row;
    justify-content: center;
    padding: 16px 0;
  }

  .module-media__more-text {
    writing-mode: horizontal-tb;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 640px) {
  .module-media {
    padding-top: 84px;
  }

  .module-media__title-cn {
    font-size: 26px;
  }

  .module-media__head {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .module-media__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .module-media__grid > .media-item:nth-child(n) {
    grid-area: auto;
    grid-column: auto;
  }
}
