/*
 * TF-1041：本檔自繁中複製後，已將所有 rem 單位換算為 px（× 16）。
 *
 * 原因：bootstrap.css 設有 html { font-size: 10px }，
 * 繁中以自家 style.css 的 html { font-size: 16px } 蓋回，簡中的 style.css 是
 * 較舊版本沒有這條，rem 會以 10px 計算（0.875rem 變成 8.75px 而非 14px）。
 *
 * 不直接補 html { font-size: 16px }，是因為簡中既有 style.css 另有 35 處 rem
 * 是依 10px 基準撰寫的，改動 root 會讓那些規則全部放大 1.6 倍。
 *
 * 日後若從繁中重新同步本檔，記得重做一次 rem → px 換算。
 */
/* === 1. Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* === 2. Reset & Base === */
:root {
  --font-family-base: 'Montserrat', 'Inter', Arial, sans-serif;
  --color-primary: #518000;
  --logo-color: #6ba900;
  --text-color: #3d3d3d;
  --background-color: #f9f9f9;
  --standard-border-radius: 8px;
  --standard-margin-bottom: 32px;
}

html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family-base);
  background: #fff;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
  color: var(--text-color);
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

input,
textarea {
  font-size: initial;
}

/* === 3. Layout Sections === */


.column-header {
  height: clamp(300px, 40vh, 600px) !important;
  min-height: clamp(300px, 40vh, 600px);
  background: url(../images/column_img/TF-Data-Center_cover.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.column-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.column-header>* {
  position: relative;
  z-index: 1;
}

.column-header-content p {
  color: white;
  font-size: 16px;
  margin-bottom: 10px;
  padding: 0 100px;
}

.column-header-content h1 {
  font-size: 40px;
  line-height: 1.5;
  font-weight: 600;
  color: white;
  text-align: left;
  padding: 0 100px;
}

@media (max-width: 768px) {
  .column-header {
    height: auto !important;
    padding-top: 48px;
    padding-bottom: 48px;
    min-height: clamp(250px, 35vh, 500px);
  }

  .column-header-content p,
  .column-header-content h1 {
    padding: 0px;
  }
}

@media (max-width: 600px) {
  .column-header-content h1 {
    font-size: 32px;
  }
}

/* === 4. Summary & Article === */

/* summary 區塊 */
.summary {
  font-size: 20.8px;
  margin-bottom: var(--standard-margin-bottom);
  padding: 0 100px;
}

.column-content-article {
  padding: 0 100px;
}

@media (max-width: 768px) {
  .summary {
    padding: 0px;
  }

  .column-content-article {
    padding: 0px;
  }
}

/* 原本 main.column p -> 改為 article p */
article p {
  margin-bottom: var(--standard-margin-bottom);
  font-size: 17.6px !important;
  font-weight: 400;
  line-height: 1.8;
}

article h2,
article h3,
article h4,
article h5 {
  font-family: inherit;
  font-weight: 600;
  margin: 48px 0 16px 0;
  line-height: 1.4;
}

article h2 {
  font-size: 28.8px;
  scroll-margin-top: 110px;
  /*目錄偏移校正*/
}

article h3 {
  font-size: 25.6px;
}

article h4 {
  font-size: 22.4px;
}

article h5 {
  font-size: 20px;
}

article a {
  color: var(--text-color);
  border-bottom: 3px solid var(--color-primary);
  text-decoration: none;
  font-weight: 400;
}

/* 文章圖片樣式：圖片最大寬度不超過容器，並自動等比縮放 */
article p>img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 0 auto;
}

/* 圖片和表格 caption add 2025/10/13 */
article p.cap-top,
article p.cap-btm {
  font-size: 14.4px !important;
  line-height: inherit;
  color: inherit;
}

/* 圖表上方 caption */
article p.cap-top:has(+ p > img:only-child),
article p.cap-top:has(+ .table-container) {
  margin-bottom: 16px !important;
}

/* 圖表下方 caption */
article .table-container:has(+ p.cap-btm),
article p:has(> img:only-child):has(+ p.cap-btm) {
  margin-bottom: 8px !important;
}


.column-content-article li {
  margin-bottom: 1em;

}

/*手機板放大鏡*/
@media (max-width: 768px) {
  article p.has-img-zoom {
    position: relative;
  }

  article p.has-img-zoom::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    /* 半透明黑色背景 */
    border-radius: 50%;
    /* 圓形 */
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M15.5 14h-.79l-.28-.27a6.5 6.5 0 10-.71.71l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0A4.5 4.5 0 1114 9.5 4.5 4.5 0 019.5 14z"/></svg>');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 70%;
    /* 放大鏡大小 */
    pointer-events: none;
    z-index: 2;
  }

  /* Lightbox 背景遮罩 */
  #img-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  /* Lightbox 內圖片容器，允許手指滑動 */
  #img-lightbox .img-container {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
  }

  #img-lightbox img {
    display: block;
    max-width: none;
    /* 不限制寬度 */
    height: auto;
    /* 保持比例 */
  }

  /* 關閉按鈕 */
  #img-lightbox .close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    user-select: none;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
  }
}


