.final-nav li a {
  color: #eee !important;
  font-size: 15px;
}

.image-container {
  width: 600px;
  /* 你想要的宽度 */
  height: 400px;
  /* 你想要的高度 */
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 裁剪图片以填充整个容器 */
  object-position: center;
  /* 从图片的中心裁剪 */
}

.image-news {
  width: 400px;
  /* 你想要的宽度 */
  height: 300px;
  /* 你想要的高度 */
  overflow: hidden;
}

.image-news img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 裁剪图片以填充整个容器 */
  object-position: center;
  /* 从图片的中心裁剪 */
}

.image-small-news {
  width: 70px;
  /* 你想要的宽度 */
  height: 70px;
  /* 你想要的高度 */
  max-width: 70px;
  /* 你想要的宽度 */
  max-height: 70px;
  /* 你想要的高度 */
  overflow: hidden;
}

.image-small-news img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 裁剪图片以填充整个容器 */
  object-position: center;
  /* 从图片的中心裁剪 */
}

/* 添加媒体查询 */
@media only screen and (max-width: 480px) {
  .image-container,
  .image-news,
  .image-small-news {
    width: 100%;
    height: auto;
  }

  .service-area h2,
  .about-area h2,
  .blogs-area h2 {
    font-size: 20px;
  }

  .service-area p,
  .about-area p,
  .blogs-area p {
    font-size: 12px;
  }

  .service-icon span i {
    font-size: 40px;
  }

  .single-banner-content h3 {
    font-size: 18px;
  }

  .single-banner-content h1 {
    font-size: 24px;
  }

  .single-banner-content p {
    font-size: 12px;
  }

  .single-banner-content .cr-btn.cr-btn-lg {
    padding: 8px 16px;
    font-size: 14px;
  }

  .col-xl-7.col-lg-9.col-12 {
    max-width: 100%;
    /* 确保在小屏幕上占满宽度 */
  }

  .single-banner:not(.fullscreen) .single-banner-content {
    padding: 10vh 2%;
    /* 减少内边距并使用百分比 */
  }
}

h1 {
  font-family: "Times New Roman", Times, serif;
}

.custom-dialog {
  border-radius: 10px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}
.hhs{
  position: relative;
  height: 85px;
  overflow: hidden;
}
.pp{
  position: absolute;
  bottom: -23px;
  right: -3px;
  padding: 5px 10px;
  background-color: #f7f7f7;
  cursor: pointer;
  color: red;
}
.custom-dialog .dialog-content {
  text-align: center;
  margin-bottom: 20px;
}

.custom-dialog .el-dialog__title {
  font-size: 18px;
  font-weight: bold;
}

.custom-dialog .el-dialog__footer {
  text-align: center;
}

.custom-dialog .el-button {
  padding: 10px 20px;
  font-size: 14px;
}

/* 媒体查询 */
@media (max-width: 768px) {
  .custom-dialog {
    width: 90% !important;
    /* 在手机和平板上显示90%宽度 */
  }
}

@media (min-width: 769px) {
  .custom-dialog {
    width: 40% !important;
    /* 在电脑上显示40%宽度 */
  }
}

.image-users {
  width: 350px;
  /*你想要的宽度  */
  height: 400px;
  /* 你想要的高度 */
  overflow: hidden;
}

.image-users img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 裁剪图片以填充整个容器 */
  object-position: center;
  /* 从图片的中心裁剪 */
}

.image-lic {
  width: 100%;
  /* 你想要的宽度 */
  height: 600px;
  /* 你想要的高度 */
  overflow: hidden;
}

/* 第一行布局 */
.first-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.main-rect {
  background: #f0f0f0;
  height: 300px;
  padding: 20px;
  /* border-radius: 8px; */
  position: relative;
  /* 创建定位上下文 */
  width: 100%;
  /* 根据父级宽度自适应 */
  height: 400px;
  /* 设置固定高度（按需修改） */
  overflow: hidden;
  /* 隐藏溢出部分 */
  /* border-radius: 8px;  可选：保持原有圆角 */
  cursor: pointer;
}

.main-rect img {
  position: absolute;
  top: 0%;
  left: 0%;
  /* transform: translate(-50%, -50%); */
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  /* 关键属性 */
  transition: transform 0.8s ease;
  /* 添加过渡动画 */
}

.main-rect:hover img {
  transform: scale(1.1);
  /* 放大倍数 */
}

.news-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  border-radius: 0 0 8px 8px;
  z-index: 1;
}

.date-day {
  font-size: 24px;
  font-weight: bold;
  line-height: 40px;
}

.date-month {
  font-size: 12px;
  line-height: 10px;
}

.news-date {
  width: 60px;
  height: 60px;
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: #0e62c2;
  color: white;
  /* padding: 10px; */
  border-radius: 4px;
  text-align: center;
  z-index: 2;
}

/* 修改侧边栏容器为水平排列 */
.horizontal-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* 两个等宽列 */
  gap: 15px;
  height: 300px;
}

.side-box {
  background: #f5e6e6;
  /* padding: 15px;     */
  /* border-radius: 6px; */
}

/* 第二行布局 */
.second-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  position: relative;
}

.small-rect {
  background: #f7f5f0;
  background: url(https://ybu.edu.cn/images/jianj_intro_bg@2x.png) no-repeat
    center 10px/100px auto rgba(234, 228, 209, 0.2);

  background-size: cover;
  height: 200px;
  padding: 15px;
  /* border-radius: 6px; */
  position: relative;
  overflow: hidden;
  /* background-color: rgb(248, 244, 244); */
  padding: 20px;
  cursor: pointer;
}

.rect-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url(./static/image/part1-03.png) no-repeat;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .first-row,
  .second-row {
    grid-template-columns: 1fr;
  }

  .horizontal-container {
    grid-template-columns: 1fr;
    /* 移动端垂直堆叠 */
  }

  .main-rect,
  .side-box {
    height: 300px;
  }

  .small-rect {
    height: 200px;
  }

  /* 调整 .first-row 中的字体大小 */
  .first-row {
    font-size: 12px;
  }

  /* 
    .sticky-header:not(.header-sidemenu).is-sticky {
        background: rgba(0, 0, 0, 0.7);
    } */
}

