/* =========================================================
   News detail page - parchment article
========================================================= */

body.news-content-body {
  color: #3c2b1c;
}

.news-content-body .menu li a {
  /* display: none; */
}

.news-content-body .wrapper {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent;
  isolation: isolate;
}

body.news-content-body {
  position: relative;
  min-height: 100vh;
}

body.news-content-body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background-image: url('../images/bg_news.webp');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

body.news-body::before,
body.news-content-body::before {
  z-index: 0;
}

body.news-body .wrapper,
body.news-content-body .wrapper {
  position: relative;
  z-index: 1;
  background: transparent;
}

body.news-content-body .smooth_content {
  background-color: transparent;
}

.news-content-body .dark_fade_section::after,
.news-content-body #newsContentPage .fade_bg {
  display: none;
}

#newsContentPage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 0 0 5rem;
  color: #3c2b1c;
  text-align: center;
}

#newsContentPage .news_content_wrap {
  position: relative;
  z-index: 3;
  width: min(1120px, 90vw);
  margin: 0 auto;
  padding-top: clamp(56px, 9vw, 100px);
  opacity: 1;
  filter: none;
  transform: none;
}

.news_content_title {
  margin: 0 0 0.45rem;
}

.news_content_title img {
  width: min(280px, 35vw);
  margin: 0;
}

.news_detail_paper {
  width: min(920px, 100%);
  margin: 0 auto;
  filter: drop-shadow(0 18px 45px rgba(0, 0, 0, 0.62));
}

.news_detail_paper_head,
.news_detail_paper_foot {
  width: 100%;
  height: 54px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  /* pointer-events: none; */
}

.news_detail_paper_head {
  background-image: url('../images/new_content_head.webp');
}

.news_detail_paper_foot {
  background-image: url('../images/new_content_foot.webp');
}

.news_detail_paper_body {
  position: relative;
  min-height: 820px;
  margin: -1px 0;
  padding: 1.2rem clamp(3rem, 6vw, 5.2rem) 2.4rem;
  background-image: url('../images/new_content_body.webp');
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 100% auto;
  text-align: left;
}

.news_detail_paper_body::after {
  content: '策';
  position: absolute;
  right: clamp(3.4rem, 7vw, 6rem);
  bottom: clamp(4rem, 8vw, 7rem);
  width: clamp(130px, 16vw, 190px);
  height: clamp(130px, 16vw, 190px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(139, 105, 54, 0.13);
  border: 2px solid rgba(139, 105, 54, 0.12);
  border-radius: 50%;
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(4.8rem, 8vw, 7rem);
  font-weight: 900;
  transform: rotate(-18deg);
  /* pointer-events: none; */
}

.news_detail_back_top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.6rem;
  color: #6f4d24;
  font-family: 'Noto Serif TC', serif;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.news_detail_back_top:hover {
  color: #9b6c2c;
  transform: translateX(-3px);
}

.news_detail_header {
  text-align: center;
  margin-bottom: 2rem;
}

.news_detail_tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 28px;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(123, 82, 36, 0.45);
  background: rgba(137, 89, 36, 0.08);
  color: #7c5424;
  font-size: 0.9rem;
  font-family: 'Noto Serif TC', serif;
  font-weight: 800;
  letter-spacing: 0.25em;
  padding-left: 0.25em;
}

