/* 去掉左边时间轴 */

.layui-timeline-item::before {
    display: none !important;
  }

    .layui-timeline-item{
      border-radius:1px;
 transition: transform 0.3s ease,box-shadow 0.3s ease,color 0.3s ease,font-size 0.3s ease, background-color 0.3s ease ; /* 添加过渡效果 */ /* 平滑过渡效果 */
 transform-style: preserve-3d; /* 保持子元素的原始布局 */
 transform-origin: top center; /* 设置变换原点 */
 display: flex;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0,0.2);
  overflow: hidden;
    padding: 0;
    width: 100%;
    box-sizing: border-box ;
    border-bottom:1px solid #ddd;
    will-change: transform, box-shadow;
    max-width: 1200px;
    margin: 5px auto !important;     
}
    
    .layui-timeline-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px  rgba(0, 0, 0, 0.15); /* 鼠标悬停时的阴影效果 */
    background-color:#eee ;
     border-bottom: none;
  }


.layui-container {
  width: 100% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.layui-timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 !important;
}



.layui-timeline-content{
    transition: transform 0.3s ease,box-shadow 0.3s ease,color 0.3s ease,font-size 0.3s ease, background-color 0.3s ease ; /* 添加过渡效果 */ /* 平滑过渡效果 */
  padding: 30px;
  width: 100%;
  /* background-color: aqua; */
}



.layui-timeline-item h3 {
  /* margin:0px; */
  transition: transform 0.3s ease,box-shadow 0.3s ease,color 0.3s ease,font-size 0.3s ease, background-color 0.3s ease ; /* 添加过渡效果 */ /* 平滑过渡效果 */
  margin-bottom:10px;
  /* background-color: aquamarine; */
overflow: hidden; /* 隐藏溢出的部分 */
text-overflow: ellipsis; /* 使用省略号表示溢出部分 */
display: -webkit-box;
color: black;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1; /* 显示的行数 */
}




      /* 鼠标悬停时页码数字变红 */
 .layui-laypage a:hover {
  background-color: #244fb8 ;
  color: white;
}

/* 点击后页码框背景色变红，页码数字变白 */
.layui-laypage .layui-laypage-curr .layui-laypage-em {
    background-color:#244fb8 ;
}
.layui-laypage .layui-laypage-curr em {
    color: white;
}
/* 修改输入框在获得焦点时的边框颜色 */
.layui-laypage-skip .layui-input:focus {
  border-color: #ddd !important; /* 获得焦点时边框颜色为蓝色 */
  box-shadow: none; /* 添加一些阴影效果 */
}






/* 自定义分页器样式 */
.layui-laypage {
  text-align: center;
  /* margin-top: 0px; */
}

.layui-laypage a, .layui-laypage span{
  display: inline-block;
  font-size: 18px;
  margin: 0 5px; /* 页码之间的间距 */
  padding: 5px 15px; /* 文字与边框之间的距离 */
  border: 1px solid #ddd; /* 边框样式 */
  border-radius: 3px; /* 边框圆角 */
  background-color: #fff; /* 背景颜色 */
  text-decoration: none;
  vertical-align: middle; /* 垂直对齐 */
}


.layui-laypage .layui-laypage-ellips {
  border: none; /* 省略号不显示边框 */
}

/* 响应式调整 */
@media (max-width: 1400px) {
  .layui-timeline-item {
      width: 95% !important;
      margin: 20px 2.5% !important;
  }
  
  .layui-timeline-item img {
      width: 35%;
      min-width: 300px;
  }
}

@media (max-width: 768px) {
  .layui-timeline-item {
      flex-direction: column !important;
      height: auto !important;
  }
  
  .layui-timeline-item img {
      width: 100% !important;
      height: 200px !important;
  }
  
  .layui-timeline-content {
      width: 100% !important;
      padding: 20px !important;
  }
  
  .sidebar {
      display: none !important;
  }
}

.timeline-link {
  width: 100%;
  display: block; /* 将 a 标签设置为块级元素 */
  text-decoration: none; /* 去掉下划线 */
}

.timeline-link:hover {
  text-decoration: none; /* 鼠标悬停时不显示下划线 */
}