@charset "UTF-8";
/* CSS Document */
.newsList .item .Txt .more, .newsList .item .Txt .text, .newsList .item .Txt, .newsList .item .Img, .newsList .item {
  transition: all 0.4s ease-in-out;
}

.newsInfoBox {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px 15px;
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 1.35px;
}
.newsInfoBox .classTitle {
  color: #fff;
  background-color: #22d58a;
  border-radius: 30px;
  padding: 4px 16px;
}
.newsInfoBox .date {
  color: #555;
  font-weight: 600;
  font-family: "Rajdhani", "Noto Sans JP", "Microsoft JhengHei", sans-serif;
}

.newsList {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 17px;
}
.newsList .newsItem {
  position: relative;
  border-radius: 13px;
  overflow: hidden;
  padding: 4px;
  isolation: isolate;
}
.newsList .newsItem::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  padding: 4px; /* 線條粗細 */
  background: conic-gradient(in oklch from 0.64turn, #20805c 0, #00d88a calc(var(--cardLine) * 0.5turn), #20805c calc(var(--cardLine) * 1turn), transparent calc(var(--cardLine) * 1turn) 1turn) border-box;
  /* 雙層 mask → 只留 4px 的寬度，圓角完全貼合 */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  /* 平滑推進角度 */
  transition: --cardLine 0.6s linear;
  opacity: 0;
  pointer-events: none;
}
@media (min-width: 1181px) {
  .newsList .newsItem:hover {
    box-shadow: 0px 10px 35px 0px rgba(0, 0, 0, 0.15);
  }
  .newsList .newsItem:hover::after {
    --cardLine: 1;
    opacity: 1;
  }
  .newsList .newsItem:hover .item {
    border-color: transparent;
  }
  .newsList .newsItem:hover .Txt {
    opacity: 1;
  }
  .newsList .newsItem:hover .Txt .text,
  .newsList .newsItem:hover .Txt .more {
    opacity: 1;
    transform: translateY(0);
  }
  .newsList .newsItem:hover .Txt .more {
    transition-delay: 0.2s;
  }
  .newsList .newsItem:hover .Img {
    opacity: 0.15;
  }
}
.newsList .item {
  position: relative;
  border: 1px solid #dcdcdc;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.newsList .item.hasVideo, .newsList .item.hasAlbum {
  cursor: pointer;
}
.newsList .item .Img {
  width: 100%;
}
.newsList .item .Img img {
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: contain;
     object-fit: contain;
}
.newsList .item .Txt {
  width: 100%;
  height: 100%;
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: normal;
  flex-direction: column;
  flex-wrap: nowrap;
  padding: 15px 24px;
  opacity: 0;
}
.newsList .item .Txt .text {
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.56px;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
}
.newsList .item .Txt .more {
  border: 1px solid #c9c9c9;
  text-align: center;
  color: #555;
  border-radius: 30px;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 1.2px;
  padding: 14px 10px;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(10px);
}
@media (min-width: 1181px) {
  .newsList .item .Img {
    height: 210px;
  }
}
@media (max-width: 1400px) {
  .newsList {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 1180px) {
  .newsList {
    gap: 0;
  }
}
@media (max-width: 840px) {
  .newsList {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 540px) {
  .newsList {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 320px) {
  .newsList {
    grid-template-columns: repeat(1, 1fr);
  }
}