/* 主内容区域样式 */
body {
    background-color: #ffffe8;
}

main {
    flex: 1;
    /* 让内容部分占据剩余空间 */
    padding: 20px;
}

section {
    text-align: center;
}

h2 {
    font-size: 40px;
    font-family: 'youyuan';
    font-style: oblique;
    color: #4c9e70;

}

/* 团队概况和成员简介的容器样式 */
.bordered {
    border: 2px solid #4c9e70;
    /* 边框颜色 */
    padding: 20px;
    /* 内边距 */
    border-radius: 10px;
    /* 圆角 */
    margin: 20px auto;
    /* 居中 */
    width: 1050px;
    /* 宽度 */
    background-color: #fff;
    /* 背景颜色 */
    box-shadow: 0px 5px 12px rgba(125, 125, 125, 0.5);
    transition: all 0.3s;
}

.bordered:hover {
    transform: translate(-8px) scale(1.01, 1.01);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
}

.teamImg {
    width: 1000px;
    border-radius: 10px;
    box-shadow: 10px 10px #ffda94;
  }

/* 照片墙样式 */
.sk_bd {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.sk_bd ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0;
    width: 100%;
}

.sk_bd ul li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    width: 300px;
    height: 400px;
    border: 2px solid #4c9e70;
    box-shadow: #F5DEB3 20px 15px;
    border-radius: 15px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #fff;
    margin: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* 使每四个元素不留右边距 */
.sk_bd ul li:nth-child(4n) {
    margin-right: 0;
}

.memberBox {
    padding: 10px;
    width: 280px;
    height: 400px;
}

/* 卡片翻转 */
.card-container {
    perspective: 1000px;
}

.card {
    position: relative;
    width: 280px;
    height: 340px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-container:hover .card {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 280px;
    height: 340px;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

.card-front {
    background-size: cover;
    background-position: center;
}

.card-back {
    opacity: 0.5;
    background-size: cover;
    background-position: center;
    text-align: center;
    align-items: center;
    transform: rotateY(180deg);
}

.backMask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 核心蒙版样式：黑色半透明（rgba最后一位0.5为透明度，0=全透，1=全黑） */
    background-color: rgba(219, 219, 219, 0.6); 
    text-align: center;
    align-items: center;
}

.backText::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

.backText{
    width: 270px;
    height: 320px;
    overflow: scroll;
}

.card-back p {
    color: #000000;
    margin: 15px;
    font-size: 18px;
}

.card-back p span {
    color: #000000;
    margin: 20px;
    font-size: 18px;
    font-weight: bold;
}

/* 成员姓名样式 */
.name {
    text-align: center;
    margin-top: 10px;
    font-size: 20px;
    font-family: 'youyuan';
    font-weight: bold;
    color: #164b2d;
    background-color: #bce0b6;
    border-radius: 10px;
    position: relative;
    z-index: 10;
    /* 确保名字在上层 */
}

