/* Members页面专用样式 */

/* Members Banner */
.members_s1_div {
  background-image: url('https://static.igem.wiki/teams/5721/img/mem-banner-photo1.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.5s ease-in-out;
}

.members_s1_div.switching {
  background-image: url('https://static.igem.wiki/teams/5721/img/mem-banner-photo2.webp');
}

/* Members区域样式 */
.members-section {
  width: 60%;
  justify-content: center;
  display: flex;
  margin: 0 auto;
  margin-top: 1%;
}

.members-section.dry-lab {
  margin-top: 4%;
}

/* Members横线样式 */
.members-line {
  background-image: url('https://static.igem.wiki/teams/5721/img/members-line.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 10px;
  height: 1px;
  width: 100%;
}

/* Members标题样式 */
.members-section-title {
  display: block;
  font-family: Arial-BoldMT;
  font-weight: bold;
  font-size: 20px;
  color: #333333;
  line-height: 38px;
  text-align: left;
  width: 100%;
}

/* Members成员卡片样式 */
.members-member-card {
  display: flex;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.members-photo-container {
  flex: 0 0 150px;
  margin-right: 20px;
  display: flex;
  align-items: center;
}

.members-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.members-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.members-name {
  font-family: Arial-BoldMT;
  font-weight: bold;
  font-size: 24px;
  color: #333;
  margin-bottom: 15px;
}

.members-intro {
  font-family: ArialMT;
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  text-align: justify;
}


/* Members页面响应式适配 */
@media (max-width: 1200px) {
    .members_s1_div {
        height: 800px !important;
    }
}

@media (max-width: 992px) {
    .members_s1_div {
        height: 700px !important;
    }
}

@media (max-width: 768px) {
    .members_s1_div {
        height: 600px !important;
    }
}

@media (max-width: 576px) {
    .members_s1_div {
        height: 500px !important;
    }
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    .members_s1_div {
        filter: brightness(0.8) contrast(1.1);
    }
}