.news_detail_title_text {
  margin: 0;
  color: #5a351d;
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(2rem, 3.1vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.2;
  font-size: x-large;
}

.news_detail_date {
  display: block;
  margin-top: 0.75rem;
  color: #9a6b30;
  font-size: 1rem;
  font-family: 'Noto Serif TC', serif;
  letter-spacing: 0.08em;
}

.news_detail_divider {
  position: relative;
  width: 100%;
  height: 1px;
  margin: 1.65rem 0 0;
  background: linear-gradient(to right, transparent, rgba(130, 89, 42, 0.65), transparent);
}

.news_detail_divider::after {
  content: '◆';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: rgba(130, 89, 42, 0.8);
  font-size: 0.8rem;
  background: #efe0c1;
  padding: 0 0.4rem;
}

.news_detail_content {
  position: relative;
  z-index: 2;
  color: #3d2a1c;
  font-size: 1.02rem;
  line-height: 2;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.news_detail_content p {
  margin: 0 0 1.1rem;
}

.news_detail_content strong {
  color: #6f451f;
  font-weight: 900;
}

.news_detail_hero_image {
  width: 100%;
  margin: 1.6rem 0 1.8rem;
  overflow: hidden;
  border: 1px solid rgba(112, 70, 31, 0.45);
  box-shadow: 0 8px 18px rgba(70, 45, 20, 0.2);
}

.news_detail_hero_image img {
  display: block;
  width: 100%;
  aspect-ratio: 860 / 190;
  object-fit: cover;
}

.news_detail_section {
  margin-top: 1.65rem;
}

.news_detail_section_title {
  display: flex;
  align-items: center;
  margin: 0 0 0.7rem;
  color: #6b431f;
  font-family: 'Noto Serif TC', serif;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.news_detail_section_title::before {
  content: '';
  width: 11px;
  height: 11px;
  margin-right: 0.75rem;
  background: #9a6b30;
  transform: rotate(45deg);
  box-shadow: 0 0 0 1px rgba(90, 55, 22, 0.15);
}

.news_detail_list {
  margin: 0;
  padding-left: 1.3rem !important;
}

.news_detail_list li {
  margin-bottom: 0.25rem;
}

.news_detail_two_col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(320px, 42%);
  gap: 2rem;
  align-items: center;
}

.news_detail_side_image {
  overflow: hidden;
  border: 1px solid rgba(112, 70, 31, 0.42);
  box-shadow: 0 8px 18px rgba(70, 45, 20, 0.18);
}

.news_detail_side_image img {
  display: block;
  width: 100%;
  aspect-ratio: 320 / 145;
  object-fit: cover;
}

.news_reward_grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1rem;
  width: min(520px, 100%);
}

.news_reward_item {
  text-align: center;
  color: #4a3221;
  font-size: 0.88rem;
  line-height: 1.45;
}

.news_reward_icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(103, 65, 30, 0.45);
  background: linear-gradient(145deg, rgba(68, 41, 20, 0.92), rgba(126, 82, 35, 0.78));
  color: #ffd687;
  font-family: 'Noto Serif TC', serif;
  font-size: 1.8rem;
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.35),
    0 6px 12px rgba(80, 48, 22, 0.2);
}

.news_detail_note {
  margin-top: 1.8rem;
  color: #5b3d24;
  font-weight: 800;
}

.news_detail_button_area {
  display: flex;
  justify-content: center;
  margin-top: 2.2rem;
}

.news_detail_back_btn {
  min-width: 220px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.3rem;
  color: #f3d58f;
  background: linear-gradient(180deg, #2a1b12, #0b0705);
  border: 1px solid rgba(204, 162, 85, 0.72);
  clip-path: polygon(9% 0, 91% 0, 100% 50%, 91% 100%, 9% 100%, 0 50%);
  font-family: 'Noto Serif TC', serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}

.news_detail_back_btn:hover {
  color: #ffe9ab;
  filter: brightness(1.14);
  transform: translateY(-2px);
}

/* .news-content-body #div_frame_footer {
  position: relative;
  z-index: 4;
  width: min(920px, 90vw);
  margin: 1.8rem auto 0;
} */

@media screen and (max-width: 992px) {
  #newsContentPage .news_content_wrap {
    width: 94vw;
    padding-top: 110px;
  }

  .news_content_title img {
    width: min(360px, 70vw);
  }

  .news_detail_paper_body {
    padding: 0.8rem 2.4rem 2.1rem;
  }

  .news_detail_two_col {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .news_detail_side_image {
    width: min(360px, 100%);
  }
}

@media screen and (max-width: 576px) {
  #newsContentPage .news_content_wrap {
    width: 96vw;
    padding-top: 94px;
  }

  .news_breadcrumb {
    font-size: 0.78rem;
    margin-bottom: 1rem;
  }

  .news_detail_paper_head,
  .news_detail_paper_foot {
    height: 34px;
  }

  .news_detail_paper_body {
    min-height: 680px;
    padding: 0.5rem 1.35rem 1.8rem;
  }

  .news_detail_paper_body::after {
    opacity: 0.55;
    right: 1.5rem;
    bottom: 4rem;
  }

  .news_detail_back_top {
    font-size: 0.86rem;
    margin-bottom: 1.1rem;
  }

  .news_detail_title_text {
    font-size: 1.65rem;
    letter-spacing: 0.06em;
  }

  .news_detail_content {
    font-size: 0.92rem;
    line-height: 1.8;
  }

  .news_detail_hero_image img {
    aspect-ratio: 16 / 7;
  }

  .news_reward_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news_detail_back_btn {
    min-width: 190px;
    font-size: 0.9rem;
  }
}

