.btn-back {
  position: absolute;
  top: 0;
  left: 1.17rem;
  width: 2.67rem;
  height: 2.67rem;
  z-index: 1;
}
.btn-back > img {
  width: 100%;
}
.container ,.container1{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  padding:0 1.25rem;
  min-height: 16.67rem;
}
.container h1,.container h2{
  display: none;
}

.container p ,.container{
  font-size: 1.4rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.container .txt ,.container1 .txt {
    font-size: 2rem;
      color: #000;
      font-weight: bold;
      line-height: 1.4;
}
.title {
   justify-content: center;
   margin-bottom: 2rem;
}
.title .lf > span {
    font-size: 1.8rem;
    color: #1A1D1C;
    font-weight: bold;
    text-transform: uppercase;
}
.container .img,.container1 .img {
  width: 28.92rem;
  height: 16.25rem;
  margin-bottom: 1.33rem;
  margin-top:1.33rem;
}

.box-list{
  margin:0 auto;
  width:29.5rem;
}
.box-list-1,.box-list-0 {
  width:100%;
}
.box-list-0 {
  display: flex;
  flex-wrap: wrap;

}
.box-list-0 a {
  width: 100%;
  /* height: 26rem; */
  margin-bottom: 2rem;
}
.box-list-0 .item-top > .item-img {
  width: 100%;
  height: 18rem;
}
.box-list-0 .item-top .name {
  display: block;
  width: 100%;
  /* height: 10rem; */
  text-align: center;
}
.box-list-0 .item-top {
  margin-bottom: 1.42rem; 
  position: relative;
}
.box-list-1 {
  width:28.92rem;
  margin-left:1.42rem;
}

.item-top > .item-img {
  width: 16.67rem;
  height: 10.83rem;
}
.item-top .name {
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: transparent;
  padding-top: 0.83rem;
  align-items: center;
}
.item-top .desc {
  color: #1A1D1C;
  font-size: 1.33rem;
  width: 100%;
  /* 移除固定高度 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  -moz-line-clamp: 3;
  -ms-line-clamp: 3;
  line-clamp: 3;
  text-overflow: ellipsis;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
  margin-bottom: 0.5rem;
  white-space: normal;
  overflow: hidden; /* 隐藏超出部分 */
}
.item-top .date {
    font-size: 1rem;
    color: #999999;
    text-align: center;
    margin-top: 0.5rem;
    font-weight: normal;
}


.box-btn {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
}
.box-btn > .img1,
.box-btn > .img2 {
  width: 63px;
  height: 63px;
}
.box-btn > .img2 {
  margin-left: 20px;
}

/* Recent Posts Section (mimics Index Section 4) */
.recent-posts-container {
  width: 29.5rem;
  margin: 0 auto;
  padding: 1rem 0;
}

.rp-title {
  width: 100%;
  display: flex;
  justify-content: flex-start; /* Align left */
  align-items: flex-start;
  border-bottom: 2px solid #313131;
  padding-bottom: 0;
  margin-bottom: 1.5rem;
  height: 3rem;
  position: relative;
  border-radius: 0;
}

.rp-title .lf {
  background-color: #313131;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 1.5rem 0 1rem;
  position: relative;
  margin-right: 0;
}

.rp-title .lf::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1.4rem;
  width: 0;
  height: 0;
  border-bottom: 3rem solid #494949;
  border-right: 1.5rem solid transparent;
}

.rp-title .lf span {
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  background: transparent;
}

.rp-item {
  display: flex;
  padding: 1.2rem 0;
  border: none;
  border-bottom: 2px solid #dedede;
  background: transparent;
  text-decoration: none;
  align-items: flex-start;
  margin-bottom: 0;
}

.rp-item:last-child {
  border-bottom: none;
}

.rp-item .img-wrapper {
  width: 10rem;
  height: 7rem;
  flex-shrink: 0;
  margin-right: 1.2rem;
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
  border-radius: 2px;
}

.rp-item .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.rp-item:hover .img-wrapper img {
  transform: scale(1.05);
}

.rp-item .content {
  flex: 1;
  min-width: 0; /* Fix flex overflow */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 6rem; /* align with image height */
}

.rp-item .title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  padding: 0;
  color: #313131; /* Dark blue-grey text */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  background: transparent;
  width: auto;
  text-align: left;
}

.rp-item:hover .title {
  color: #2962ff; /* Highlight on hover */
}

.rp-item .date {
  font-size: 0.85rem;
  color: #999;
  text-align: left;
  display: block;
  margin-top: auto; /* Push to bottom */
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 35px;
    height: 35px;
    background-image: url("../images/to-top.png");
    background-repeat: no-repeat;
    background-position: center;
    background-color: #E53935;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* --- Skeleton Screen --- */
#skeleton-loader {
    width: 29.5rem;
    margin: 1rem auto 0;
    padding: 0 1.25rem;
    box-sizing: border-box;
}
.sk-title {
    width: 60%;
    height: 2.5rem;
    background-color: #eee;
    margin-bottom: 2rem;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}
.sk-img {
    width: 100%;
    height: 16.25rem;
    background-color: #eee;
    margin-bottom: 1.5rem;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}
.sk-text {
    width: 100%;
    height: 1.2rem;
    background-color: #eee;
    margin-bottom: 0.8rem;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}
.sk-text.short {
    width: 80%;
}

@keyframes skeleton-pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}
