#cardhover-area .card {
  flex: 1;
  height: 320px;
  position: relative;
  overflow: hidden;
  border-radius: 0px; /* 圓角 */
  box-shadow: 0 0 20px rgba(51, 70, 80, 0.1); /* 外陰影 */
}
#cardhover-area .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0)
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.7) 80%); /* 圖片的灰階半透明漸層遮罩 */
  z-index: 0; /* z軸的位置 */
}
#cardhover-area a.link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* z軸的位置 */
}
#cardhover-area .img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  transition: transform 3s ease; 
  position: relative;
  z-index: -1; /* z軸的位置 */
}
#cardhover-area .info {
  position: absolute;
  width: calc(100% );
  bottom: 0;
  padding: 20px;
  color: #ffffff;
  transition: background-color 1.5s ease;
}
#cardhover-area h2.title {
    transition: color 1s ease;
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #fff!important;
}
#cardhover-area .date {
  font-size: 14px;
  margin-bottom: 10px;
  color: #ccc;
}
#cardhover-area .detail {
  max-height: 0;
  opacity: 0;
  transition: max-height 1.5s ease, opacity 1s ease;
}
#cardhover-area .detail p {
  /*display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #fff;*/
}
#cardhover-area .btn-more {
  width: 80px;
  display: block;
  background-color: black;
  border: 1px solid #fff;
  border-radius: 20px;
  color: #fff;
  font-size: 12px;
  text-align: center;
  margin-left: auto;
  padding: 6px 6px;
  margin-top: 12px;
  text-decoration: none;
}
#cardhover-area .card:hover .img {
  transform: scale(1.2);
}
#cardhover-area .card:hover .info {
  background-color: rgba(0, 0, 0, 0.2);
}
#cardhover-area .card:hover .detail {
  max-height: 78px;
  opacity: 1;
}
#cardhover-area .card:hover h2.title {
  color: #ffc107;
}