/* =========================================================
   News detail CMS content
   後台 HTML 內容統一樣式
========================================================= */

.news_editor {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  color: #3f3123;
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 2;
  letter-spacing: 0.04em;
  font-family: 'Noto Sans TC', sans-serif;
  text-align: left;
  word-break: break-word;
}

.news_editor p {
  margin: 1.15em 0;
}

.news_editor p:first-child {
  margin-top: 0;
}

.news_editor p:last-child {
  margin-bottom: 0;
}

.news_editor strong,
.news_editor b {
  font-weight: 800;
  color: #6b4210;
}

.news_editor span {
  max-width: 100%;
}

.news_editor a {
  color: #8a5b17;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  word-break: break-all;
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease;
}

.news_editor a:hover {
  color: #b27828;
  text-shadow: 0 0 6px rgba(154, 101, 36, 0.25);
}

.news_editor img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 28px auto;
  border-radius: 4px;
  box-shadow:
    0 6px 16px rgba(68, 42, 18, 0.22),
    0 0 0 1px rgba(120, 83, 36, 0.25);
}

.news_editor iframe {
  display: block;
  width: min(100%, 900px) !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  margin: 30px auto;
  border: 0;
  box-shadow:
    0 6px 16px rgba(68, 42, 18, 0.22),
    0 0 0 1px rgba(120, 83, 36, 0.25);
}

.news_editor ul,
.news_editor ol {
  margin: 1.2em 0;
  padding-left: 1.6em !important;
}

.news_editor li {
  margin: 0.45em 0;
  line-height: 1.9;
}

.news_editor table {
  width: 100%;
  margin: 1.8em 0;
  border-collapse: collapse;
  color: #3f3123;
  font-size: 0.95em;
}

.news_editor th,
.news_editor td {
  border: 1px solid rgba(128, 91, 45, 0.45);
  padding: 12px 14px;
  vertical-align: top;
}

.news_editor th {
  background: rgba(128, 91, 45, 0.12);
  color: #6b4210;
  font-weight: 800;
}

.news_editor hr {
  border: 0;
  height: 1px;
  margin: 2.2em 0;
  background: linear-gradient(to right, transparent, rgba(128, 91, 45, 0.55), transparent);
}

.news_editor blockquote {
  margin: 1.6em 0;
  padding: 1em 1.2em;
  border-left: 4px solid rgba(128, 91, 45, 0.55);
  background: rgba(128, 91, 45, 0.08);
  color: #4c3928;
}

.news_editor h2,
.news_editor h3,
.news_editor h4 {
  margin: 1.8em 0 0.8em;
  color: #6b4210;
  font-family: 'Noto Serif TC', serif;
  font-weight: 800;
  line-height: 1.45;
}

.news_editor h2 {
  font-size: 1.45em;
}

.news_editor h3 {
  font-size: 1.25em;
}

.news_editor h4 {
  font-size: 1.12em;
}

@media screen and (max-width: 768px) {
  .news_editor {
    font-size: 15px;
    line-height: 1.85;
    letter-spacing: 0.02em;
  }

  .news_editor img {
    margin: 22px auto;
  }

  .news_editor iframe {
    margin: 24px auto;
  }

  .news_editor table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media screen and (max-width: 576px) {
  .news_editor {
    font-size: 14px;
    line-height: 1.8;
  }

  .news_editor img,
  .news_editor iframe {
    margin: 18px auto;
  }
}
