.book_area{
  display: flex;
  justify-content: start;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(1.0625rem,1.8229vw,2.1875rem);
  column-gap: 1.8229vw;
  width: 100%;
}
.book_area .book_list{
  width: calc(100% / 3 - (1.8229vw * 2) / 3);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
  .book_list .book_list_in{
    display: flex;
    flex-direction: column;
  }
  .book_list .book_list_in a{
    display: block;
    text-decoration: none;
    color: #2A2A2A;
    
  }
  .book_list:hover .book_list_in a{
    opacity: 0.7;
    transition: all 0.3s ease;
    
  }
  .book_list_in .book_img{
    position: relative;
  }
  .book_list_in .book_num{
    position: absolute;
    right: 0;
    bottom: 10%;
    color: #fff;
    font-size: 4em;
    text-shadow: 0 2px 20.2px rgba(0, 0, 0, 0.18);
    font-weight: 400;
    line-height: 20px;
  }
  .book_list_in .book_img span{
    position: relative;
    display: block;
    padding-top: 73.33%;
  }
  .book_list_in .book_img span img{
    width:100%;
    height:auto;
    transition: all 0.3s ease-out;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    float: none;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: all 0.3s ease-out;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }

.book_list_in .book_info{
  padding: clamp(1.25rem,2.0833vw,2.5rem);
  background: #CFF5F0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: clamp(.75rem,1.3021vw,1.5625rem);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
} 
.book_list .book_list_in a:focus .book_info,
.book_list .book_list_in a:active .book_info{
  background-color: var(--focus_color);
}
.book_list:nth-of-type(even) .book_info{
  background-color: #F0F8DC;
}
.book_list_in .book_info .book_title{
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: wrap;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 1.25em;
    line-height: 1.5;
    font-weight: 400;
    min-height: calc(20px * 1.5 * 2);
} 
.book_list_in .book_info .book_content{
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: wrap;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 1em;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 3.2px;
    min-height: calc(16px * 1.5 * 2);
    color: #005547;
} 
.book_list .book_list_in a:focus .book_content,
.book_list .book_list_in a:active .book_content{
  color: #fff;
}

.index_bookBg .btn_area input{
  background-color: var(--fourth_color);
  border-color: var(--fourth_color);
}

.index_bookBg .btn_area input:hover{
  background-color: var(--primary_color);
  border-color: var(--primary_color);

}

/* 在螢幕放大150%且寬度大於991時，套用這裡的特定樣式 */ 
@media screen and (min-width: 991px) and (min-height: 500px) and 
(max-height: 1000px) and (-webkit-min-device-pixel-ratio: 1.5) and 
(-webkit-max-device-pixel-ratio: 1.74), only screen and (min-resolution: 150dpi) and 
(max-resolution: 174dpi) { 

  .index_bookBg::before{
   
    top: -20%;
   
  }
  .book_list_in .book_info .book_title{
    font-size: 1.125em;
    min-height: calc(18px * 1.5 * 2);
  } 
}

/* 20251021提早變成3欄 by tom */
@media (max-width: 1450px){

  .book_area .book_list{
    width: calc(100% / 3 - (1.8229vw * 2) / 3);
  }

    .book_list_in .book_num{
      font-size: 2em;
    }


}

@media (max-width: 1200px){
    .book_area .book_list{
        width: calc(100% / 2 - (2.1875rem) / 2);
        }
}
@media (max-width: 1100px){
  .index_bookBg{
    padding-top: 1.25rem ;
    padding-bottom: 1.25rem ;
  }
  .index_bookBg .wrap{
    max-width: unset;
    width: 90%;
  }
  .index_bookBg::before{
      display: none;
  }
  .index_bookBg::after{

    display: none;
  }
    .book_area .book_list{
      width: 100%;
    }

}