article ul,
article ol {
  color: var(--text-color);
  margin: 1.2em 0 32px 32px;
  font-size: 17.6px;
  padding-left: 24px;
}

/* 手機 RWD 調整 */
@media (max-width: 600px) {

  article ul,
  article ol {
    margin-left: 0px;
  }
}

article blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 19.2px 24px;
  margin: 19.2px 0;
  color: var(--text-color);
  background-color: var(--background-color);
  font-style: italic;
  font-size: 16.8px;
}

/*table 處理*/
article .table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--standard-margin-bottom);
  position: relative;
  /* Sticky 的必要條件 */
  border: 1px solid #ddd;
  border-radius: var(--standard-border-radius);
}

/*2 values in a cell add:20251028*/
.table-container .split-cell {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  /* 讓偽元素可定位在容器中線 */
}

.table-container .split-cell::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #ddd;
  transform: translateX(-0.5px);
  pointer-events: none;
  /* 不阻擋互動 */
}

.table-container .split-cell div {
  flex: 1 1 50%;
  display: flex;
  justify-content: space-between;
  /* 左右拉滿 td */
  align-items: center;
  /* 垂直置中 */
  box-sizing: border-box;
}

.table-container .split-cell div:first-child {
  padding-right: 12px;
  /* 與中線保持距離 */
}

.table-container .split-cell div:last-child {
  padding-left: 12px;
  justify-content: flex-end;
  /* 右對齊 */
}

/* 基本表格設計 */
article table {
  width: 100%;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 800px;
  margin-bottom: 0 !important;
  background-color: #fff;
}

/* 表頭 */
article th {
  background-color: var(--background-color);
  font-weight: 600;
  border-bottom: 2px solid #ddd;
  position: sticky;
  padding: 12px !important;
  top: 0;
  z-index: 0;
}



/* 單元格 */
article th,
article td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  border-right: 1px solid #ddd;
  word-break: normal;
  white-space: normal;
  word-wrap: normal;
  overflow-wrap: normal;
  min-width: 80px;
}

/* Sticky 第一欄為th時 */
article th:first-child {
  position: sticky;
  left: 0;
  background-color: var(--background-color);
  z-index: 1;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.04);
  min-width: 150px;
  width: auto;
}

/* 最後一欄邊框移除 */
article th:last-child,
article td:last-child {
  border-right: none;
}

@media (max-width: 768px) {
  article table {
    min-width: 800px;
  }


}

/*CTA Banner*/
article .inline-cta {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 32px 0;
  background-color: var(--background-color);
  padding: 16px;
  border-radius: var(--standard-border-radius);
  color: var(--text-color);
  padding: 32px 24px;
  /*add 20250526*/
}

article .inline-cta .cta-image {
  flex: 0 0 30%;
  display: flex;
  align-items: center;
  justify-content: center;
}

article .inline-cta .cta-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--standard-border-radius);
}

article .inline-cta .cta-content {
  flex: 1;
}

article .inline-cta .cta-content h3 {
  font-size: 25.6px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 16px;
  edit 20250526*/
}

/*add 20250526*/
article .inline-cta .cta-content p {
  margin: 0;
}

/* 共用設定 */
article .inline-cta .cta-content a {
  text-decoration: none;
  color: inherit;
}

/* 文字連結樣式 */
article .inline-cta .cta-content .text-link {
  display: inline;
  border-bottom: 3px solid var(--color-primary);
}

/* 按鈕樣式 */
article .inline-cta .cta-content .btn-link {
  display: block;
  width: fit-content;
  background-color: var(--color-primary);
  color: #fff;
  margin-top: 1em;
  padding: 0.5em 1em;
  border-radius: var(--standard-border-radius);
  transition: background-color 0.3s ease;
}

article .inline-cta .cta-content .btn-link:hover {
  background-color: var(--logo-color);
  /* 改為使用 LOGO 主色 */
}

/* RWD 手機板樣式 */
@media (max-width: 768px) {
  article .inline-cta {
    flex-direction: column;
    padding: 32px 16px;
    gap: 0px;
  }

  article .inline-cta .cta-image,
  article .inline-cta .cta-content {
    width: 100%;
  }

  /*add 20250526*/
  article .inline-cta .cta-image {
    margin-bottom: 24px;
  }
}

.author-section {
  padding: 32px 100px;
  margin-top: 40px;
  margin-bottom: 40px;
  border-top: 1px solid #E0E0E0;
  border-bottom: 1px solid #E0E0E0;
}

.sector-section {
  padding: 16px 100px;
  /* margin-bottom: 40px; */
}

@media (max-width: 768px) {
  .author-section {
    padding: 32px 0px;
  }

    .sector-section {
    padding: 32px 0px;
  }
}




