/* =========================================================
   News list page
========================================================= */

.menu li a {
  /* display: none; */
}

.wrapper {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: #000;
  isolation: isolate;
}

.news-body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background-color: #000;
  background-image: url('../images/bg_news.webp');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

body.news-body,
body.news-content-body {
  position: relative;
  min-height: 100vh;
  background: #000;
}

body.news-body::before,
body.news-content-body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background: #000 url('../images/bg_news.webp') center top / cover no-repeat;
}

body.news-body .wrapper,
body.news-content-body .wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent;
}

body.news-body .smooth_content,
body.news-content-body .smooth_content {
  position: relative;
  background: transparent;
  transform: none !important;
}

body.news-body {
  position: relative;
  min-height: 100vh;
  background-color: #000;
}

body.news-body .wrapper,
body.news-body .smooth_content {
  background-color: transparent;
}

.news_breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.55rem;
  color: rgba(231, 203, 138, 0.82);
  font-family: 'Noto Serif TC', serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.news_breadcrumb a {
  color: rgba(231, 203, 138, 0.82);
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease;
}

.news_breadcrumb a:hover {
  color: #fff0b5;
  text-shadow: 0 0 8px rgba(255, 220, 120, 0.35);
}

#newsPage {
  position: relative;
  width: 100%;
  padding-bottom: 5rem;
}

/* .news_banner {
  width: 100%;
  height: 420px;

  background: url('../images/news_bg.png') center top no-repeat;

  background-size: cover;
} */

.news_article {
  width: min(1100px, 90%);
  margin: 0 auto;

  background: url('../images/news_frame.png') center center no-repeat;

  background-size: 100% 100%;

  padding: 80px;
}

#newsPage .fade_bg {
  display: none;
}
/* .news_page_hero {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: clamp(300px, 34vw, 470px);
  transform: translateX(-50%);
  background: url('../images/news_bg.png') center top / cover no-repeat;
  z-index: 1;
  pointer-events: none;
}
*/
/* .news_page_hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.82) 100%);
} */

#newsPage {
  position: relative;
  width: 100%;
  padding-bottom: 5rem;
  min-height: 100%;
}
#newsPage .news_page_content {
  position: relative;
  z-index: 3;
  width: min(1050px, 88vw);
  margin: 0 auto;
  padding-top: clamp(50px, 13vw, 65px);
  opacity: 1;
  filter: none;
  transform: none;
}
.news_page_title {
  margin: 0 0 clamp(0rem, 1.8vw, 1rem);
  margin-top: 1rem;
}
.news_page_title img {
  width: min(280px, 35vw);
  margin: 0;
}
.news_page_panel {
  position: relative;
  width: min(880px, 100%);
  margin: 0 auto;
  min-height: 900px;
  padding: clamp(2.2rem, 3.1vw, 3.4rem) clamp(3rem, 4.5vw, 4.9rem) clamp(2rem, 3vw, 3.2rem);
  background: url('../images/news_frame.png') center / 100% 100% no-repeat;
  display: flex;
  flex-direction: column;
}
.news_page_tabs {
  margin-bottom: 1.05rem;
  padding-bottom: 1.05rem;
}
.news_page_tabs button {
  font-size: clamp(1.05rem, 1.2vw, 1.3rem);
  letter-spacing: 0.35em;
}
.news_page_list {
  flex: 0 0 auto;
}
.news_page_list li {
  border-bottom-color: rgba(183, 157, 93, 0.38);
}
.news_page_list a {
  grid-template-columns: 58px minmax(0, 1fr) 70px;
  min-height: 56px;
  gap: 1rem;
  font-size: 1.05rem;
  padding: 0 0.2rem;
}
.news_page_list .tag {
  margin: auto;
  font-size: 1rem;
  color: #dbc487;
  letter-spacing: 0.5em;
}

.news_page_list p {
  text-align: left;
}
.news_pager {
  position: absolute;
  left: 50%;
  bottom: 2.5rem;

  transform: translateX(-50%);

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;

  width: 100%;
  font-family: 'Noto Serif TC', serif;
  color: #d8bd7c;
}
.news_pager a {
  color: #d8bd7c;
  font-size: 1.08rem;
  line-height: 1;
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease,
    transform 0.2s ease;
}
.news_pager a:hover,
.news_pager a.active {
  color: #fff0b2;
  text-shadow: 0 0 8px rgba(255, 220, 120, 0.35);
  transform: translateY(-1px);
}

.news_pager a.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}
.news_page_list li.is-hidden-by-page {
  display: none;
}
.news_page_list li.is-hidden-by-tab {
  display: none;
}

.news-body .dark_fade_section::after {
  display: none;
}