.bcg-box1 {
  background: url(https://ybu.edu.cn/images/notice_logo_bg@2x.png) no-repeat
    center 150px / 300px auto rgba(234, 228, 209, 0.2);
  background-size: cover;
}

.bcg-box2 {
  background: url(https://www.ybu.edu.cn/images/news_bg@2x.png) no-repeat center
    center;
  background-size: cover;
}

.text {
  display: flex;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 50px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.content {
  position: absolute;
  bottom: 20px;
  /* top: -50px; */
  /* right: 0; */
  left: 100px;
  color: #ffffff;
}

.multiline-truncate {
  width: 100%;
  /* 容器宽度 */
  display: -webkit-box;
  /* 使用弹性盒子布局 */
  -webkit-box-orient: vertical;
  /* 垂直排列 */
  -webkit-line-clamp: 1;
  /* 显示的行数 */
  overflow: hidden;
  /* 超出部分隐藏 */
  text-overflow: ellipsis;
  /* 超出部分显示省略号 */
  font-size: 10px;
  color: #b6b1b1;
}

.section-padding-lg h5 {
  font-family: "FZXBSJW";
  font-size: 2.375rem;
  /* margin-right: 1.875rem; */
  padding-bottom: 0.625rem;
  color: #000;
}

.all-title {
  position: relative;
  padding-bottom: 10px;
}

.title-box {
  display: flex;
  /* 启用flex布局 */
  justify-content: space-between;
  /* 两端对齐 */
  align-items: center;
  /* 垂直居中 */
  /* margin-bottom: 3.125rem; */
  /* background: url(https://lcg.tsinghua.edu.cn/images/title02.png) no-repeat bottom center; */
  padding-bottom: 30px;
  /* 给背景图留出空间 */
  position: relative;
}

.title-box h5 {
  margin: 0;
  /* 去除默认边距 */
  font-size: 2.25rem;
  position: relative;
  padding-left: 20px;
}

.title-box h5::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 1.2em;
  background: #2a5caa;
}

.title-box a {
  color: #2a5caa;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  padding-right: 22px;
  right: 20px;
}

.title-box a::after {
  content: "→";
  position: absolute;
  right: 0;
  transition: transform 0.3s ease;
}

.title-box a:hover {
  color: #f60;
}

.title-box a:hover::after {
  transform: translateX(3px);
}

/* 卡片容器 */
.mentor-card {
  margin: 2rem auto;
  width: 95%;
  border-radius: 15px !important;
  /* overflow: hidden; */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  /* box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); */
}

.mentor-card:hover {
  transform: translateY(-5px);
  /* box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12); */
}

/* 装饰性渐变条 */
.accent-bar {
  height: 4px;
  background: linear-gradient(90deg, #4a90e2 0%, #50e3c2 100%);
}

/* 内容布局 */
.mentor-container {
  /* display: flex;
padding: 2rem; */
  /* display: flex; */
  padding: 2rem;
  flex-direction: row;
  align-content: stretch;
  align-items: center;
  flex-wrap: nowrap;
}

/* 图片区域 */
.image-wrapper {
  display: flex;
  /* flex: 0 0 200px; */
  position: relative;
  margin-right: 2rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}

.mentor-image {
  width: 200px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.2);
}

.mentor-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s;
}

.mentor-image:hover img {
  transform: scale(1.05);
}

.image-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 60%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

/* 信息区域 */
.mentor-info {
  flex: 1;
  width: 100%;
  position: relative;
}

.name-tag {
  /* display: flex;
align-items: center;
margin-bottom: 1.5rem; */
  display: flex;
  align-items: center;
  /* margin-bottom: 1.5rem; */
  flex-wrap: nowrap;
  align-content: stretch;
  /* justify-content: center; */
}

.name-tag h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 1rem 0 0;
}

.intro-box {
  background: #f8f9fa;
  padding: 1.2rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  position: relative;
  border-left: 4px solid #4a90e2;
}

.intro-box .icon {
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  padding: 5px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 详细信息区域 */
.detail-info {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  border: 1px solid #eee;
}

.info-item {
  display: flex;
  margin-bottom: 1.2rem;
  padding: 1rem;
  border-radius: 6px;
  transition: background 0.3s;
}

.info-item:hover {
  background: #f8f9fa;
}

.info-item .icon {
  font-size: 1.4rem;
  color: #4a90e2;
  margin-right: 1rem;
  flex-shrink: 0;
}

.info-item label {
  display: block;
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* 按钮动画 */
.expand-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s !important;
  padding: 12px 25px !important;
  display: block;
  margin: 0 auto;
}

.expand-btn i {
  transition: transform 0.3s;
  margin-left: 8px;
}

.rotate {
  transform: rotate(180deg);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .mentor-card {
    width: 100%;
    margin: 1rem auto;
  }

  .mentor-container {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
  }

  .image-wrapper {
    display: flex;
    flex-direction: column;
    margin-right: 0;
    margin-bottom: 1.5rem;
    flex: 0 0 auto;
  }
  .mentor-image {
    margin: auto;
  }
  .mentor-image img {
    height: 200px;
  }

  .name-tag h3 {
    font-size: 1.4rem;
  }

  #footer {
    position: relative;
  }
}