/* TF-1012 RQ-32：Sector/Tag 區塊改沿用報告內頁（RQ-31）同一套 .overview-category
   排法（標籤與連結都在同一個 <p> 內，直接照段落文字排版），不再用 .sector-item 的
   flex 版型——flex 版型在標籤很短、內容很長時會有跑版風險（見本次修正討論），
   改回段落式排版跟報告內頁視覺一致，也更穩定 */

.author-section h3 {
  font-size: 17.6px;
  font-weight: 600;
}

.author-section p {
  font-size: 16px;
}

.column-contact {
  font-size: 17.6px;
  color: #518000;
  padding: 16px 24px;
  border: 1px solid #518000;
  border-radius: 8px;
  margin-top: 40px;
  margin-bottom: 80px;
  display: block;
  text-align: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.column-contact:hover {
  background-color: #518000;
  color: #fff;
  border: 1px solid #518000;
}

/* 分享下拉選單 */
.share-container {
  padding: 0 100px;
  display: flex;
  justify-content: flex-end;
}


.share-dropdown {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.share-btn,
.download-pdf-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.4px;
  background: none;
  border: none;
  color: #3d3d3d;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer !important;
  transition: all 0.3s ease;
}

.download-pdf-btn {
  margin-bottom: 20px;
}

.share-btn img,
.download-pdf-btn img {
  width: 16px;
  height: 16px;
}

.share-btn:hover,
.download-pdf-btn:hover {
  background-color: #f9f9f9;
  color: #3d3d3d;

}

.download-pdf-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed !important;
  background-color: #f5f5f5;
}

.download-pdf-btn:disabled:hover {
  background-color: #f5f5f5;
  color: #3d3d3d;
}

.share-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: none;
  min-width: 160px;
  z-index: 1000;
}

.share-dropdown.active .share-menu {
  display: block;
}