@media screen and (max-width: 992px) {
  #newsPage {
    padding-bottom: 4rem;
  }
  #newsPage .news_page_content {
    width: 94vw;
    padding-top: 115px;
  }
  .news_page_title img {
    width: min(360px, 70vw);
  }
  .news_page_panel {
    min-height: 760px;
    padding: 2rem 2.1rem 2.4rem;
  }
  .news_page_tabs button {
    letter-spacing: 0.18em;
  }
  .news_page_list a {
    grid-template-columns: 48px minmax(0, 1fr) 52px;
    min-height: 48px;
    gap: 0.6rem;
    font-size: 0.92rem;
  }
}
@media screen and (max-width: 576px) {
  .news_page_hero {
    height: 220px;
    background-size: auto 100%;
  }
  #newsPage .news_page_content {
    width: 96vw;
    padding-top: 94px;
  }
  .news_page_panel {
    min-height: 650px;
    padding: 1.45rem 1.25rem 1.8rem;
  }
  .news_page_tabs {
    margin-bottom: 0.6rem;
    padding-bottom: 0.65rem;
  }
  .news_page_tabs button {
    font-size: 0.86rem;
    letter-spacing: 0.08em;
  }
  .news_page_list a {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    min-height: 42px;
    gap: 0.45rem;
    font-size: 0.78rem;
  }
  .news_page_list .tag {
    font-size: 0.72rem;
  }
  .news_pager {
    gap: 0.35rem;
    padding-top: 1.2rem;
  }
  .news_pager a {
    font-size: 0.9rem;
  }
}

/* 只有 news.html 生效 */

.news-body .news_page_panel {
  height: 650px;
  min-height: 650px;
  overflow: visible;
}

.news-body .news_page_list {
  height: auto;
  min-height: auto;
  overflow: visible;
}

.news-body .news_page_list li {
  height: 58px;
}

.news-body .news_page_list li.is-hidden-by-tab,
.news-body .news_page_list li.is-hidden-by-page {
  display: none;
}

.news-body .news_pager {
  margin-top: 28px;
}

.news-body .news_page_list li.is-hidden-by-tab,
.news-body .news_page_list li.is-hidden-by-page {
  display: none;
}

.news-body .news_page_list li {
  height: 58px;
}

/* =========================================================
   News list page - real mobile fix
   放在 new.css 最下面，蓋掉 .news-body 固定高度
========================================================= */
@media screen and (max-width: 576px) {
  #newsPage {
    padding-bottom: 2.5rem;
  }

  #newsPage .news_page_content {
    width: 94vw;
    padding-top: 72px;
  }

  .news_page_title {
    margin-top: 0;
    margin-bottom: 0.35rem;
  }

  .news_page_title img {
    width: min(245px, 74vw);
  }

  .news_breadcrumb {
    gap: 0.4rem;
    margin-bottom: 0.9rem;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }

  .news-body .news_page_panel {
    width: 100%;
    height: auto;
    min-height: 500px;
    padding: 1.2rem 1rem 3rem;
    overflow: visible;
  }

  .news_page_tabs {
    margin-bottom: 0.45rem;
    padding-bottom: 0.55rem;
  }

  .news_page_tabs button {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
  }

  .news-body .news_page_list {
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .news-body .news_page_list li {
    height: auto;
  }

  .news_page_list a {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    min-height: 38px;
    gap: 0.35rem;
    padding: 0.28rem 0;
    font-size: 0.8rem;
  }

  .news_page_list .tag {
    font-size: 0.8rem;
    letter-spacing: 0.22em;
  }

  .news_page_list p {
    font-size: 1.1rem;
    line-height: 1.35;
    font-weight: 500;
  }

  .news_page_list time {
    font-size: 0.8rem;
  }

  .news_pager {
    bottom: 1.35rem;
    gap: 0.32rem;
  }

  .news_pager a {
    font-size: 0.82rem;
  }
}

/* =========================================================
   new.html mobile：固定 8 則高度，不足則留空
   放在 new.css 最下面
========================================================= */

@media screen and (max-width: 576px) {
  .news-body .news_page_panel {
    width: 100%;
    height: 420px;
    min-height: 420px;
    padding: 1.2rem 1rem 2.8rem;
    overflow: visible;
    position: relative;
  }

  .news_page_tabs {
    margin-bottom: 0.45rem;
    padding-bottom: 0.55rem;
  }

  .news_page_tabs button {
    font-size: 0.9rem;
    letter-spacing: 0.5em;
  }

  .news-body .news_page_list {
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .news-body .news_page_list li {
    height: 40px;
  }

  .news_page_list a {
    height: 40px;
    min-height: 40px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    font-size: 0.9rem;
  }

  .news_page_list .tag {
    font-size: 0.9rem;
    letter-spacing: 0.22em;
  }

  .news_page_list p {
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .news_page_list time {
    font-size: 0.9rem;
  }

  .news_pager {
    position: absolute;
    left: 50%;
    bottom: 1.35rem;
    transform: translateX(-50%);
    gap: 0.32rem;
  }

  .news_pager a {
    font-size: 1rem;
  }
}
