html {
  background: #6c7989;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 50px 0;
  color: #555;
  font: 14px/1.5 Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
}

.wrapper {
  width: 980px;
  margin: 0 auto;
  overflow: hidden;
  background: #ededed;
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, .2) 0 0 0 1px, rgba(0, 0, 0, .45) 0 3px 10px;
}

header, section, footer {
  display: block;
}

.topnav {
  position: sticky;
  z-index: 1000;
  top: 0;
  overflow: hidden;
  background-color: #245894;
  border-radius: 8px 8px 0 0;
}

.topnav a {
  float: left;
  padding: 10px;
  color: #f2f2f2;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
}

.topnav a:hover {
  color: #f2f2f2;
  background-color: #4379ca;
  transition: .3s all;
}

.topnav a.active {
  color: #069;
  background-color: #ededed;
}

.topnav .icon {
  display: none;
  font-size: 17px;
  line-height: 21px;
}

section {
  position: relative;
  padding: 15px 20px 24px;
  border-top: 1px solid #fff;
  background: linear-gradient(#fafafa, #dedede 700px);
}

.profile-intro {
  min-height: 160px;
}

.profile-photo {
  float: right;
  width: auto;
  height: 140px;
  margin: 0 0 14px 22px;
}

#admysenseHeader {
  margin: 0;
  color: #069;
  text-shadow: #fff 0 1px 0;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: break-word;
}

p {
  margin: 0 0 20px;
  padding: 0;
}

b {
  color: #494949;
  font-weight: 700;
}

h2 {
  margin: 30px 0 10px;
  padding: 0;
  color: #494949;
  font-size: 24px;
  line-height: 1.1;
}

hr {
  height: 1px;
  margin: 0 0 24px;
  border: 0;
  background: #aaa;
}

a {
  color: #069;
  text-decoration: none;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 34px 22px;
  align-items: start;
  margin-bottom: 34px;
}

.member-card {
  min-width: 0;
  text-align: center;
}

.member-photo {
  display: block;
  width: 100%;
  aspect-ratio: 130 / 185;
  margin: 0 auto 10px;
  border: 1px solid rgba(0, 0, 0, .09);
  background: #d9dee4;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 2px 7px rgba(24, 42, 61, .13);
}

.member-placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  border: 0;
  background: linear-gradient(145deg, #7392b5, #245894);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

.member-name {
  color: #069;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.member-role {
  margin-top: 2px;
  color: #555;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.alumni-grid .member-role {
  min-height: 3.6em;
}

.divcss5 {
  min-height: 0;
}

footer {
  width: 640px;
  margin: 0 auto;
  padding: 10px 0 0;
  color: #ccc;
  overflow: hidden;
}

footer a {
  color: #fff;
}

footer p {
  float: left;
  margin: 0 0 20px;
  font-size: 12px;
}

footer p + p {
  float: right;
}

@media screen and (max-width: 900px) {
  .wrapper {
    width: calc(100% - 32px);
  }

  .members-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media screen and (max-width: 640px) {
  body {
    padding: 0;
  }

  .wrapper {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .topnav {
    border-radius: 0;
  }

  .topnav a:not(:first-child) {
    display: none;
  }

  .topnav a.icon {
    display: block;
    float: right;
  }

  .topnav.responsive {
    position: relative;
  }

  .topnav.responsive .icon {
    position: absolute;
    top: 0;
    right: 0;
  }

  .topnav.responsive a {
    display: block;
    float: none;
    text-align: left;
  }

  section {
    padding: 15px 18px 24px;
  }

  .profile-photo {
    height: 118px;
    margin-left: 16px;
  }

  #admysenseHeader {
    font-size: 32px;
  }

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

  footer {
    width: auto;
    padding: 20px;
  }

  footer p,
  footer p + p {
    float: none;
    margin: 0;
  }
}

@media print {
  body {
    padding: 0;
  }

  .wrapper {
    width: 100%;
    box-shadow: none;
  }
}


.member-photo-wrap {
  position: relative;
  overflow: hidden;
  line-height: 0;
  font-size: 0;
  height: fit-content;   /* 容器高度 = 图片高度 */
}

/* 照片底部的小透明文字框 */
.member-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 4px 6px;
  font-size: 11px;
  line-height: 1.3;
  color: #fff;
  text-align: center;
  background: rgba(0, 0, 0, 0.15);   /* 半透明黑底，改数字可调透明度 */
  backdrop-filter: blur(4px); 
}

.member-photo {
  display: block;        /* 关键：让 img 变为块级元素 */
  width: 100%;
  /* 保留你原有的其他样式 */
}

.member-photo-wrap {
  position: relative;
  overflow: hidden;
  line-height: 0;
  font-size: 0;
  /* 删除 height: fit-content，改为和图片一样的宽高比 */
  aspect-ratio: 3 / 4;   /* 数值改成和你原 .member-photo 一致 */
}

.member-photo {
  display: block;
  width: 100%;
  height: 100%;         /* 填满容器 */
  object-fit: cover;    /* 等比裁剪，保持不变形 */
}

.member-card > a {
  display: block;        /* 让链接占满卡片宽度，和原来布局一致 */
  text-decoration: none;
}