.share-item {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.share-item:hover {
  background-color: #f5f5f5;
  text-decoration: underline;
}

.share-item img {
  width: 28px;
}

/* 微信掃碼分享：QR code 置中 + 下方提示文字，取代原本的社群連結清單 */
.share-menu--wechat {
  min-width: 200px;
  padding: 16px;
  text-align: center;
}

.wechat-share-qrcode {
  display: inline-block;
  line-height: 0;
}

.wechat-share-tip {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #666;
}

@media (max-width: 768px) {
  .share-container {
    padding: 0px;
  }
}

/* 目录导航样式 */
.column-toc-section {
  position: fixed;
  left: 0;
  top: 60%;
  transform: translateY(-50%);
  border-radius: 0 8px 8px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 99;
  max-width: 280px;
  max-height: 80vh;
  opacity: 0;
  visibility: hidden;
}

.column-toc-section.visible {
  opacity: 1;
  visibility: visible;
}

.toc-title {
  font-size: 14.4px;
  font-weight: 500;
  color: #fff;
  writing-mode: vertical-lr;
  text-orientation: upright;
  letter-spacing: 1px;
  padding: 12px;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 100%;
  box-sizing: border-box;
  text-align: center;
  line-height: 0;
  vertical-align: middle;
  margin: 0;
}

.column-toc-section.collapsed {
  transform: translate(-100%, -50%);
  /* 桌面版恢复垂直居中 */
}

/* 手机版默认关闭目录 */
@media (max-width: 768px) {
  .column-toc-section {
    transform: translate(-100%, 0%);
    /* 只水平移动，不垂直移动 */
    top: 7%;
    max-height: 80vh;
    /* 限制最大高度为视窗高度的80% */
    overflow-y: auto;
    /* 如果内容过多，允许滚动 */
  }

  .column-toc-section.collapsed {

    transform: translate(-100%, 0%);
    /* 保持一致的垂直位置 */
  }

  .column-toc-section:not(.collapsed) {
    transform: translate(0, 0);
    /* 移除垂直居中，使用top定位 */
  }

  .column-toc-section.visible:not(.collapsed) {
    opacity: 1;
    visibility: visible;
  }
}



.toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.toc-close-btn {
  /* background: none; */
  border: none;
  cursor: pointer;
  background-color: #84C100;
  border-radius: 50%;
  transition: color 0.3s ease;
  margin-left: auto;
  width: 28px;
  height: 28px;
  line-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toc-close-btn i {
  font-size: 20.8px;
  color: #fff;
}

.toc-close-btn:hover {
  color: #333;
}

.toc-list {
  list-style: none;
  margin: 0;
}

.toc-list li {
  border-right: 10px solid #84C100;
  line-height: 1.5;
  margin-bottom: 4px;
  padding: 12px;
  background-color: #f9f9f9;
  cursor: pointer;
}

.toc-list li.active {
  background-color: #e8f5e9;
  border-right: 15px solid #2e7d32;
}

.toc-list li a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  display: block;
}

.toc-list li.active a {
  color: #2e7d32;
  font-weight: 500;
}

/* 展开按钮 */
.toc-expand-btn {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  /* 桌面版保持垂直居中 */
  background: #558032;
  border: none;
  padding: 8px;
  cursor: pointer;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 0 8px 8px 0;
  display: none;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

@media (max-width: 768px) {
  .toc-expand-btn {
    top: 7%;
    /* 与目录位置保持一致 */
    transform: translateY(0);
    /* 移除垂直居中，使用top定位 */
  }
}

.toc-expand-btn i {
  color: #fff;
  font-size: 24px;
}

.column-toc-section.collapsed+.toc-expand-btn {
  display: block;
}

.toc-expand-btn.visible {
  opacity: 1;
  visibility: visible;
}

@media screen and (max-width: 768px) {
  .download-pdf-btn {
    display: none;
  }
}

/* 下載pdf(print)功能 */
@media print {

  @page {
    padding: 48px 48px !important;
    margin: 48px !important;
    /* 页面边距 */
    size: A4 !important;

    @bottom-center {
      content: url("/images/TF_logo.svg");
      width: 5cm;
      /* 設定 logo 寬度 */
      vertical-align: bottom;
      /* 垂直對齊底部 */
      margin-bottom: 1cm;
      /* 設定下邊距 */
    }
  }


  /* 隱藏不需要列印的元素 */
  header,
  .share-container,
  .column-toc-section,
  .toc-expand-btn,
  .footer-base,
  .inline-cta,
  .column-contact {
    display: none !important;
  }


  /* 重置頁面樣式 */
  body {
    margin: 0 !important;
    /* padding: 64px 48px !important; */
    background: white !important;
    font-size: 12pt !important;
    line-height: 1.4 !important;
  }

  /* 確保內容容器正確顯示 */
  .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    /* padding: 0 !important; */
  }

  /* 標題樣式 */
  .column-header {
    height: auto !important;
    min-height: auto !important;
    background: none !important;
    color: black !important;
    padding: 20px 0 !important;
    margin-bottom: 20px !important;
  }

  .column-header-content h1 {
    color: black !important;
    font-size: 24pt !important;
    margin-bottom: 10px !important;
  }

  .column-header-content p {
    color: black !important;
    font-size: 10pt !important;
    margin-bottom: 10px !important;
  }

  /* 摘要樣式 */
  .summary {
    font-size: 13pt !important;
    line-height: 1.6;
    margin-bottom: 20px !important;
  }





  /* 圖片樣式  */
  .column-content-article img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 15px 0 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    page-break-before: auto !important;
    page-break-after: auto !important;
  }

  /* 表格樣式 */
  .table-container {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    margin-bottom: 15px !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    border: none !important;

  }






  /* 確保所有連結都不顯示網址 */
  a[href^="http"]::after,
  a[href^="https"]::after,
  a[href^="/"]::after {
    content: none !important;
  }

  /* 作者區塊樣式 */
  .author-section {
    padding: 20px !important;
    margin-top: 30px !important;
    margin-bottom: 30px !important;
    border-top: 1px solid #E0E0E0 !important;
    border-bottom: 1px solid #E0E0E0 !important;
    background-color: #f9f9f9 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .author-section h3 {
    font-size: 12pt !important;
    margin-bottom: 10px !important;
  }

  .author-section p {
    font-size: 10pt !important;
    margin-bottom: 8px !important;
  }

  /* 強制分頁控制 */
  .column-content-article h2:first-of-type {
    page-break-before: auto !important;
  }

  /* 確保內容不會被切斷 */
  p,
  h2,
  h3,
  h4,
  h5,
  blockquote,
  .table-container {
    orphans: 3 !important;
    widows: 3 !important;
  }

}

