/* 此css文件仅用作members */

div {
    display: block;
    unicode-bidi: isolate;
}

p {
    margin: 10px 0;
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}

.col-8 {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.part {
    margin: 60px 0 0 0;
    width: 100%;
}

.part .h1-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 40px 0;
    }

.part .h1-wrapper h1 {
    position: relative;
    font-size: 40px;
    font-family: 'Prompt', sans-serif;
}

.part .line {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px !important;
    row-gap: 30px !important;
    column-gap: 50px;
}

.line:first-of-type {
    /* 计算2个卡片的最大宽度（包含间距） */
    max-width: calc(280px * 2 + 80px);
    margin: 0 auto; /* 居中显示 */
}

.line:not(:first-of-type) {
    /* 计算3个卡片的最大宽度（包含间距） */
    max-width: calc(280px * 3 + 80px * 2);
    margin: 0 auto; /* 居中显示 */
}


.card {
    position: relative;
    background-color: rgb(152, 32, 32);
    width: 280px;
    border-radius: 20px;
    padding: 2px;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 280px;
    gap: 10px;
    transition: 1s;
    overflow: visible;
}

.card .exit {
  top: 8px;
  right: 20px;
  position: absolute;
  width: 20px;
  height: 20px;
  z-index: 3;
}

.card .exit img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.6;
  transition: opacity 0.3s;
}

/* 鼠标悬停时变亮 */
.card:hover .exit img {
  opacity: 1;
}

.card .duty {
    position: absolute;
    border-radius: 4px;
    top: 10px;
    left: 20px;
}


.card .duty h3 {
    font-size: 18px;
    font-family: 'Prompt', sans-serif;
    color: white;
    margin: 0;
}

.card .mid {
    position: relative;
    background-color: white;
    width: 95%;
    aspect-ratio: 1.5;
    padding: 0;
    margin: 0;
    border: none;
    overflow: hidden;
    border-radius: 15px;
}

.card .mid .portrait {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .portrait {
    opacity: 0.5; 
    filter: blur(1px); /* 添加模糊效果 */
}

.card .mid .box {
    position: absolute;
    box-sizing: border-box;
    height: 100%;
    width: 100%;
    padding: 20px 15px;
    z-index: 0;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    transform: translateY(15px); 
    /* 延长过渡动画时间并添加缓动函数，使变化更平滑 */
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    /* 超出高度时显示滚动条 */
    overflow-y: auto;
    /* 优化滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.2) transparent;
}

.card .mid .box::-webkit-scrollbar {
    width: 6px;
}

.card .mid .box::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.card .mid .box::-webkit-scrollbar-track {
    background: transparent;
}

.card:hover .mid .box {
    opacity: 1;
    z-index: 2;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.card .mid .box p {
    width: 100%;
    text-align: center;
    padding-left: 0;
    margin: 8px 0;
    font-family: 'Proza Libre', serif;
}

.card .mid .box p:first-child {
  margin-top: 0; 
  padding-top: 5px;
}

.card .bottom {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card .bottom .name{
    font-family: 'Prompt', sans-serif;
    font-size: 24px;
    color: white;
}

.color-block {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  z-index: -1; 
  top: 0;
  left: 0;
  transition: all 0.5s ease;
  opacity: 0; /* 初始不可见 */
}

.block-1 {
    z-index: -1;
    background-color: rgb(64, 81, 68); 
}

.block-2 {
    z-index: -2;
    background-color: rgba(215, 210, 210, 0.518); 
}

/* 鼠标悬浮时的多层动画效果 */
.card:hover .color-block {
  opacity: 1; 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card:hover .block-1 {
  transform: translate(8px, 8px); 
  transition-delay: 0.08s;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); 
}

.card:hover .block-2 {
  transform: translate(14px, 14px); 
  transition-delay: 0.16s;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); 
}

/* 取消instructors区域内卡片的动画效果 */
#instructors .card:hover .portrait {
  opacity: 1 !important; 
  filter: none !important; 
}

#instructors .card .mid .box {
  display: none !important; 
}

/* 取消advicors区域内卡片的动画效果 */
#advisors .card:hover .portrait {
  opacity: 1 !important; 
  filter: none !important; 
}

#advisors .card .mid .box {
  display: none !important; 
}

/* part分隔条 */
.section-divider {
  width: 80%;
  height: 2px;
  margin: 3rem auto;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(0, 0, 0, 0.2), 
    rgba(0, 0, 0, 0.4), 
    rgba(0, 0, 0, 0.2), 
    transparent);
  position: relative;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #333;
}