/* 顶部横幅样式 */
.top-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* 侧边栏样式 */
.sidebar {
    background: linear-gradient(180deg, #2C4FCF 74.52%, #203891 100%);
    color: #fff;
    padding: 1.5rem 0;
    min-height: 50rem;
    position: relative;
    font-size: 1.1rem; /* ✅ 原字体大小太小，适当增大 */
    line-height: 1.6;  /* ✅ 增加行高让文字更舒展 */
}

.sidebar h4 {
    font-size: 1.4rem; /* ✅ 标题大一点 */
    font-weight: 600;
    margin-bottom: 1rem;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    height: 40px;              /* 提高高度 */
    line-height: 40px;         /* 让文字垂直居中 */
    margin-bottom: 8px;
    padding: 0 1rem;
    transition: background-color 0.3s, transform 0.2s;
    border-radius: 8px;
    font-size: 1.1rem;         /* 增加字体大小 */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: pointer;
}

/* hover 效果 */
.sidebar li:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.sidebar li.active {
    background-color: #fff;
}

.sidebar li.active a {
    color: #2C4FCF;
    font-weight: bold;
}

/* hover a 字体颜色不变 */
.sidebar .active a:hover {
    color: #2C4FCF !important;
}

#content-area {
    overflow-y: auto;
    max-height:  50rem;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

/* Chrome, Safari, Edge */
#content-area::-webkit-scrollbar {
    display: none;
}


/* 内容区卡片样式 */
.card-container {
  perspective: 1200px; /* 增强3D透视感 */
  width: 100%;
  height: auto;
  padding: .375rem; /* 增加卡片间距 */
}

.card {
  position: relative;
  width: 100%;
  height: 23.75rem; /* 与子元素高度一致（380px = 23.75rem，1rem=16px） */
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); /* 更平滑的翻转过渡 */
  transform-style: preserve-3d;
  cursor: pointer;
  border-radius: 12px; /* 增大圆角更柔和 */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); /* 更自然的阴影 */
  background-color: #fff; /* 基础背景色 */
}

/* 翻转效果优化 */
.card.flipped-left {
  transform: rotateY(180deg);
}
.card.flipped-right {
  transform: rotateY(-180deg);
}

/* 卡片正反面基础样式 */
.card-face {
  position: absolute;
  width: 100%;
  height: 100%; /* 继承父元素高度 */
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden; /* 防止内容溢出 */
}

/* 正面样式优化 */
.card-front .member-img-container {
  width: 100%;
  height: 100%; /* 填满正面高度 */
  overflow: hidden;
}

.card-front .member-img-container img {
  width: 100%;
  height: auto;
  object-fit: cover; /* 保持图片比例并填满容器 */
  transition: transform 0.5s ease; /* 图片缩放过渡 */
}

/* 正面hover效果 */
.card:not(.flipped-left):not(.flipped-right):hover .member-img-container img {
  transform: scale(1.1); /* 轻微放大增强交互感 */
}

/* 背面样式优化 */
.card-back {
  transform: rotateY(180deg);
  box-sizing: border-box;
  background-color: #f9fafb; /* 更浅的背景色 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-back-content {
  text-align: center;
  width: 100%;
}

.avatar-wrapper {
  width: 110px;
  height: 110px;
  margin: 0 auto 1.2rem; /* 增加底部间距 */
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid #fff; /* 白色边框更精致 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* 头像阴影 */
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.name {
  margin: 0 0 0.8rem; /* 调整间距 */
  font-size: 1.25rem;
  font-weight: 600;
  color: #2d3748; /* 更深的文字色 */
  letter-spacing: 0.5px; /* 字母间距优化 */
}

.divider {
  width: 100%;
  margin: 0 auto 1rem;
  border: none;
  border-top: 1px solid #2C4FCF; /* 更细的分割线 */
}

.description {
  font-size: .875rem;
  color: #4a5568; /* 柔和的描述文字色 */
  line-height: 1.6; /* 行高优化 */
  margin: 0;
  padding: 0 0.5rem; /* 左右内边距防止文字贴边 */
}

/* 响应式调整 */
@media (max-width: 768px) {
  .card {
    height: 20rem; /* 小屏幕减小高度 */
  }
  .name {
    font-size: 1.2rem;
  }
  .description {
    font-size: 0.95rem;
  }
}