/* [TF-985]專欄列表頁 */

  /* ── Column List Page ─────────────────────────────── */
        .column-list-hero .container,
        .column-list-wrapper .container {
            width: 100%;
            max-width: 100%;
            padding-left: 64px;
            padding-right: 64px;
        }

        .column-list-hero {
            padding: 48px 0 40px;
            background:
                linear-gradient(to right, #fff 45%, rgba(255, 255, 255, 0.5) 62%, transparent 78%),
                url('/images/column_img/column-list-hero-bg.png') right center / cover no-repeat;
            border-bottom: 1px solid #e0e0e0;
        }

        .column-list-hero h1 {
            font-size: 38.4px;
            font-weight: 700;
            color: #558032;
            margin: 0;
        }

        .column-list-hero .breadcrumb-text {
            padding-left: 0 !important;
            padding-right: 0 !important;
            margin: 0 0 10px;
        }

        /* Layout */
        .column-list-wrapper {
            padding: 40px 0 60px;
        }

        .column-list-layout {
            display: flex;
            gap: 48px;
            align-items: flex-start;
        }

        /* Filter Panel Sidebar */
        .filter-panel {
            padding: 24px;
            background-color: #F9F9F9;
            border-radius: 8px;
            border: 1px solid #E7E7E7;
            flex: 0 0 330px;
            width: 330px;
            position: sticky;
            top: 140px;
            max-height: calc(100vh - 170px);
            overflow-y: auto;
        }

        @media screen and (min-width:1800px){
           .filter-panel {
            top: 100px;
            max-height: calc(100vh - 140px);
        }
            
        }

        .filter-panel-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
        }

        .filter-title {
            font-size: 16px;
            font-weight: 700;
            color: #222;
        }

        .filter-clear-all {
            background: none;
            border: none;
            padding: 0;
            font-size: 12.8px;
            color: #999;
            cursor: pointer;
            transition: color 0.2s;
            display: none;
        }

        .filter-clear-all:hover {
            color: #555;
        }

        .filter-badge-hot{
          display: inline-block;
          width: 10px;
          height: 10px;
          background: linear-gradient(135deg, #FF4B1F 0%, #FF9068 100%);
          border-radius: 50%;
          border: 1px solid #fff;
          vertical-align: middle;
          margin-left: 4px;
        }

        .filter-divider {
            border: none;
            border-top: 1px solid #e8e8e8;
            margin: 4px 0;
        }

        .filter-group {
            margin-bottom: 2px;
        }

        .filter-group-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            background: none;
            border: none;
            padding: 10px 0;
            font-size: 12.48px;
            font-weight: 700;
            letter-spacing: 0.075em;
            color: #444;
            text-transform: uppercase;
            cursor: pointer;
        }

        .filter-chevron {
            transition: transform 0.25s ease;
            color: #888;
            font-size: 12px;
        }

        .filter-group.collapsed .filter-chevron {
            transform: rotate(180deg);
        }

        .filter-group-body {
            overflow: hidden;
            transition: max-height 0.4s ease;
            max-height: 1200px;
        }

        .filter-group.collapsed .filter-group-body {
            max-height: 0;
        }

        .filter-group.collapsed .filter-show-more {
            display: none;
        }

        .filter-option {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 5px 0;
            cursor: pointer;
            user-select: none;
        }

        .filter-checkbox {
            flex-shrink: 0;
            width: 18px;
            height: 18px;
            border: 2px solid #ccc;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s, border-color 0.2s;
            background: #fff;
        }

        .filter-checkbox.checked {
            background: #81b743;
            border-color: #81b743;
        }

        .filter-checkbox.checked::after {
            content: '';
            display: block;
            width: 10px;
            height: 6px;
            border-left: 2px solid #fff;
            border-bottom: 2px solid #fff;
            transform: rotate(-45deg) translateY(-1px);
        }

        .filter-label {
            font-size: 14.4px;
            font-weight: 400;
            color: #555;
            transition: color 0.2s;
        }

        .filter-label i{
          color:#555;
          margin-left:4px;
        }

        .filter-option:hover .filter-label {
            color: #222;
        }

        .filter-option.selected .filter-label {
            color: #222;
            font-weight: 600;
        }

        .hidden-option {
            display: none;
        }

        .filter-show-more {
            display: inline-block;
            font-size: 13.6px;
            color: #81b743;
            text-decoration: none;
            padding: 4px 0 6px;
            font-weight: 500;
        }

        .filter-show-more:hover {
            color: #6a9a36;
            text-decoration: underline;
        }

        /* Article List */
        .column-list-articles {
            flex: 1;
            min-width: 0;
        }

        .column-list-item {
            display: flex;
            gap: 20px;
            padding: 24px 0;
            border-bottom: 1px solid #ebebeb;
            text-decoration: none !important;
            color: inherit;
            align-items: flex-start;
        }

        .column-list-item:first-child {
            padding-top: 0;
        }

        .column-list-thumb {
            flex: 0 0 200px;
            max-width: 200px;
            aspect-ratio: 4 / 3;
            overflow: hidden;
            border-radius: 3px;
            background: #eee;
        }

        .column-list-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
            display: block;
        }

        .column-list-item:hover .column-list-thumb img {
            transform: scale(1.04);
        }

        .column-list-body {
            flex: 1;
            min-width: 0;
        }

        .column-list-title {
            font-size: 18px;
            font-weight: 700;
            color: #3d3d3d;
            margin: 0 0 8px;
            line-height: 1.45;
            transition: color 0.2s ease;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .column-list-item:hover .column-list-title {
            color: #558032;
        }

        .column-list-meta {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
            flex-wrap: wrap;
        }

        .meta-group {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 14px;
            color: #666666;
        }

        .meta-pipe {
            color: #ccc;
            font-size: 12px;
        }

        .column-list-summary {
            font-size: 16px;
            color: #6d6d6d;
            font-weight: 400;
            margin: 0;
            line-height: 1.65;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* Pagination */
        .column-pagination {
            padding: 32px 0 16px;
        }

        /* RWD */
        /* filter-panel 側欄 <-> 全螢幕遮罩＋按鈕 的切換斷點，見下方 @media (max-width: 991px) */
        @media (max-width: 991px) {
            .filter-panel {
                display: none;
                position: fixed !important;
                inset: 0;
                top: 0 !important;
                width: 100% !important;
                height: 100%;
                max-height: 100vh !important;
                border-radius: 0 !important;
                border: none !important;
                overflow: hidden;
                padding: 0;
                flex-direction: column;
                z-index: 1050;
                background: #fff;
            }

            .filter-panel.mobile-open {
                display: flex;
            }

            .filter-panel-scroll {
                flex: 1;
                min-height: 0;
                overflow-y: auto;
                padding: 0 24px;
            }

            .filter-panel-header {
                display: none;
            }

            .filter-panel > .filter-divider:first-of-type {
                display: none;
            }

            .filter-group-body {
                max-height: 0;
            }

            .filter-group:not(.collapsed) .filter-group-body {
                max-height: 1200px;
            }
        }

        @media (max-width: 768px) {

            .column-list-hero .container,
            .column-list-wrapper .container {
                padding-left: 32px;
                padding-right: 32px;
            }


            .column-list-hero h1 {
                font-size: 28.8px;
            }

            .column-list-layout {
                flex-direction: column;
                gap: 0;
            }

            .column-list-item {
                flex-direction: column;
                gap: 12px;
            }

            .column-list-thumb {
                flex: none;
                width: 100%;
                max-width: 100%;
                height: auto;
                aspect-ratio: 4 / 3;
            }

            .column-list-title {
                font-size: 24px;
            }
                        .column-list-summary {
                -webkit-line-clamp: 4;
            }
        }

        @media (max-width: 480px) {
            .column-list-hero {
                padding: 32px 0 28px;
            }

            .column-list-hero h1 {
                font-size: 24px;
            }



        }

/* 次分類頁樣式 */

.category-list-hero {
    padding: 24px 0 36px;
    background:
        linear-gradient(to right, #fff 50%, rgba(255,255,255,0.6) 68%, transparent 85%),
        url('/images/column_img/column-list-hero-bg.png') right center / cover no-repeat;
    border-bottom: 1px solid #e0e0e0;
}

/* 991px 以下，header 變成 fixed（見 header-v3-next.css），.category-list-hero
   原本用 padding-top: var(--tf-hd2-header-h) 剛好貼齊 header 底部，這裡疊加
   16px 讓上方多留一點空間；用同樣的 .tf-hd2 ~ .category-list-hero 選擇器
   （specificity 相同）+ column.css 在 head_style 較晚載入來覆蓋 header-v3-next.css
   的原始值，不直接改 header-v3-next.css 是因為那個選擇器同時共用給其他頁面
   （.header-title-bg 等），改了會波及非本頁的版面。 */
@media screen and (max-width:991px){
  .tf-hd2 ~ .category-list-hero {
    padding-top: calc(var(--tf-hd2-header-h) + 16px);
    padding-bottom:24px;
  }
}

.category-list-hero .container {
    width: 100%;
    max-width: 100%;
    padding-left: 64px;
    padding-right: 64px;
}

.category-list-hero .breadcrumb-text {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0px;
}

.category-list-hero h1 {
    font-size: 35.2px;
    font-weight: 700;
    color: #558032;
    margin: 0 0 6px;
    line-height: 1.2;
}

.category-hero-subtitle {
    font-size: 35.2px;
    font-weight: 400;
    color: #555;
    margin: 0 0 12px;
    line-height: 1.2;
}

.category-hero-desc {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.category-hero-desc.expanded {
    max-height: 200px;
}

.category-hero-desc p {
    font-size: 16px;
    color: #3D3D3D;
    line-height: 1.7;
    padding-top: 12px;
    padding-bottom: 12px;
    max-width: 100%;
}

.category-hero-readmore {
    background: none;
    border: none;
    color: #558032;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    margin-top: 2px;
}

.category-hero-readmore i {
    transition: transform 0.3s;
}

/* View toggle */
.category-view-toggle {
    display: flex;
    justify-content: flex-end;
    gap: 0;
    margin-bottom: 16px;
    padding-bottom: 12px;
}

.view-btn {
    width: 32px;
    height: 32px;
    background: none;
    border: 1px solid #ddd;
    color: #aaa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14.4px;
    transition: all 0.2s;
}

.view-btn.active,
.view-btn:hover {
    background: #558032;
    border-color: #558032;
    color: #fff;
}

/* first item after view toggle has no top padding */
.category-view-toggle + .column-list-item {
    padding-top: 0;
}

/* Grid View */
.column-list-articles.grid-view {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.column-list-articles.grid-view .category-view-toggle,
.column-list-articles.grid-view .mobile-filter-trigger-wrap,
.column-list-articles.grid-view .column-pagination,
.column-list-articles.grid-view #waterfall-loading {
    grid-column: 1 / -1;
}

/* TF-1012：報告列表卡片實際包在 #pageBlocks > .column-list-page-block 裡（供分頁/瀑布流 JS 記錄目前頁碼），
   grid-view 需要 .column-list-item 是 grid 容器的直接子項才會排成多欄，故讓中間這兩層包裹用的 div
   以 display:contents 從版面樹「隱形」，只在 grid-view 生效，不影響 list-view 既有排版 */
.column-list-articles.grid-view #pageBlocks,
.column-list-articles.grid-view .column-list-page-block {
    display: contents;
}

.column-list-articles.grid-view .column-list-item {
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-bottom: none;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}

.column-list-articles.grid-view .column-list-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.column-list-articles.grid-view .column-list-thumb {
    flex: none;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 0;
}

.column-list-articles.grid-view .column-list-body {
    padding: 14px 16px 16px;
}

.column-list-articles.grid-view .column-list-title {
    font-size: 18px;
    margin-bottom: 8px;
    -webkit-line-clamp: 3;
}

.column-list-articles.grid-view .column-list-summary {
    -webkit-line-clamp: 4;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .column-list-articles.grid-view {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

  .category-list-hero .container {
    width: 100%;
    max-width: 100%;
    padding-left: 32px;
    padding-right: 32px;
}

.category-hero-desc p {
    max-width: 100%;
}

    .column-list-articles.grid-view {
        grid-template-columns: 1fr;
    }
}

/* Filter tags link */
.filter-showtags-link {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e8e8e8;
}

.filter-showtags-link a {
    font-size: 13.2px;
    color: #81b743;
    text-decoration: none;
    font-weight: 500;
}

.filter-showtags-link a:hover {
    text-decoration: underline;
}

.no-result-contact-link {
    color: #558032;
    font-weight: 600;
    text-decoration: underline;
}


/* Mobile Filter Overlay Components */
.mobile-filter-trigger-wrap {
    display: none;
}

.mobile-filter-trigger {
    width: 100%;
    padding: 11px 16px;
    background: #F9F9F9;
    border: 1px solid #E7E7E7;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-filter-header {
    display: none;
}

.mobile-filter-footer {
    display: none;
}


.filter-group-summary {
    display: none;
}

.filter-group.collapsed .filter-group-summary {
    display: block;
    font-size: 13.12px;
    color: #81b743;
    padding: 2px 0 10px;
    line-height: 1.5;
}

.filter-group-count {
    display: none;
    font-weight: 400;
}

@media (max-width: 991px) {
    .category-view-toggle {
        display: none !important;
    }

    .mobile-filter-trigger-wrap {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
    }

    .mobile-filter-trigger-wrap .mobile-filter-trigger {
        flex: 1;
    }

    .mobile-filter-trigger-clearall {
        flex-shrink: 0;
        background: none;
        border: none;
        color: #444;
        font-size: 14px;
        cursor: pointer;
        padding: 0;
        white-space: nowrap;
    }

    .mobile-filter-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 24px 16px;
        border-bottom: 1px solid #e8e8e8;
        flex-shrink: 0;
        background: #fff;
    }

    .mobile-filter-title {
        font-size: 20.8px;
        font-weight: 700;
        color: #1a1a1a;
    }

    .mobile-filter-close {
        background: none;
        border: none;
        font-size: 25.6px;
        color: #555;
        cursor: pointer;
        padding: 0 4px;
        line-height: 1;
    }

    .filter-group-count {
        display: inline;
    }

    .mobile-filter-footer {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 16px 24px 24px;
        border-top: 1px solid #e0e0e0;
        flex-shrink: 0;
        background: #fff;
    }

    .mobile-filter-clearall-btn {
        display: none;
        background: none;
        border: none;
        color: #444;
        font-size: 14px;
        cursor: pointer;
        padding: 0;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .mobile-filter-apply-btn {
        flex: 1;
        background: #558032;
        color: #fff;
        border: none;
        padding: 14px;
        border-radius: 8px;
        font-size: 15.2px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
}

/* CTA Section */
.report-cta-section {
    background: #f5f6f5;
    padding: 48px 0;
    border-top: 1px solid #e0e0e0;
}

.report-cta-section .container {
    width: 100%;
    max-width: 100%;
    padding-left: 64px;
    padding-right: 64px;
}

.report-cta-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.report-cta-section p {
    font-size: 15.2px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 24px;
}

.report-cta-btn {
    display: inline-block;
    background: #558032;
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15.2px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s;
}

.report-cta-btn:hover {
    background: #6ba900;
}

/* RWD */
@media (max-width: 768px) {
    .report-cta-section .container {
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* === Tag List Page === */

.tag-list-hero .container,
.tag-list-wrapper .container {
    width: 100%;
    max-width: 100%;
    padding-left: 64px;
    padding-right: 64px;
}

.tag-list-hero {
    position: relative;
    padding: 24px 0 40px;
    border-bottom: 1px solid #e0e0e0;
    overflow: hidden;
}

.tag-list-hero::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 560px;
    height: 400px;
    background: radial-gradient(ellipse at 60% 40%, rgba(129, 183, 67, 0.18) 0%, rgba(129, 183, 67, 0.06) 50%, transparent 72%);
    pointer-events: none;
}

.tag-hero-content {
    position: relative;
    z-index: 1;
    max-width: 100%;
}

.tag-list-hero .breadcrumb-text {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0px;
}

.tag-list-hero h1 {
    font-size: 38.4px;
    font-weight: 700;
    color: #558032;
    margin: 0 0 16px;
}

.tag-hero-desc {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

.tag-list-wrapper {
    padding: 32px 0 60px;
}

/* Toolbar：Search Bar + Filter Bar 並排一行 */
.tag-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 28px;
}

/* Search bar */
.tag-search-bar {
    display: flex;
    flex: 0 0 auto;
}

.tag-search-input-wrap {
    position: relative;
}

/* .tag-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 14.4px;
    pointer-events: none;
} */

.filter-panel .tag-search-input-wrap {
    flex: 1;
}

.tag-search-input {
    padding: 10px 14px 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px 0 0 6px;
    font-size: 14.4px;
    color: #333;
    outline: none;
    width: 100%;
    transition: border-color 0.2s;
}

.tag-search-input:focus {
    border-color: #81b743;
}

.tag-search-btn {
    padding: 10px 24px;
    background: #558032;
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    font-size: 14.4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.tag-search-btn i {
   
    color: #fff;
  
}

.tag-search-btn:hover {
    background: #3f6126;
}

/* Filter bar */
.tag-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
}



.tag-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tag-filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #444;
    white-space: nowrap;
}

.tag-topic-select-wrap {
    position: relative;
}

.tag-topic-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 7px 32px 7px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    cursor: pointer;
    outline: none;
    min-width: 180px;
}

.tag-topic-select:focus {
    border-color: #81b743;
}

/* Tag cards grid */
.tag-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.tag-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid #558032;
    border-top: 3px solid #558032;
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tag-card:hover {
    border-color: #81b743;
    box-shadow: 0 2px 10px rgba(81, 128, 0, 0.1);
}

.tag-card-title {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    color: #558032;
    margin-bottom: 10px;
}

.tag-card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.55;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-card-count {
    font-size: 12.8px;
    font-weight: 700;
    color: #3d3d3d;
    margin-top: auto;
}

/* Tags 總覽頁分頁沿用全站共用的 .column-pagination（與 sample 一致），但上下間距
   要對齊 .tag-cards-grid：蓋掉 .column-pagination 原本設計給研究報告列表頁用的
   padding:32px 0 16px，改用 margin-bottom 鎖定跟上方 .tag-cards-grid 的
   margin-bottom:40px 疊合收縮後一樣的值，並用 overflow:hidden 避免內部
   ul.pagination 的 margin 再往外疊縮；用 .tag-list-wrapper 限定範圍，
   不影響研究報告列表頁沿用的 .column-pagination */
.tag-list-wrapper .column-pagination {
    /* padding: 0; */
    margin: 0 0 40px;
    overflow: hidden;
}

.tag-list-wrapper .column-pagination .pagination {
    margin: 0;
}

@media (max-width: 1100px) {
    .tag-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .tag-filter-sort-group {
        margin-left: 0;
    }
}

@media (max-width: 900px) {
    .tag-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tag-list-hero .container,
    .tag-list-wrapper .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .tag-list-hero h1 {
        font-size: 28.8px;
    }

    .tag-toolbar,
    .tag-filter-bar {
        gap: 10px 16px;
    }

    .tag-filter-group,
    .tag-topic-select-wrap,
    .tag-topic-select,
    .tag-search-bar {
        width: 100%;
    }

    .tag-search-input-wrap {
        flex: 1;
        min-width: 0;
    }

    .tag-search-input {
        width: 100%;
    }

    .tag-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .tag-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* === Tag Page === */

.tag-page-hero {
    background:
        linear-gradient(to right, #fff 50%, rgba(255, 255, 255, 0.5) 70%, transparent 88%),
        url('/images/column_img/column-list-hero-bg.png') right center / cover no-repeat;
}

.tag-page-hero h1 {
    font-size: 38.4px;
    font-weight: 700;
    color: #558032;
    margin: 0 0 6px;
}

.tag-page-wrapper {
    padding: 32px 0 60px;
}

.tag-page-wrapper .container {
    width: 100%;
    max-width: 100%;
    padding-left: 64px;
    padding-right: 64px;
}

.tag-page-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.tag-page-nav .category-view-toggle {
    margin-bottom: 0;
    padding-bottom: 12px;
}

.tag-page-tabs {
    display: flex;
}

.tag-page-tab {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 15.2px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.tag-page-tab.active {
    color: #558032;
    font-weight: 700;
    border-bottom-color: #558032;
}

.tag-page-tab:hover:not(.active) {
    color: #444;
}

/* "Show More Tags" overlay */
.column-list-thumb {
    position: relative;
}

.tag-report-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(81, 128, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .tag-page-wrapper .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .tag-page-hero h1 {
        font-size: 28.8px;
    }
}

/* Go Top 按鈕樣式 */
#go-top-btn {
    display: none;
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #558032;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: opacity 0.2s, background 0.2s;
}
#go-top-btn:hover { background: #3f6126; }