:root {
  --news-bg: #f8f6f3;
  --news-text: #5e5a50;
  --news-muted: #a8a39d;
  --news-accent: #eb9852;
}
.newsPage {
  background: var(--news-bg);
  color: var(--news-text);
}
.newsMain {
  min-height: 100vh;
  padding-top: 88px;
}
.newsHero,
.newsContent {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding-right: 80px;
  padding-left: 80px;
  box-sizing: border-box;
}
.newsContent {
  padding-bottom: 100px;
}
.newsBreadcrumbs {
  display: flex;
  position: relative;
  padding: 62px 0 42px;
  align-items: center;
  gap: 14px;
  color: #332f2a;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.08em;
}
.newsBreadcrumbs:after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 52px;
  height: 1px;
  background: #d9d8d5;
  content: "";
}
.newsBreadcrumbs:before {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: #c8a27e;
  content: "";
}
.newsBreadcrumbs a,
.newsBreadcrumbs b {
  color: inherit;
}
.newsBreadcrumbs b {
  font-weight: 500;
}
.newsBreadcrumbs i {
  font-style: normal;
  font-weight: 400;
}
.newsHeading {
  padding: 54px 0 0;
}
.newsHeading h1 {
  margin: 0;
  font-size: 42px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.newsHeading p {
  margin: 12px 0 0;
  color: #918671;
  font-family: Georgia, serif;
  font-size: 18px;
  letter-spacing: 0.04em;
}
.newsTabs {
  display: flex;
  margin: 58px auto 72px;
  justify-content: center;
  gap: clamp(52px, 5vw, 106px);
}
.newsTabs button {
  position: relative;
  padding: 0 0 18px;
  border: 0;
  background: transparent;
  color: #8c806e;
  font: inherit;
  font-size: 18px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.25s ease;
}
.newsTabs button:after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--news-accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: 0.25s ease;
}
.newsTabs button:hover,
.newsTabs button.active {
  color: var(--news-accent);
}
.newsTabs button.active:after {
  opacity: 1;
  transform: scaleX(1);
}
.newsGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 64px;
  row-gap: 120px;
}
.newsCard {
  min-width: 0;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.newsCard[hidden] {
  display: none;
}
.newsCard a {
  display: block;
  color: inherit;
}
.newsCard img {
  display: block;
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}
.newsMeta {
  display: flex;
  margin-top: 22px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.newsMeta span {
  padding: 8px 13px;
  border: 1px solid #efb47f;
  color: var(--news-accent);
  font-size: 14px;
  letter-spacing: 0.06em;
}
.newsMeta time {
  color: #b7b4af;
  font-size: 14px;
  letter-spacing: 0.05em;
}
.newsCard h2 {
  margin: 28px 0 0;
  color: #5a564d;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.04em;
}
.newsCard p {
  margin: 20px 0 0;
  color: #aaa6a0;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.04em;
}
@media (max-width: 900px) {
  .newsMain {
    padding-top: 72px;
  }
  .newsHero,
  .newsContent {
    width: 100%;
    margin: 0 auto;
    padding-right: 14px;
    padding-left: 14px;
  }
  .newsContent {
    padding-bottom: 100px;
  }
  .newsBreadcrumbs {
    padding: 28px 0 20px;
    gap: 8px;
    font-size: 12px;
  }
  .newsBreadcrumbs:before,
  .newsBreadcrumbs:after {
    display: none;
  }
  .newsHeading {
    padding: 28px 0 0;
  }
  .newsHeading h1 {
    font-size: 31px;
  }
  .newsHeading p {
    margin-top: 5px;
    font-size: 17px;
  }
  .newsTabs {
    /* 分類是後台可自由新增的動態清單（FT-009），數量沒有上限——
       space-between 只在剛好塞得下的時候好看，一旦分類變多或名稱變長
       （例如業主取一個較長的分類名），按鈕會被硬擠到看不清楚甚至被裁到
       畫面外、完全點不到，且沒有任何提示這裡其實還有更多分類。改成可
       橫向捲動，裝不下的部分維持原尺寸滑出去，不擠壓、也不會消失 */
    width: 100%;
    margin: 38px 0 48px;
    justify-content: flex-start;
    gap: 28px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .newsTabs::-webkit-scrollbar {
    display: none;
  }
  .newsTabs button {
    flex-shrink: 0;
    padding: 0 4px 12px;
    font-size: 15px;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
  .newsTabs button:after {
    height: 3px;
  }
  .newsGrid {
    grid-template-columns: 1fr;
    row-gap: 56px;
  }
  .newsMeta {
    margin-top: 8px;
  }
  .newsMeta span {
    padding: 4px 7px;
    font-size: 12px;
  }
  .newsMeta time {
    font-size: 12px;
  }
  .newsCard h2 {
    margin-top: 17px;
    font-size: 17px;
    line-height: 1.55;
  }
  .newsCard p {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.7;
  }
}
@media (max-width: 380px) {
  .newsTabs button {
    padding-right: 4px;
    padding-left: 4px;
    font-size: 13px;
  }
}

/* 分頁與空狀態為切版缺漏的補件（FT-009），沿用既有配色變數 */
.newsEmpty {
  padding: 80px 0;
  color: var(--news-muted);
  font-size: 16px;
  text-align: center;
}
.newsPager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 60px;
}
.newsPager a {
  padding: 10px 22px;
  border: 1px solid var(--news-accent);
  color: var(--news-accent);
  font-size: 15px;
  letter-spacing: 0.05em;
  transition: background 0.25s, color 0.25s;
}
.newsPager a:hover {
  background: var(--news-accent);
  color: #fff;
}
.newsPagerCurrent {
  color: var(--news-text);
  font-size: 15px;
  letter-spacing: 0.05em;
}
