@charset "utf-8";
@import url("reset.css");
@import url("fontawesome_all.css");
@import url("google_fonts_local.css");
@import url("aos.css");

/* ========================================================================
   基礎設定 / 無障礙 / 全域
   ======================================================================== */

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  font-size: 1rem;
  font-family: "Noto Sans TC", "文泉驛正黑", "Microsoft JhengHei", sans-serif;
  color: #333;
  background: #fff;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* 編輯器內容裡的自架影片（<video>）沒有這條的話會用原始寬度撐開，
   容器比較窄時就會被 body 的 overflow-x:hidden 裁掉、看起來像完全沒顯示 */
video {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

#wrapper {
  width: 100%;
}

.sr-only,
.guidebrick {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== 無障礙 accesskey（Alt+U 上方 / Alt+C 中央 / Alt+Z 下方） ========== */
/* 一般「跳到主要內容」skip link：聚焦時固定於畫面左上角 */
.sr-only-focusable:focus,
.sr-only-focusable:active {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10001;
  width: auto;
  height: auto;
  margin: 0;
  padding: 9px 18px;
  clip: auto;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  background: #632318;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-decoration: none;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(46, 16, 11, 0.32);
}

/* :::導盲磚：讓每個區塊成為定位基準，聚焦時 ::: 出現在該區塊左上角，
   並以自我錨點捲動到正確區塊（Alt+U→header、Alt+C→main、Alt+Z→footer） */
#header,
#main-content,
#footer {
  position: relative;
}

#main-content,
#footer {
  scroll-margin-top: 24px;
}

/* ========== 響應式隱藏（加 class 即可在指定寬度以下隱藏） ========== */
@media screen and (max-width: 1200px) {
  .hide-max-1200 {
    display: none !important;
  }
}

@media screen and (max-width: 1100px) {
  .hide-max-1100 {
    display: none !important;
  }
}

@media screen and (max-width: 900px) {
  .hide-max-900 {
    display: none !important;
  }
}

@media screen and (max-width: 768px) {
  .hide-max-768 {
    display: none !important;
  }
}

@media screen and (max-width: 560px) {
  .hide-max-560 {
    display: none !important;
  }
}

.guidebrick:focus,
.guidebrick:active {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10001;
  width: auto;
  height: auto;
  margin: 0;
  padding: 6px 14px;
  clip: auto;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  background: #632318;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-decoration: none;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(46, 16, 11, 0.32);
}

:focus-visible {
  outline: 2px solid #8a6510;
  outline-offset: 2px;
}

/* 頁首是深色酒紅漸層背景，深金色外框在上面對比不足（約 2.2:1），改用頁首本來就在用的淺色 #e2ceb1 */
#header :focus-visible {
  outline-color: #e2ceb1;
}

@media screen and (max-width: 900px) {
  #main-content,
  #footer {
    scroll-margin-top: calc(var(--site-topnav-h, 54px) + var(--site-quickbar-h, 36px) + 8px);
  }
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 9998;
}

.bg-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* ========================================================================
   全站共用元件（.site-vtitle / .site-htitle / .btn-more）
   ======================================================================== */
/* ========================================================================
   全站共用元件
   1) .site-vtitle  中英直式標題
   2) .site-htitle  中英橫式標題（英上中下）
   3) .btn-more     更多按鈕（含箭頭）
   4) .text-left / .text-center / .text-right  文字對齊
   5) .w-*  常用欄寬（表格 th/td 可直接套用）
   ======================================================================== */

/* -------- 文字對齊（全站共用） -------- */
.text-left {
  text-align: left !important;
}

.text-center {
  text-align: center !important;
}

.text-right {
  text-align: right !important;
}

/* -------- 常用欄寬（全站共用） -------- */
.w-60 {
  width: 60px;
  min-width: 60px;
  max-width: 60px;
}

.w-80 {
  width: 80px;
  min-width: 80px;
  max-width: 80px;
}

.w-90 {
  width: 90px;
  min-width: 90px;
  max-width: 90px;
}

.w-100 {
  width: 100px;
  min-width: 100px;
  max-width: 100px;
}

.w-120 {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
}

.w-150 {
  width: 150px;
  min-width: 150px;
  max-width: 150px;
}

.w-180 {
  width: 180px;
  min-width: 180px;
  max-width: 180px;
}

.w-200 {
  width: 200px;
  min-width: 200px;
  max-width: 200px;
}

.w-10 {
  width: 10%;
}

.w-12 {
  width: 12%;
}

.w-14 {
  width: 14%;
}

.w-16 {
  width: 16%;
}

.w-18 {
  width: 18%;
}

.w-20 {
  width: 20%;
}

.w-22 {
  width: 22%;
}

.w-25 {
  width: 25%;
}

.w-30 {
  width: 30%;
}

.w-auto {
  width: auto;
}

/* -------- 中英直式標題 -------- */
.site-vtitle {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 15px;
  line-height: 1.5;
}

.site-vtitle-cn {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: "Noto Serif TC", "Playfair Display", serif;
  font-size: clamp(1.875rem, 3vw, 2.875rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #2d2220;
  margin: 0;
}

.site-vtitle-en {
  writing-mode: vertical-rl;
  font-family: "Playfair Display", "Noto Serif TC", serif;
  /* font-style: italic; */
  font-size: clamp(0.8125rem, 1vw, 1.125rem);
  letter-spacing: 0.14em;
  color: #7d6a3f; /* 無障礙 1.4.3：淡底（#fffaf2／#f7f5ef／白）上 ≥4.8:1 */
  margin-top: 5px;
  white-space: nowrap;
}

/* -------- 中英橫式標題（英上中下） -------- */
.site-htitle {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.5;
  font-weight: normal;
}

.site-htitle-en {
  font-family: "Playfair Display", "Noto Serif TC", serif;
  /* font-style: italic; */
  font-size: clamp(0.9375rem, 1.3vw, 1.25rem);
  letter-spacing: 0.05em;
  color: #7d6a3f; /* 無障礙 1.4.3：淡底（#fffaf2／#f7f5ef／白）上 ≥4.8:1 */
}

/* 精選典藏標題底色偏淺（#e2ceb1），沿用 #322c20（跟 .home-about-title .site-htitle-en 同色），對比實測 9:1 */
#home-collection-title .site-htitle-en {
  color: #322c20;
}

.site-htitle-cn {
  font-family: "Noto Serif TC", "Playfair Display", serif;
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #312c20;
  margin: 0;
}

/* -------- 更多按鈕（含箭頭） -------- */
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 26px;
  border: 1px solid #632318;
  border-radius: 2px;
  background: transparent;
  color: #632318;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-more .btn-more-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn-more:hover,
.btn-more:focus-visible {
  background: #632318;
  color: #fff;
  box-shadow: 0 6px 16px rgba(46, 16, 11, 0.22);
}

.btn-more:hover .btn-more-arrow,
.btn-more:focus-visible .btn-more-arrow {
  transform: translateX(4px);
}

/* -------- RWD：手機版改為水平標題 -------- */
@media screen and (max-width: 900px) {
  .site-vtitle {
    flex-direction: row-reverse;
    align-items: baseline;
    gap: 12px;
  }

  .site-vtitle-cn {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    letter-spacing: 0.06em;
  }

  .site-vtitle-en {
    writing-mode: horizontal-tb;
    transform: none;
    margin-top: 0;
    font-size: 0.8125rem;
  }

  .site-htitle-en {
    font-size: 0.8125rem;
  }

  .site-htitle-cn {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }
}

@media screen and (max-width: 560px) {
  .site-vtitle-cn {
    font-size: 1.3125rem;
  }

  .site-vtitle-en {
    font-size: 0.75rem;
  }

  .site-htitle-cn {
    font-size: 1.4125rem;
  }

  .site-htitle-en {
    font-size: 0.75rem;
  }
}

/* ========================================================================
   Header
   ======================================================================== */
/* ========== Header（參考 drepungloseling 內頁版型，配色改為博物館深褐） ========== */

#header {
  position: relative;
  width: 100%;
  background-color: #632318;
  background-image:
    linear-gradient(180deg, #3d150f 0%, #4e1b13 22%, #572013 48%, #632318 72%, #734028 100%);
}

#header .wrap.header-inner-wrap {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  gap: 16px 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 20px 12px;
  box-sizing: border-box;
}

#header .header-inner-brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

#header .site-header-logo-link {
  display: block;
  line-height: 1.5;
}

#header .wrap .logo {
  display: block;
  max-width: 220px;
  height: auto;
}

#header .header-inner-right {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 20px 0;
  position: relative;
}

#header .header-inner-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  padding: 0 10px;
}

#header .header-inner-quicklinks {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

#header .header-inner-quicklinks a {
  color: #e0b0a5;
  text-decoration: none;
  transition: color 0.15s ease;
}

#header .header-inner-quicklinks a:hover,
#header .header-inner-quicklinks a:focus-visible {
  color: #fff;
}

#header .header-inner-quicklinks a i {
  margin-right: 4px;
  font-size: 0.75rem;
}

#header .header-inner-qsep {
  color: rgba(212, 197, 172, 0.45);
  user-select: none;
  pointer-events: none;
}

#header .header-inner-lang {
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  color: #e0b0a5;
}

#header .header-inner-lang > i {
  font-size: 0.75rem;
  color: inherit;
}

#header .header-inner-lang-link {
  color: #d4c5ac;
  text-decoration: none;
  transition: color 0.15s ease;
}

#header .header-inner-lang-link:hover,
#header .header-inner-lang-link:focus-visible {
  color: #fff;
}

#header .header-inner-lang-sep {
  color: rgba(212, 197, 172, 0.45);
  user-select: none;
  pointer-events: none;
}

#header ul.site-main-nav {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 2px;
}

#header ul.site-main-nav > li {
  position: relative;
  font-size: 0.9375rem;
  padding: 0 0.25vw;
  color: #fff;
}

#header ul.site-main-nav > li > a {
  display: inline-block;
  padding: 6px 0.6vw;
  color: #e2ceb1;
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 0.15s ease;
}

#header ul.site-main-nav > li > a:hover,
#header ul.site-main-nav > li > a:focus-visible {
  color: #fff;
}

#header ul.site-main-nav .sticky-nav-logo-item {
  display: none;
}

#header ul.site-main-nav.on {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  margin: 0;
  padding: 10px max(20px, calc((100vw - 1400px) / 2));
  background: linear-gradient(180deg, #3d150f 0%, #4e1b13 28%, #572013 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
  justify-content: flex-start;
  align-items: center;
  gap: 12px 18px;
}

#header ul.site-main-nav.on .sticky-nav-logo-item {
  display: inline-flex;
  align-items: center;
  margin: 0 auto 0 0;
  padding: 0;
}

#header ul.site-main-nav.on .sticky-nav-logo-item a {
  padding: 0;
}

#header ul.site-main-nav.on .sticky-nav-logo-item img {
  height: 45px;
  width: auto;
}

/* ========== 桌面版子選單（參考 drepungloseling） ========== */
#header ul.site-main-nav > li ul {
  display: block;
  list-style: none;
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: 12px;
  transform: translateX(-50%) translateY(-8px);
  transform-origin: top center;
  z-index: 99;
  width: 220px;
  padding: 0;
  line-height: 1.5;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.19);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.24s ease, visibility 0.24s ease;
}

#header ul.site-main-nav > li ul::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

#header ul.site-main-nav > li:hover > ul,
#header ul.site-main-nav > li:focus-within > ul {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* 無障礙 1.4.13：按 Esc 關閉展開中的子選單（jquery_action.js 加上 is-submenu-dismissed），
   滑鼠移開或焦點離開該選單項目後移除，恢復 hover／focus 展開 */
#header ul.site-main-nav > li.is-submenu-dismissed > ul,
#header ul.site-main-nav > li.is-submenu-dismissed:hover > ul,
#header ul.site-main-nav > li.is-submenu-dismissed:focus-within > ul {
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
}

#header ul.site-main-nav > li ul li {
  position: relative;
  padding: 10px 20px 10px 35px;
  text-align: left;
  border-bottom: 1px solid #ebebeb;
}

#header ul.site-main-nav > li ul li:last-child {
  border: 0;
}

#header ul.site-main-nav > li ul li a {
  position: relative;
  display: block;
  padding: 0 0 0 18px;
  color: #3d2817 !important;
  letter-spacing: 0.08em;
  font-weight: normal;
  text-decoration: none;
  text-align: left;
}

#header ul.site-main-nav > li ul li a::before {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f105";
  color: #632318;
}

#header ul.site-main-nav > li ul li:hover {
  background: #faf7f2;
}

#header ul.site-main-nav > li ul li a:hover,
#header ul.site-main-nav > li ul li a:focus-visible {
  color: #632318 !important;
}

#header ul.site-main-nav.on > li ul {
  background: #fffef8;
}

@media (prefers-reduced-motion: reduce) {
  #header ul.site-main-nav > li ul {
    transition: none;
    transform: translateX(-50%);
  }
}

#header .header-inner-mobile-toggle,
#header .wrap #mobileMenu {
  display: none;
}

#header .home-quickbar {
  display: none;
}

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

/* ========== 手機版（與 drepungloseling 內頁一致） ========== */
@media screen and (max-width: 900px) {
  .mobile-header-logo {
    display: inline-flex;
    align-items: center;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    line-height: 1.5;
    text-decoration: none;
  }

  .mobile-header-logo img {
    /* height: 34px; */
    width: auto;
    max-height: 45px;
  }

  #header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9997;
    background: rgba(99, 35, 24, 0.96);
    display: flex;
    flex-direction: column;
  }

  #header .header-inner-brand {
    display: none !important;
  }

  #header .wrap.header-inner-wrap {
    position: relative;
    flex: 0 0 auto;
    min-height: var(--site-topnav-h, 54px);
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 10px 56px 10px 62px;
    background: transparent !important;
    align-items: center;
    justify-content: flex-end;
  }

  #header .header-inner-tools {
    display: none !important;
  }

  #header .header-inner-right {
    width: 100%;
    position: static;
  }

  #header ul.site-main-nav,
  #header ul.site-main-nav.on {
    display: none !important;
  }

  #header .header-inner-mobile-toggle,
  #header .wrap #mobileMenu {
    display: flex !important;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.12);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-sizing: border-box;
    z-index: 3;
  }

  #header .wrap #mobileMenu span {
    width: 20px;
    height: 2px;
    margin-top: 5px !important;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.92);
    display: block;
  }

  #header .wrap #mobileMenu span:first-child {
    margin-top: 0 !important;
  }

  #header .home-quickbar {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: var(--site-quickbar-h, 36px);
    position: fixed;
    top: var(--site-topnav-h, 54px);
    left: 0;
    right: 0;
    z-index: 9996;
    box-shadow: 0 4px 14px rgba(22, 12, 8, 0.14);
    border-bottom: 1px solid rgba(99, 35, 24, 0.18);
  }

  #header .home-quickbar-links {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0 4px 0 8px;
    background: #2a2624;
  }

  #header .home-quickbar-links a {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: rgba(245, 242, 240, 0.92);
    text-decoration: none;
    line-height: 1.5;
    padding: 0 2px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.15s ease, background 0.15s ease;
  }

  #header .home-quickbar-links a:first-child {
    border-left: 0;
  }

  #header .home-quickbar-links a:hover,
  #header .home-quickbar-links a:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
  }

  #header .home-quickbar-lang {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px 0 3px;
    background: #3a3430;
    min-height: var(--site-quickbar-h, 36px);
    border-left: 1px solid rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
  }

  #header .home-quickbar-lang-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 44px;
    padding: 0 6px;
    white-space: nowrap;
  }

  #header .home-quickbar-lang-link {
    display: inline-flex;
    align-items: center;
    color: rgba(232, 215, 190, 0.95);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.15s ease;
  }

  #header .home-quickbar-lang-sep {
    color: rgba(232, 215, 190, 0.45);
    font-size: 0.75rem;
    user-select: none;
    pointer-events: none;
  }

  #header .home-quickbar-lang-inner i {
    font-size: 0.875rem;
    color: rgba(232, 215, 190, 0.92);
  }

  #header .home-quickbar-lang-link:hover,
  #header .home-quickbar-lang-link:focus-visible {
    color: #fff;
  }

  #header.on {
    background: rgba(99, 35, 24, 0.96) !important;
  }
}

@media screen and (max-width: 1024px) {
  #header .header-inner-quicklinks {
    font-size: 0.75rem;
  }

  #header ul.site-main-nav > li {
    font-size: 0.875rem;
  }
}

/* ========================================================================
   Banner
   ======================================================================== */
/* ========== 首頁 Banner：左 90% bxslider 純圖 + 右 10% 控制列 ========== */

:root {
  --home-banner-height: clamp(480px, 78vh, 860px);
}

.home-banner {
  display: flex;
  align-items: stretch;
  width: 100%;
  background: #222;
}

.home-banner-main {
  flex: 0 0 86%;
  width: 86%;
  position: relative;
  overflow: hidden;
  min-height: var(--home-banner-height);
}

#home_banner {
  display: block;
  width: 100%;
  height: 100%;
  min-height: var(--home-banner-height);
  overflow: hidden;
  position: relative;
}

#home_banner ul.bxslider {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* bxslider 初始化前：鎖定高度，只顯示第一張，避免多張圖堆疊撐高 */
#home_banner.is-loading .bxslider {
  position: relative;
  overflow: hidden;
  height: var(--home-banner-height);
  min-height: var(--home-banner-height);
  max-height: var(--home-banner-height);
}

#home_banner.is-loading .bxslider > li {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0;
  float: none !important;
}

#home_banner.is-loading .bxslider > li:not(:first-child) {
  visibility: hidden;
  opacity: 0;
}

#home_banner.is-loading .bxslider > li:first-child {
  position: relative;
  visibility: visible;
  opacity: 1;
  z-index: 1;
}

/* 有設定「相關連結」時，讓整張輪播圖可點擊：涵蓋整個可視範圍，蓋在 ::before 背景層（z-index:0）之上 */
#home_banner li a.banner-slide-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}

/* 圖片僅供 SEO／無障礙，視覺改由 li 背景 + ::before 負責（避免 img 撐不滿露出黑底） */
#home_banner li .banner-slide-img {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  z-index: -1;
}

/* 可縮放的背景層：繼承 li 的 background-image，永遠 cover 鋪滿 */
#home_banner li::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: inherit;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transform: scale(1.12);
  transform-origin: center center;
  will-change: transform;
  pointer-events: none;
}

@keyframes home-banner-zoom-in {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1);
  }
}

/* 每張啟用時由 JS 在 li 加上 is-zooming，重播 zoom in */
#home_banner li.is-zooming::before {
  animation: home-banner-zoom-in 5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

#home_banner .bx-loading {
  display: none !important;
}

#home_banner .bx-wrapper img.banner-slide-img {
  position: absolute;
  width: 1px;
  height: 1px;
  max-width: none;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

#home_banner .bx-wrapper {
  margin: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  height: 100% !important;
  min-height: var(--home-banner-height);
}

#home_banner .bx-viewport {
  height: var(--home-banner-height) !important;
  min-height: var(--home-banner-height) !important;
  background: #222;
}

#home_banner li {
  position: relative;
  width: 100% !important;
  height: var(--home-banner-height) !important;
  min-height: var(--home-banner-height) !important;
  top: 0 !important;
  left: 0 !important;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

#home_banner .bx-wrapper .bx-controls-direction,
#home_banner .bx-wrapper .bx-pager {
  display: none !important;
}

/* 右側控制列（桌機版加寬） */
.home-banner-control {
  flex: 0 0 14%;
  width: 14%;
  min-width: 72px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0px 15px;
  background: #222222;
  color: #e3d9c6;
  box-sizing: border-box;
}

/* 社群連結可能有多筆（後台可自訂），包一層讓整組在 .home-banner-control 的直向排版中算同一個區塊 */
.home-banner-social-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.home-banner-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #e3d9c6;
  font-size: 1.125rem;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.home-banner-social:hover,
.home-banner-social:focus-visible {
  color: #fff;
  transform: translateY(-1px);
}

.home-banner-control-line {
  flex: 1 1 auto;
  width: 1px;
  min-height: 40px;
  margin: 16px 0;
  background: rgba(227, 217, 198, 0.28);
}

.home-banner-pager {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: "Playfair Display", "Noto Serif TC", serif;
  line-height: 1.5;
  text-align: center;
}

.home-banner-pager-current {
  font-size: clamp(1.375rem, 1vw, 1.875rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.home-banner-pager-sep {
  font-size: 0.875rem;
  color: rgba(227, 217, 198, 0.55);
  transform: rotate(12deg);
  margin: 2px 0;
}

.home-banner-pager-total {
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  font-weight: 500;
  color: rgba(227, 217, 198, 0.88);
}

.home-banner-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-banner-nav-divider {
  width: 20px;
  height: 1px;
  margin: 6px 0;
  background: rgba(227, 217, 198, 0.35);
}

.home-banner-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e3d9c6;
  font-size: 1.125rem;
  line-height: 1.5;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.home-banner-nav-btn:hover,
.home-banner-nav-btn:focus-visible {
  color: #fff;
}

/* 桌機版：整組控制項靠左擺放，但各項共用同一條中軸並置中（手機版維持置中） */
@media screen and (min-width: 901px) {
  .home-banner-control {
    align-items: flex-start;
    justify-content: flex-start;
    padding-left: clamp(15px, 0.1vw, 48px);
  }

  /* 讓頁碼與圖示、箭頭同為 44px 寬，中心對齊在同一條軸線上；
     並用 margin-top:auto 把分頁與上下頁推到底部，中間留大空白 */
  .home-banner-pager {
    width: 44px;
    margin-top: auto;
  }

  /* fb 下方直線改為固定較短長度，並對齊 44px 群組中軸。
     2026-10-15：輪播區高度隨寬度等比例縮小，筆電螢幕（例 1366x768）輪播只剩約 440px 高，
     直線固定長度會把頁碼與上一則／暫停／下一則擠出輪播區、「下一則」被下方區塊蓋住點不到；
     改成空間不夠時直線可以縮短（最短 0），空間足夠時維持原長度。 */
  .home-banner-control-line {
    flex: 0 1 clamp(90px, 16vh, 200px);
    height: auto;
    min-height: 0;
    margin-left: 21px;
  }

  /* 分頁（01/05）與上下頁箭頭之間保留間距 */
  .home-banner-nav {
    margin-top: 22px;
  }
}

@media screen and (max-width: 900px) {
  :root {
    --home-banner-height: clamp(360px, 92vw, 620px);
  }

  .home-banner {
    /* flex-direction: row; */
    align-items: stretch;
  }

  .home-banner-main {
    flex: 1 1 auto;
    width: auto;
    min-height: var(--home-banner-height);
  }

  .home-banner-control {
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    min-height: var(--home-banner-height);
    padding: 15px 0 0px;
  }

  /* 手機版空間較窄，fb 下方的裝飾直線不需要，隱藏騰出高度給暫停鈕 */
  .home-banner-control-line {
    display: none;
  }

  #home_banner .bx-wrapper,
  #home_banner .bx-viewport,
  #home_banner li {
    height: var(--home-banner-height) !important;
    min-height: var(--home-banner-height) !important;
  }

  .home-banner-pager-current {
    font-size: 1.25rem;
  }

  .home-banner-pager-total {
    font-size: 1rem;
  }

  .home-banner-social,
  .home-banner-nav-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #home_banner .bx-wrapper * {
    transition: none !important;
  }

  #home_banner li::before {
    transform: none !important;
    animation: none !important;
  }
}

/* ========================================================================
   手機側欄（.sidenav）
   ======================================================================== */
/* ========== 手機側欄（參考 drepungloseling） ========== */
.sidenav {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 9999;
  top: 0;
  right: 0;
  background: #fff;
  overflow: hidden;
  transition: width 0.2s ease;
  box-shadow: 0 4px 24px rgba(99, 35, 24, 0.12);
}

.sidenav .head {
  position: relative;
  padding: 15px 52px 15px 16px;
  border-top: 3px solid #8b4a38;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, #2e100b 0%, #3d150f 32%, #4e1b13 62%, #572013 100%);
}

.sidenav .head .sidenav-logo-link {
  display: inline-block;
  max-width: calc(100% - 52px);
  vertical-align: middle;
}

.sidenav .closebtn {
  position: absolute;
  top: 18px;
  right: 12px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.15s ease;
}

.sidenav .closebtn:hover,
.sidenav .closebtn:focus-visible {
  color: #fff;
}

.sidenav .closebtn i {
  position: static;
  pointer-events: none;
}

.sidenav-logo-img {
  max-width: 148px;
  max-height: 46px;
}

.sidenav .menu-top {
  flex: 1 1 auto;
  overflow-y: auto;
}

.sidenav .menu-bottom {
  flex: 0 0 auto;
  padding: 14px 12px 16px;
  background: #f7f4f0;
  text-align: center;
  color: #777;
  font-size: 0.6875rem;
  line-height: 1.65;
  border-top: 1px solid #e8e0d6;
}

.sidenav .menu-bottom .copyright a {
  color: #632318;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sidenav .menu-bottom .copyright a:hover,
.sidenav .menu-bottom .copyright a:focus-visible {
  color: #4a1a10;
}

#ajax-sidenav > div {
  position: relative;
  width: 100%;
  border-left: 5px solid #632318;
  border-bottom: 1px solid #ebebeb;
  padding: 15px 24px 12px 24px;
  line-height: 1.5;
  box-sizing: border-box;
  cursor: pointer;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  background: #fff;
  color: #222;
}

#ajax-sidenav > div a {
  color: #222;
  text-decoration: none;
}

#ajax-sidenav > div.jq-submenu.nav {
  background: #faf7f2;
  color: #632318;
  cursor: pointer;
  padding: 0;
}

#ajax-sidenav > div.jq-submenu.nav-utility {
  border-left-color: #8b5a48;
  letter-spacing: 0.06em;
}

#ajax-sidenav > div.jq-submenu.nav-utility:first-of-type {
  margin-top: 6px;
  border-top: 1px solid #e8e0d6;
}

#ajax-sidenav > div.jq-submenu.nav > a {
  display: block;
  padding: 15px 24px 12px 24px;
  color: #632318;
  text-decoration: none;
  line-height: 1.5;
}

#ajax-sidenav > div.jq-submenu.nav > a > i {
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
  width: 1.1em;
  text-align: center;
}

#ajax-sidenav > div.jq-submenu.nav > a:hover,
#ajax-sidenav > div.jq-submenu.nav > a:focus-visible {
  color: #4a1a10;
}

#ajax-sidenav > div.jq-submenu.nav-utility:hover,
#ajax-sidenav > div.jq-submenu.nav-utility:focus-within {
  background: #f3ece4;
}

/* ========== 手機側欄子選單（參考 drepungloseling） ========== */
#ajax-sidenav > div.jq-submenu:not(.srh):not(.nav) {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

#ajax-sidenav > div.jq-submenu.has-sub > a {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 52px;
  box-sizing: border-box;
}

#ajax-sidenav .jq-submenu-toggle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(99, 35, 24, 0.08);
  background: transparent;
  color: rgba(99, 35, 24, 0.65);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s ease, background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

#ajax-sidenav .jq-submenu-toggle i {
  position: static;
  pointer-events: none;
  transition: transform 0.25s ease;
}

#ajax-sidenav .jq-submenu-toggle:hover,
#ajax-sidenav .jq-submenu-toggle:focus-visible {
  color: #632318;
  background: rgba(99, 35, 24, 0.06);
}

#ajax-sidenav > div.jq-submenu.is-open > .jq-submenu-toggle {
  color: #632318;
}

#ajax-sidenav > div.jq-submenu.is-open > .jq-submenu-toggle i {
  transform: rotate(180deg);
}

.submenu-nav {
  width: 100%;
  overflow: hidden;
  display: none;
  background-color: #fafafa;
}

.submenu-nav div {
  position: relative;
  font-size: 0.875rem;
  background: #fafafa;
  line-height: 1.5;
  border-left: 5px solid rgba(99, 35, 24, 0.35); /* 第二層較淡左邊線，避免展開時斷層 */
  border-bottom: 1px solid #ebebeb !important;
  padding: 15px 30px 15px 55px !important;
  cursor: pointer;
  box-sizing: border-box;
}

.submenu-nav div::before {
  position: absolute;
  left: 30px;
  top: 45%;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f111";
  font-size: 0.375rem;
  color: rgba(99, 35, 24, 0.25);
}

.submenu-nav div a {
  font-size: 0.875rem;
  color: #222 !important;
  text-decoration: none;
}

.submenu-nav div a:hover,
.submenu-nav div a:focus-visible {
  color: #632318 !important;
}

@media screen and (max-width: 900px) {
  :root {
    --site-topnav-h: 54px;
    --site-quickbar-h: 36px;
  }

  #wrapper:has(> #header) {
    padding-top: calc(var(--site-topnav-h) + var(--site-quickbar-h));
  }
}

/* ========================================================================
   Footer
   ======================================================================== */
/* ========================================================================
   footer 下方功能區塊
   左：logo + 聯絡資訊　　右下：copyright
   ======================================================================== */
#footer {
  position: relative;
  background: #2d2220;
  color: #e2ceb1;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0px 24px 28px;
  box-sizing: border-box;
}

/* ---------- 左側：logo + 聯絡資訊 ---------- */
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.footer-logo-link {
  display: inline-block;
  line-height: 1.5;
}

.footer-logo-img {
  height: 64px;
  width: auto;
  display: block;
}

/* 電腦版：聯絡區塊 wrapper / 標題不影響原排版 */
.footer-contact-box {
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.footer-contact-box::before {
  display: none;
}

.footer-contact-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #e2ceb1;
  letter-spacing: 0.02em;
}

.footer-contact li i {
  flex: 0 0 auto;
  width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  color: #e2ceb1;
  background: none;
  border: 0;
  border-radius: 0;
}

.footer-contact li span {
  word-break: break-word;
}

/* ---------- 右側：footer-img + copyright（靠右下） ---------- */
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
}

/* 建築圖：稍微超出 footer 上緣，做出特色 */
.footer-img {
  display: block;
  width: auto;
  max-width: min(48vw, 425px);
  height: auto;
  margin-top: -45px;
  margin-bottom: 14px;
}

/* copyright 文字 + AA 圖示同一列；窄螢幕可換行，圖示落到最下方 */
.footer-copyright-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 14px;
  width: 100%;
}

.footer-copyright {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #b8987a;
  text-align: right;
  letter-spacing: 0.02em;
  overflow-wrap: break-word;
  flex: 1 1 auto;
  min-width: 0;
}

.footer-copyright a {
  color: #b8987a;
  text-decoration: underline; /* 無障礙 1.4.1：夾在文字中的連結不能只靠顏色區分，常駐底線 */
  text-underline-offset: 2px;
  font-weight: 400;
  transition: color 0.2s ease;
}

.footer-copyright a:hover,
.footer-copyright a:focus-visible {
  color: #b39a76;
  text-decoration: underline;
}

.footer-a11y-badge {
  display: inline-flex;
  flex: 0 0 auto;
  line-height: 0;
  vertical-align: middle;
}

.footer-a11y-badge img {
  display: block;
  width: 88px;
  height: 31px;
}

/* ========================================================================
   RWD（僅手機版調整）
   ======================================================================== */
@media screen and (max-width: 900px) {
  .footer-inner {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 28px;
    padding: 44px 24px 26px;
  }

  .footer-left {
    gap: 24px;
    align-items: stretch;
  }

  /* logo 置中 */
  .footer-logo-link {
    display: block;
    text-align: center;
  }

  .footer-logo-img {
    height: 54px;
    margin: 0 auto;
  }

  /* 聯絡我們獨立區塊（質感卡片） */
  .footer-contact-box {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 24px 22px 22px;
    background: rgba(226, 206, 177, 0.07);
    border: 1px solid rgba(226, 206, 177, 0.2);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    box-sizing: border-box;
  }

  .footer-contact-box::before {
    display: block;
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(226, 206, 177, 0.38), transparent);
    pointer-events: none;
  }

  .footer-contact-title {
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 16px;
    padding: 0 0 12px;
    overflow: visible;
    clip: auto;
    white-space: normal;
    border: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.28em;
    color: #c9ae8a;
    text-align: center;
  }

  .footer-contact-title::after {
    content: "";
    display: block;
    width: 34px;
    height: 1px;
    margin: 12px auto 0;
    background: #987b5f;
  }

  .footer-contact {
    gap: 14px;
  }

  .footer-contact li {
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(226, 206, 177, 0.1);
  }

  .footer-contact li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .footer-contact li i {
    width: 18px;
    margin-top: 3px;
    font-size: 0.875rem;
    color: #c9ae8a;
  }

  /* 右側：置中建築圖 + 細分隔線 + 置中 copyright */
  .footer-right {
    margin-left: 0;
    align-items: stretch;
  }

  .footer-img {
    margin: 2px auto 20px;
    width: auto;
    max-width: 300px;
    border-radius: 8px;
  }

  /* 手機：copyright 置中；空間不足時 AA 圖示整列換到最下方並置中 */
  .footer-copyright-row {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(226, 206, 177, 0.14);
  }

  .footer-copyright {
    padding-top: 0;
    border-top: 0;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.8;
    color: #b8987a;
    flex: 0 1 auto;
  }

  .footer-a11y-badge {
    order: 2; /* 確保圖示在文字下方 */
  }
}

@media screen and (max-width: 480px) {
  .footer-inner {
    padding: 36px 20px 22px;
    gap: 24px;
  }

  .footer-logo-img {
    height: 48px;
  }

  .footer-contact-box {
    padding: 20px 18px 18px;
  }

  .footer-contact-title {
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    margin-bottom: 14px;
  }

  .footer-contact li {
    font-size: 0.875rem;
    gap: 10px;
    padding-bottom: 12px;
  }

  .footer-img {
    max-width: 240px;
    margin-bottom: 18px;
  }

  .footer-copyright-row {
    padding-top: 18px;
    gap: 10px;
  }

  .footer-copyright {
    padding-top: 0;
    font-size: 0.71875rem;
  }
}

/* ========================================================================
   Loading / Go Top
   ======================================================================== */
/* ==========================================================================
   首頁載入動畫 Page Preloader（半透明展廳風格，僅 index.php）
   ========================================================================== */
html.is-preloading,
html.is-preloading body {
  overflow: hidden !important;
}

.page-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 18% 12%, rgba(99, 35, 24, 0.12) 0%, transparent 58%),
    radial-gradient(ellipse at 82% 88%, rgba(166, 136, 91, 0.16) 0%, transparent 54%),
    rgba(247, 243, 236, 0.76);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.65s ease, visibility 0.65s ease;
  overflow: hidden;
}

.page-preloader::before,
.page-preloader::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.page-preloader::before {
  width: min(600px, 92vw);
  height: min(600px, 92vw);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(99, 35, 24, 0.22) 0%, rgba(99, 35, 24, 0.1) 38%, rgba(99, 35, 24, 0.03) 58%, transparent 78%);
  filter: blur(8px);
  animation: pp-ambient-pulse 4.8s ease-in-out infinite;
}

.page-preloader::after {
  width: min(780px, 98vw);
  height: min(780px, 98vw);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(226, 206, 177, 0.24) 0%, rgba(166, 136, 91, 0.12) 34%, rgba(226, 206, 177, 0.04) 56%, transparent 76%);
  filter: blur(16px);
  animation: pp-ambient-pulse-outer 6.2s ease-in-out infinite;
}

.page-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.page-preloader-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}

.pp-exhibit {
  position: relative;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  animation: pp-exhibit-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.pp-exhibit::before,
.pp-exhibit::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.pp-exhibit::before {
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(99, 35, 24, 0.52) 0%, rgba(99, 35, 24, 0.24) 32%, rgba(166, 136, 91, 0.12) 54%, transparent 82%);
  filter: blur(12px);
  animation: pp-halo-pulse 3.6s ease-in-out infinite;
}

.pp-exhibit::after {
  width: 300%;
  height: 300%;
  background: radial-gradient(circle at center, rgba(226, 206, 177, 0.34) 0%, rgba(226, 206, 177, 0.16) 28%, rgba(166, 136, 91, 0.08) 48%, rgba(99, 35, 24, 0.05) 62%, transparent 80%);
  filter: blur(26px);
  animation: pp-halo-pulse-outer 5.4s ease-in-out infinite;
}

.pp-exhibit-frame {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 236px;
  height: 236px;
  padding: 0;
  background:
    radial-gradient(circle at center, rgba(99, 35, 24, 0.54) 0%, rgba(122, 63, 44, 0.38) 32%, rgba(154, 96, 72, 0.24) 56%, rgba(186, 140, 112, 0.12) 76%, rgba(226, 206, 177, 0.03) 90%, rgba(226, 206, 177, 0) 100%);
  border: none;
  border-radius: 50%;
  box-shadow:
    0 0 48px rgba(99, 35, 24, 0.24),
    0 0 88px rgba(226, 206, 177, 0.26),
    0 10px 28px rgba(99, 35, 24, 0.12);
  overflow: visible;
}

.pp-exhibit-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 40%, transparent 72%);
  pointer-events: none;
  z-index: 1;
}

.pp-exhibit-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.06) 0%, transparent 58%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}

.pp-exhibit-track {
  position: absolute;
  inset: 10px;
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 50%;
  overflow: visible;
  z-index: 3;
}

.pp-exhibit-track-bar {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  left: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #e2ceb1;
  border-right-color: rgba(226, 206, 177, 0.55);
  border-bottom-color: rgba(226, 206, 177, 0.12);
  border-left-color: rgba(226, 206, 177, 0.06);
  background: none;
  box-shadow: 0 0 12px rgba(226, 206, 177, 0.4);
  animation: pp-ring-spin 1.35s linear infinite;
}

.pp-exhibit-frame img {
  position: relative;
  z-index: 2;
  display: block;
  width: auto;
  height: auto;
  max-width: 168px;
  max-height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.18));
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

@keyframes pp-exhibit-in {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pp-gold-sweep {
  0% {
    left: -38%;
  }
  100% {
    left: 100%;
  }
}

@keyframes pp-halo-pulse {
  0% {
    opacity: 0.82;
    transform: translate(-50%, -50%) scale(0.96);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
  }
  100% {
    opacity: 0.82;
    transform: translate(-50%, -50%) scale(0.96);
  }
}

@keyframes pp-halo-pulse-outer {
  0% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(0.94);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
  100% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(0.94);
  }
}

@keyframes pp-ambient-pulse {
  0% {
    opacity: 0.78;
    transform: translate(-50%, -50%) scale(0.98);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }
  100% {
    opacity: 0.78;
    transform: translate(-50%, -50%) scale(0.98);
  }
}

@keyframes pp-ambient-pulse-outer {
  0% {
    opacity: 0.68;
    transform: translate(-50%, -50%) scale(0.96);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.07);
  }
  100% {
    opacity: 0.68;
    transform: translate(-50%, -50%) scale(0.96);
  }
}

@keyframes pp-ring-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media screen and (max-width: 480px) {
  .pp-exhibit-frame {
    width: 200px;
    height: 200px;
  }

  .pp-exhibit-track {
    inset: 8px;
  }

  .pp-exhibit-frame img {
    max-width: 142px;
    max-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pp-exhibit {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .pp-exhibit::before,
  .pp-exhibit::after,
  .page-preloader::before,
  .page-preloader::after {
    animation: none;
    opacity: 0.75;
  }

  .pp-exhibit-track-bar {
    animation: none;
    border-top-color: #e2ceb1;
    border-right-color: rgba(226, 206, 177, 0.45);
    border-bottom-color: rgba(226, 206, 177, 0.2);
    border-left-color: rgba(226, 206, 177, 0.1);
    transform: none;
    opacity: 0.85;
  }
}

/* ===== 回到頂端浮動按鈕 ===== */
.gotop {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 99;
  display: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gotop img {
  display: block;
  width: 100%;
  height: 100%;
}

.gotop:hover {
  transform: translateY(-4px);
}

.gotop:focus-visible {
  outline: 2px solid #632318;
  outline-offset: 3px;
}

/* ========================================================================
   首頁 - 最新消息
   ======================================================================== */
/* ========================================================================
   首頁 - 最新消息區塊
   ======================================================================== */

.home-news {
  position: relative;
  background: #fffaf2;
  overflow: hidden;
  padding: 72px 0 80px;
}

/* -------- 左側背景圖（news-bg.png）+ 微動效果 -------- */
.home-news-bg {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 40%;
  max-width: 520px;
  background: url(../../images/news-bg.png) no-repeat left center;
  background-size: contain;
  opacity: 0.65;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  animation: newsBgFloat 20s ease-in-out infinite;
}

@keyframes newsBgFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(10px, -14px, 0) scale(1.03);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-news-bg {
    animation: none;
  }
}

/* -------- 內容置中容器（Grid：左欄標題＋按鈕、右欄列表） -------- */
.home-news-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: 56px;
  row-gap: 34px;
}

/* -------- 左欄：直式標題 -------- */
.home-news-left {
  grid-column: 1;
  grid-row: 1;
  padding-top: 6px;
}

/* -------- 更多新訊按鈕（桌機：左欄標題下方） -------- */
.home-news-more-btn {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
}

.home-news-left .site-vtitle-cn {
  font-size: clamp(2.125rem, 3.2vw, 2.5rem);
}

/* -------- 右欄 -------- */
.home-news-right {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
}

/* -------- tabs --------
   無障礙需求：按鈕與內容在 HTML/Tab 順序上是交錯的（按鈕1、內容1、按鈕2、內容2...），
   讓鍵盤 Tab 鍵能一路走完每個分類跟其下全部內容，不用先走完所有按鈕才能進到內容。
   畫面上仍要維持「一排按鈕在上、下方接單一內容區」，所以用 flex order 讓視覺順序
   跟 DOM 順序脫鉤：按鈕 order:0（畫面排最前）、分隔線 order:1、內容 order:2（畫面排最後），
   flex-basis:100% 讓分隔線與內容各自獨立佔滿一整行。 */
.home-news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 36px;
}

.home-news-tab {
  order: 0;
  position: relative;
  margin-bottom: -1px;
  padding: 0 20px 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: 1.0625rem;
  letter-spacing: 0.04em;
  color: #2d2220;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.home-news-tab:hover {
  color: #632318;
}

.home-news-tab.is-active {
  color: #2d2220;
  /* font-weight: 700; */
  border-bottom-color: #8b2f1c;
}

/* 原本畫在 .home-news-tabs 容器上的底線（按鈕列跟內容之間的分隔），
   現在改成獨立元素用 order 固定排在按鈕列下方、內容上方，不會因為
   按鈕/內容交錯排列而跑到整個元件最下面 */
.home-news-tabs-divider {
  order: 1;
  flex-basis: 100%;
  height: 1px;
  background: rgba(99, 35, 24, 0.22);
  margin-bottom: 8px;
}

/* -------- 分類內容區塊（display 切換，無 AJAX） -------- */
.home-news-panel {
  order: 2;
  flex-basis: 100%;
  min-width: 0;
  display: none;
}

.home-news-panel.is-active {
  display: block;
}

/* -------- 列表 -------- */
.home-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-news-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 19px 4px;
  border-bottom: 1px solid rgba(99, 35, 24, 0.08);
}

.home-news-item:last-child {
  border-bottom: 0;
}

.home-news-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  background: url(../../images/news-dot.png) no-repeat center center;
  background-size: contain;
}

.home-news-date {
  flex: 0 0 auto;
  font-family: "Playfair Display", "Noto Serif TC", serif;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  color: #2d2220;
  white-space: nowrap;
}

.home-news-cat {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid #e2ceb1;
  border-radius: 2px;
  font-size: 0.8125rem;
  color: #7c6650;
  white-space: nowrap;
}

/* 讓 <h3> 標題階層標籤在 flex 版面裡「透明」，實際排版仍套用在裡面的 <a> 上，畫面不受影響 */
.list-title-h3 {
  display: contents;
}

.home-news-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-weight: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #2d2220;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.home-news-title:hover,
.home-news-title:focus-visible {
  color: #8b2f1c;
}

.home-news-more {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #632318;
  font-size: 0.9375rem;
  font-family: "Noto Serif TC", "Playfair Display", serif;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.home-news-more:hover,
.home-news-more:focus-visible {
  color: #632318;
}

/* ========================================================================
   RWD
   ======================================================================== */
@media screen and (max-width: 900px) {
  .home-news {
    padding: 36px 0 40px;
  }

  .home-news-bg {
    width: 60%;
    opacity: 0.35;
  }

  .home-news-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 0;
    row-gap: 22px;
  }

  .home-news-left {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    padding-top: 0;
  }

  .home-news-left .site-vtitle-cn {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }

  .home-news-right {
    grid-column: 1;
    grid-row: 2;
  }

  .home-news-more-btn {
    grid-column: 1;
    grid-row: 3;
    justify-self: center;
    margin-top: 4px;
  }

  .home-news-tabs {
    /* row-gap 保留（不歸零）：這個斷點按鈕文字較長，畫面較窄時仍可能換行，
       row-gap 是換行後「按鈕與按鈕」之間的間距，跟分隔線的 margin-bottom
       是兩回事，不能拿掉，否則換行後兩顆按鈕會貼在一起 */
    gap: 12px 18px;
  }

  .home-news-tab {
    font-size: 0.9375rem;
    padding-bottom: 12px;
  }
}

@media screen and (max-width: 560px) {
  .home-news {
    padding: 28px 0 32px;
  }

  .home-news-container {
    row-gap: 18px;
  }

  .home-news-left .site-vtitle-cn {
    font-size: 1.3125rem;
  }

  .home-news-tabs {
    flex-wrap: wrap;
    /* row-gap 保留，理由同 900px 斷點 */
    gap: 10px 14px;
    overflow: visible;
  }

  .home-news-tab {
    flex: 0 1 auto;
    max-width: 100%;
    padding: 0 2px 10px;
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: normal;
    text-align: left;
  }

  .home-news-item {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 16px 2px;
  }

  .home-news-title {
    flex: 1 1 100%;
    order: 5;
    white-space: normal;
  }

  .home-news-more {
    margin-left: auto;
  }
}

/* ========================================================================
   首頁 - 精選典藏
   ======================================================================== */
/* ========================================================================
   首頁 - 精選典藏區塊
   ======================================================================== */

.home-collection {
  position: relative;
  background: #e2ceb1;
  overflow: hidden;
  padding: 70px 0 84px;
}

/* -------- 右側背景圖（collection-bg.png）+ 微動效果 -------- */
.home-collection-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 34%;
  max-width: 620px;
  background: url(../../images/collection-bg.png) no-repeat right center;
  background-size: cover;
  opacity: 0.28;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  animation: collectionBgFloat 22s ease-in-out infinite;
}

@keyframes collectionBgFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-10px, 12px, 0) scale(1.03);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-collection-bg {
    animation: none;
  }
}

/* -------- 內容置中容器 -------- */
.home-collection-container {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* -------- 上方：標題 + slogan -------- */
.home-collection-head {
  display: flex;
  align-items: flex-end;
  gap: 34px;
  margin-bottom: 40px;
}

.home-collection-slogan {
  margin: 0 0 20px;
  padding-left: 34px;
  border-left: 1px solid rgba(99, 35, 24, 0.35);
  color: #2d2220;
  font-size: 0.9375rem;
  line-height: 1.9;
  letter-spacing: 0.03em;
}

/* -------- 四欄卡片 -------- */
.home-collection-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.home-collection-card {
  display: flex;
  flex-direction: column;
  background: #fffaf2;
  padding: 16px;
  box-shadow: 0 10px 26px rgba(40, 30, 20, 0.32);
}

/* -------- 卡片圖片 -------- */
.home-collection-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.home-collection-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-collection-thumb-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.home-collection-thumb-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.home-collection-thumb-media.aos-animate img {
  transform: scale(1);
}

.home-collection-thumb:hover .home-collection-thumb-media img,
.home-collection-card.is-hover .home-collection-thumb-media img,
.home-collection-thumb-media:focus-within img {
  transform: scale(1.08);
  transition-duration: 0.55s;
}

.home-collection-thumb:hover .home-collection-thumb-media:not(.aos-animate) img,
.home-collection-card.is-hover .home-collection-thumb-media:not(.aos-animate) img {
  transform: scale(1.22);
}

/* New 圓標 */
.home-collection-new {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #8b2f1c;
  color: #fff;
  font-size: 0.875rem;
  /* font-style: italic; */
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(58, 16, 11, 0.35);
}

/* hover 遮罩（黑半透明 + 內縮白框 + 置中 More） */
.home-collection-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #e2ceb1;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.home-collection-overlay::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(226, 206, 177, 0.85);
  pointer-events: none;
}

.home-collection-overlay-txt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Noto Serif TC", "Playfair Display", serif;
}

.home-collection-thumb:hover .home-collection-overlay,
.home-collection-card.is-hover .home-collection-overlay {
  opacity: 1;
}

/* -------- 卡片文字 -------- */
.home-collection-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 16px 0 2px;
}

.home-collection-title {
  position: relative;
  margin: 0 0 16px;
  padding-bottom: 14px;
  font-size: 1.125rem;
  font-weight: normal;
  text-align: center;
  line-height: 1.5;
}

.home-collection-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #cebdac;
}

.home-collection-title a {
  color: #2d2220;
  text-decoration: none;
  transition: color 0.2s ease;
  font-family: "Noto Serif TC", "Playfair Display", serif;
}

.home-collection-title a:hover,
.home-collection-title a:focus-visible {
  color: #632318;
}

.home-collection-desc {
  margin: 0 0 16px;
  color: #2d2220;
  font-size: 0.875rem;
  line-height: 1.8;
}

.home-collection-more {
  align-self: flex-end;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #632318;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  font-family: "Noto Serif TC", "Playfair Display", serif;
}

/* -------- 底部按鈕 -------- */
.home-collection-foot {
  margin-top: 46px;
  text-align: center;
}

/* ========================================================================
   RWD
   ======================================================================== */
@media screen and (max-width: 980px) {
  .home-collection-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .home-collection-bg {
    width: 46%;
    opacity: 0.2;
  }
}

@media screen and (max-width: 900px) {
  .home-collection-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
  }

  .home-collection-slogan {
    padding-left: 0;
    border-left: 0;
  }
}

@media screen and (max-width: 900px) {
  .home-collection {
    padding: 36px 0 40px;
  }
}

@media screen and (max-width: 600px) {
  .home-collection {
    padding: 28px 0 32px;
  }

  .home-collection-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home-collection-thumb {
    aspect-ratio: 1 / 1;
  }
}

/* ========================================================================
   首頁 - 博物館簡介
   ======================================================================== */
/* ========================================================================
   首頁 - 博物館簡介區塊
   ======================================================================== */

.home-about {
  background: #ece0cc url(../../images/about-bg.png) no-repeat center center;
  background-size: cover;
  overflow-x: hidden;
  overflow-x: clip;
}

/* 內容置中容器，內容推到右側留白處 */
.home-about-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 96px 24px;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-end;
}

.home-about-content {
  width: 46%;
  max-width: 560px;
}

/* -------- 標題（共用 .site-htitle + about 專屬覆蓋色） -------- */
.home-about-title {
  position: relative;
  margin: 0 0 30px;
  padding-bottom: 22px;
}

.home-about-title .site-htitle-en {
  color: #322c20;
}

.home-about-title .site-htitle-cn {
  color: #2d2220;
}

.home-about-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 100%;
  height: 1px;
  background: #b8a685;
}

/* -------- 內文 -------- */
.home-about-desc {
  margin: 0 0 22px;
  color: #3a2f26;
  font-size: 1rem;
  line-height: 2;
  letter-spacing: 0.02em;
}

.home-about-actions {
  margin-top: 80px;
  text-align: center;
}

/* ========================================================================
   RWD
   ======================================================================== */
@media screen and (max-width: 1024px) {
  .home-about {
    /* 視窗開始縮小就往右對齊，避開左側雜亂背景 */
    background-position: 90% center;
  }

  .home-about-content {
    width: 54%;
  }
}

@media screen and (max-width: 900px) {
  .home-about {
    background-position: right center;
  }

  .home-about-container {
    justify-content: center;
    padding: 40px 24px;
  }

  .home-about-content {
    width: 100%;
    max-width: 640px;
    /* background: rgba(247, 240, 228, 0.72); 手機不要白框 */
    padding: 28px 26px;
    box-sizing: border-box;
    border-radius: 2px;
  }
}

@media screen and (max-width: 560px) {
  .home-about {
    background-position: right center;
  }

  .home-about-container {
    padding: 28px 18px;
  }

  .home-about-desc {
    font-size: 0.9375rem;
    line-height: 1.9;
  }
}

/* ========================================================================
   首頁 - 線上虛擬展覽館
   ======================================================================== */
/* ========================================================================
   首頁 - 線上虛擬展覽館區塊
   ======================================================================== */

.home-virtual {
  position: relative;
  background: #632318;
  overflow: hidden;
  padding: 70px 0 84px;
}

/* -------- 置中底紋（virtual-bg.png） -------- */
.home-virtual-bg {
  position: absolute;
  inset: 0;
  background: url(../../images/virtual-bg.png) no-repeat center center;
  background-size: cover;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

/* -------- 內容置中容器 -------- */
.home-virtual-container {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* -------- 上方：標題 + slogan -------- */
.home-virtual-head {
  display: flex;
  align-items: flex-end;
  gap: 34px;
  margin-bottom: 21px;
}

.home-virtual-title .site-htitle-en {
  color: #d7b978;
}

.home-virtual-title .site-htitle-cn {
  color: #ece6d4;
}

.home-virtual-slogan {
  margin: 0 0 20px;
  padding-left: 34px;
  border-left: 1px solid rgba(245, 236, 220, 0.3);
  color: rgba(226, 206, 177, 0.82);
  font-size: 0.9375rem;
  line-height: 1.9;
  letter-spacing: 0.03em;
}

/* -------- 四欄卡片 -------- */
.home-virtual-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  align-items: stretch;
}

.home-virtual-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  box-sizing: border-box;
}

/* 最短高度約 3:4；文字超過時由 .home-virtual-content 撐高同一格 */
.home-virtual-card::before {
  content: "";
  grid-row: 1;
  grid-column: 1;
  width: 100%;
  padding-top: 133.333%;
  pointer-events: none;
  z-index: 0;
}

.home-virtual-img-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.home-virtual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.home-virtual-img-wrap.aos-animate .home-virtual-img {
  transform: scale(1);
}

.home-virtual-card:hover .home-virtual-img,
.home-virtual-card.is-hover .home-virtual-img,
.home-virtual-card:focus-within .home-virtual-img {
  transform: scale(1.08);
  transition-duration: 0.55s;
}

.home-virtual-card:hover .home-virtual-img-wrap:not(.aos-animate) .home-virtual-img,
.home-virtual-card.is-hover .home-virtual-img-wrap:not(.aos-animate) .home-virtual-img {
  transform: scale(1.22);
}

.inner-virtual .home-virtual-card.aos-animate .home-virtual-img {
  transform: scale(1);
}

.home-virtual-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 9, 6, 0.5) 0%, rgba(18, 9, 6, 0.8) 100%);
}

/* hover 內框 */
.home-virtual-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(245, 236, 220, 0.7);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
  z-index: 2;
}

.home-virtual-card:hover::after,
.home-virtual-card.is-hover::after {
  opacity: 1;
}

/* -------- 疊在圖上的文字（與 ::before 同格；短文維持 3:4，長文才撐高） -------- */
.home-virtual-content {
  grid-row: 1;
  grid-column: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  justify-self: stretch;
  text-align: center;
  padding: 36px 22px 30px;
  box-sizing: border-box;
  width: 100%;
  min-height: 100%;
}

.home-virtual-name {
  margin: 6px 0 14px;
  color: #f5ecdc;
  font-size: 1.1875rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  font-family: "Noto Serif TC", "Playfair Display", serif;
}

.home-virtual-desc {
  margin: 0;
  color: rgba(245, 236, 220, 0.82);
  font-size: 0.875rem;
  line-height: 1.9;
  padding-bottom: 20px;
}

/* -------- 線上導覽膠囊 -------- */
/* 文字靠上、按鈕靠下 */
.home-virtual-tour {
  margin-top: auto;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 80px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid rgba(245, 236, 220, 0.55);
  border-radius: 999px;
  color: #f5ecdc;
  text-decoration: none;
  background: rgba(245, 236, 220, 0.14);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  transition: border-color 0.25s ease, background-color 0.25s ease, backdrop-filter 0.25s ease;
}

.home-virtual-tour img {
  width: 30px;
  height: auto;
}

.home-virtual-tour-txt {
  font-size: 0.875rem;
  letter-spacing: 0.08em;
}

.home-virtual-card:hover .home-virtual-tour,
.home-virtual-card.is-hover .home-virtual-tour,
.home-virtual-tour:focus-visible {
  border-color: rgba(245, 236, 220, 0.9);
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* ========================================================================
   內頁 - 虛擬展覽館
   ======================================================================== */
.inner-virtual {
  background: #fff;
}

.inner-virtual .container {
  background: #fff;
}

.inner-virtual .wrap.inner-wrap.layout-all {
  padding-top: 48px;
  padding-bottom: 72px;
}

@media screen and (max-width: 900px) {
  .inner-virtual .wrap.inner-wrap.layout-all {
    padding-top: 36px;
    padding-bottom: 56px;
  }
}

/* ========================================================================
   RWD
   ======================================================================== */
@media screen and (max-width: 980px) {
  .home-virtual-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  /* 兩欄時最短約 5:6 */
  .home-virtual-card::before {
    padding-top: 120%;
  }
}

@media screen and (max-width: 900px) {
  .home-virtual-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .home-virtual-slogan {
    padding-left: 0;
    border-left: 0;
  }
}

@media screen and (max-width: 900px) {
  .home-virtual {
    padding: 36px 0 40px;
  }
}

@media screen and (max-width: 600px) {
  .home-virtual {
    padding: 28px 0 32px;
  }

  .home-virtual-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 單欄最短約正方形 */
  .home-virtual-card::before {
    padding-top: 100%;
  }
}

/* ========================================================================
   首頁 - 精選主題特展
   ======================================================================== */
/* ========================================================================
   首頁 - 精選主題特展區塊（Owl Carousel 2 center 模式）
   ======================================================================== */

.home-exhibition {
  position: relative;
  background: #f7f5ef;
  overflow: hidden;
  padding: 70px 0 80px;
}

/* -------- 中上浮水印（exhibition-bg.png） -------- */
.home-exhibition-bg {
  position: absolute;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  width: min(860px, 80%);
  height: 190px;
  background: url(../../images/exhibition-bg.png) no-repeat center top;
  background-size: contain;
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}

/* -------- 下方底紋（exhibition-bg2.png，滿版、淡化） -------- */
.home-exhibition::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 320px;
  background: url(../../images/exhibition-bg2.png) no-repeat center bottom;
  background-size: cover;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

/* -------- 上方置中：標題 + slogan -------- */
.home-exhibition-head {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto 44px;
  padding: 0 24px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}

/* 標題獨立覆蓋（大小/顏色/置中，異於一般共用標題） */
.home-exhibition-title {
  align-items: center;
  text-align: center;
}

.home-exhibition-title .site-htitle-en {
  color: #7d6a3f; /* 原 #b08d4e 在 #f7f5ef 只有 2.85:1，改深為 4.81:1 */
  font-size: clamp(0.9375rem, 1.3vw, 1.25rem);
  letter-spacing: 0.05em;
}

.home-exhibition-title .site-htitle-cn {
  color: #2d2220;
  font-size: clamp(1.75rem, 3vw, 2.625rem);
  letter-spacing: 0.14em;
}

.home-exhibition-slogan {
  margin: 0;
  max-width: 360px;
  padding-left: 34px;
  border-left: 1px solid rgba(99, 35, 24, 0.35);
  color: #5a4433;
  font-size: 0.9375rem;
  line-height: 1.9;
  letter-spacing: 0.03em;
  text-align: left;
}

/* -------- 輪播（全版、置中容器） -------- */
.home-exhibition-owlwrap {
  position: relative;
  z-index: 1;
  /* max-width: 1500px; */
  margin: 0 auto;
  /* padding: 0 12px; */
  box-sizing: border-box;
}

.home-exhibition-owl {
  visibility: hidden;
}

.home-exhibition-owl.owl-loaded {
  visibility: visible;
}

/* 兩側縮小、中間放大，聚焦中央輪播（套在卡片上，避免與 Owl 位移衝突） */
.home-exhibition-owl .owl-item .exh-card {
  transform: scale(0.93);
  transform-origin: center center;
  transition: transform 0.35s ease;
}

.home-exhibition-owl .owl-item.center .exh-card {
  transform: scale(1);
}

/* 卡片 */
.exh-card {
  position: relative;
  overflow: hidden;
}

.exh-img {
  display: block;
  width: 100%;
  height: clamp(360px, 40vw, 540px);
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.exh-card:hover .exh-img,
.exh-card:focus-within .exh-img {
  transform: scale(1.06);
}

/* 變暗遮罩（非中間項顯示） */
.exh-dim {
  position: absolute;
  inset: 0;
  background: rgba(28, 14, 9, 0.55);
  transition: opacity 0.3s ease;
  z-index: 1;
}

.owl-item.center .exh-card .exh-dim {
  opacity: 0;
}

/* 字幕（所有卡片皆顯示，中間最清楚、兩側較淡） */
.exh-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 28px;
  background: #632318;
  color: #e2ceb1;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* 兩側未置中的卡片：字幕淡一點，聚焦中間 */
.home-exhibition-owl .owl-item:not(.center) .exh-card .exh-caption {
  opacity: 0.7;
}

/* 上列：標題 | 中線 | 內文（中線只在這一列） */
.exh-caption-main {
  display: flex;
  align-items: stretch;
}

.exh-title {
  flex: 0 0 45%;
  margin: 0;
  padding-right: 24px;
  font-size: clamp(1.0625rem, 1.4vw, 1.3125rem);
  font-weight: normal;
  line-height: 1.5;
  color: #e2ceb1;
  border-right: 1px solid rgba(226, 206, 177, 0.35);
  box-sizing: border-box;
  font-family: "Noto Serif TC", "Playfair Display", serif;
}

.exh-desc {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding-left: 24px;
  color: #e2ceb1;
  font-size: 0.875rem;
  line-height: 1.9;
}

/* More 靠右、獨立一列 */
.exh-more {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border: 1px solid rgba(226, 206, 177, 0.55);
  color: #e2ceb1;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.exh-more:hover,
.exh-more:focus-visible {
  background: rgba(226, 206, 177, 0.14);
  border-color: #e2ceb1;
}

.exh-more-arrow {
  display: inline-block;
}

/* -------- 控制列（計數器 + 箭頭，置中） -------- */
.home-exhibition-controls {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 34px auto 0;
  padding: 0 24px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.exh-count {
  font-family: "Playfair Display", "Noto Serif TC", serif;
  color: #7a6650;
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.exh-cur {
  font-style: normal;
  color: #2d2220;
  font-size: 1.25rem;
  font-weight: 700;
}

.exh-sep {
  margin: 0 4px;
}

.exh-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.exh-nav-divider {
  width: 1px;
  height: 20px;
  background: rgba(99, 35, 24, 0.3);
}

.exh-nav-btn {
  padding: 4px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #6f3329;
  font-size: 1rem;
  /* font-weight: 900; */
  line-height: 1.5;
  cursor: pointer;
  -webkit-text-stroke: 1px currentColor;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.exh-nav-btn:hover {
  color: #3f150e;
}

.exh-nav-btn:focus-visible {
  outline: 2px solid #632318;
  outline-offset: 3px;
}

/* ========================================================================
   RWD
   ======================================================================== */
@media screen and (max-width: 900px) {
  .home-exhibition-head {
    flex-direction: column;
    gap: 18px;
  }

  .home-exhibition-slogan {
    max-width: 520px;
    padding-left: 0;
    border-left: 0;
    text-align: center;
  }
}

@media screen and (max-width: 900px) {
  .home-exhibition {
    padding: 36px 0 40px;
  }

  /* 平板以下：圖上文下不重疊，避免文字蓋住圖片 */
  .exh-card {
    display: flex;
    flex-direction: column;
    background: #632318;
  }

  .exh-img {
    height: clamp(280px, 42vw, 400px);
  }

  .exh-caption {
    position: static;
    padding: 18px 22px;
  }
}

@media screen and (max-width: 600px) {
  .home-exhibition {
    padding: 28px 0 32px;
  }

  .exh-img {
    height: 300px;
  }

  .exh-caption {
    padding: 16px 18px;
  }

  .exh-caption-main {
    flex-direction: column;
  }

  .exh-title {
    flex: 0 0 auto;
    padding: 0 0 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(226, 206, 177, 0.35);
  }

  .exh-desc {
    padding: 12px 0 0;
  }
}

/* ========================================================================
   內頁 Banner（banner_inner.php）
   ======================================================================== */
.banner-inner {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #f5f1e8;
}

.banner-inner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: url(../../images/banner-inner-bg.png) repeat-x left center;
  background-size: auto 100%;
  animation: bannerInnerBgSlide 500s linear infinite;
  pointer-events: none;
  will-change: transform;
}

/* 有上傳實際照片時：撐滿顯示，套用左右慢慢平移的效果（跟花紋滑動同樣意境，但改用單張照片） */
.banner-inner-bg.has-photo {
  width: 120%;
  left: -10%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  animation: bannerInnerBgPhotoSlide 40s ease-in-out infinite alternate;
}

@keyframes bannerInnerBgPhotoSlide {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-8%, 0, 0);
  }
}

@keyframes bannerInnerBgSlide {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .banner-inner-bg,
  .banner-inner-bg.has-photo {
    animation: none;
    width: 100%;
    left: 0;
    transform: none;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
  }

  .banner-inner-en,
  .banner-inner-cn,
  .banner-inner-line-left,
  .banner-inner-line-right {
    animation: none;
    opacity: 1;
    transform: none;
    letter-spacing: inherit;
  }
}

.banner-inner-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 24px;
  box-sizing: border-box;
  text-align: center;
}

.banner-inner-en {
  margin: 0 0 15px;
  font-family: "Playfair Display", "Noto Serif TC", serif;
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  letter-spacing: 0.05em;
  color: #6b5c40;
  opacity: 0;
  animation: bannerInnerEnIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.banner-inner-cn {
  margin: 0;
  font-family: "Noto Serif TC", "Playfair Display", serif;
  font-size: clamp(1.375rem, 3.2vw, 1.875rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #312c20;
  line-height: 1.5;
  opacity: 0;
  animation: bannerInnerCnIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.banner-inner-line {
  display: flex;
  width: 60px;
  height: 2px;
  margin-top: 16px;
  overflow: hidden;
}

.banner-inner-line-left {
  flex: 1 1 50%;
  background: #632318;
  transform: scaleX(0);
  transform-origin: right center;
  animation: bannerInnerLineJoin 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.banner-inner-line-right {
  flex: 1 1 50%;
  background: #e2ceb1;
  transform: scaleX(0);
  transform-origin: left center;
  animation: bannerInnerLineJoin 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

@keyframes bannerInnerEnIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
    letter-spacing: 0.12em;
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    letter-spacing: 0.05em;
  }
}

@keyframes bannerInnerCnIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes bannerInnerLineJoin {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

@media screen and (max-width: 560px) {
  .banner-inner-line {
    width: 110px;
    margin-top: 12px;
  }
}

/* ========================================================================
   內頁版型（全版 / 左選單）
   ======================================================================== */
.container {
  width: 100%;
  background: #fff;
}

.container .wrap.inner-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  box-sizing: border-box;
}

.container .wrap.inner-wrap.layout-all {
  width: 100%;
}

/* 只放大標題的容器（下方內容在容器外時，避免間距加倍） */
.container .wrap.inner-wrap.inner-heading-only {
  padding-bottom: 0;
}

.container .wrap.inner-wrap::after {
  content: "";
  display: table;
  clear: both;
}

.container .wrap.inner-wrap .layout-left {
  width: 25%;
  float: left;
  box-sizing: border-box;
  padding: 0 30px 40px 10px;
}

.container .wrap.inner-wrap .layout-left-inner {
  width: 100%;
}

.container .wrap.inner-wrap .layout-right {
  width: 75%;
  float: left;
  box-sizing: border-box;
  padding: 1px 10px;
}

.container .wrap.inner-wrap .layout-right.content-sections {
  min-width: 0;
}

@media screen and (max-width: 900px) {
  .container .wrap.inner-wrap {
    padding: 36px 20px 48px;
  }

  .container .wrap.inner-wrap .layout-left {
    display: none;
  }

  .container .wrap.inner-wrap .layout-right {
    width: 100%;
    float: none;
    padding: 0;
  }
}

/* ========================================================================
   內頁分類按鈕（全版內頁共用）
   ======================================================================== */
.inner-cate-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 16px;
  margin-bottom: 36px;
}

.inner-cate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 16px 4vw;
  border: 1px solid #632318;
  background: #fff;
  color: #632318;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.inner-cate-btn:hover,
.inner-cate-btn:focus-visible {
  background:#f7f5ef;
  color: #632318;
}

.inner-cate-btn.is-active {
  background: #f7f5ef;
  /* font-weight: 700; */
}

@media screen and (max-width: 900px) {
  .inner-cate-nav {
    gap: 10px 12px;
    margin-bottom: 28px;
  }

  .inner-cate-btn {
    min-width: calc(50% - 12px);
    flex: 1 1 calc(50% - 12px);
    max-width: 100%;
    padding: 11px 14px;
    font-size: 0.875rem;
  }
}

@media screen and (max-width: 560px) {
  .inner-cate-btn {
    min-width: 100%;
    flex: 1 1 100%;
  }
}

/* ========================================================================
   內頁標題區塊（inner_page_title.php）
   ======================================================================== */
.inner-page-title {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-bottom: 28px;
  padding: 12px 22px;
  background: #f7f5ef;
  box-sizing: border-box;
}

.inner-page-title-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.inner-page-title-text {
  margin: 0;
  font-family: "Noto Serif TC", "Playfair Display", serif;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #312c20;
  line-height: 1.5;
}

@media screen and (max-width: 560px) {
  .inner-page-title {
    padding: 16px 18px;
    gap: 12px;
    margin-bottom: 22px;
  }

  .inner-page-title-icon {
    /* width: 36px; */
    /* height: 36px; */
  }
}

/* ========================================================================
   編輯器文宣區塊（.editor）
   ======================================================================== */
.editor {
  position: relative;
  padding: 30px 0;
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: auto;
  color: #2d2220;
}

.editor p {
  margin: 0 0 18px;
}

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

.editor a {
  color: #632318;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.editor a:hover,
.editor a:focus-visible {
  color: #4a1a10;
}

.editor table {
  width: 100%;
  border-collapse: collapse;
}

.editor table th,
.editor table td {
  font-size: 0.875rem;
  padding: 8px 12px;
  border: 1px solid rgba(99, 35, 24, 0.15);
}

.editor img {
  max-width: 100%;
  height: auto;
}

/* 文宣：雙圖並列 */
.editor-photos {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}

.editor-photos--2 {
  grid-template-columns: repeat(2, 1fr);
}

.editor-photo {
  margin: 0;
  overflow: hidden;
}

.editor-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.editor-photo--full {
  margin: 36px 0 40px;
}

.editor-photo--full img {
  aspect-ratio: 21 / 9;
}

/* 文宣：◆ 小標 */
.editor-heading {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 16px;
  font-weight: normal;
  /* font-family: "Noto Serif TC", "Playfair Display", serif; */
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #312c20;
}

.editor-heading-mark {
  flex: 0 0 auto;
  color: #7c6650;
  font-size: 0.6875rem;
  line-height: 2.6;
}

.editor-heading + p {
  margin-bottom: 32px;
}

/* 文宣：三大面向圓圈 */
.editor-aspects {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  margin: 8px 0 36px;
  padding: 0 10px;
  max-width: 600px;
  margin: 40px auto;
}

.editor-aspects::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 1px;
  background: #e2ceb1;
  z-index: 0;
}

.editor-aspect-item {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  max-width: 150px;
  margin: 0 auto;
  padding: 0px 16px 22px;
  border-radius: 50%;
  background: #f7f5ef;
  text-align: center;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.editor-aspect-num {
  display: block;
  margin-bottom: 10px;
  font-family: "Playfair Display", "Noto Serif TC", serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.5;
  color: #632318;
}

.editor-aspect-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: #312c20;
}

@media screen and (max-width: 900px) {
  .editor-photos--2 {
    grid-template-columns: 1fr;
  }

  .editor-aspects {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 0;
  }

  .editor-aspects::before {
    display: none;
  }

  .editor-aspect-item {
    width: min(220px, 72vw);
    max-width: none;
  }
}

@media screen and (max-width: 560px) {
  .editor {
    padding: 22px 0;
    font-size: 0.9375rem;
    line-height: 1.7;
  }

  .editor-heading + p {
    margin-bottom: 26px;
  }

  .editor-photo--full {
    margin: 28px 0 32px;
  }
}

/* ========================================================================
   內頁區塊間距
   ======================================================================== */
.inner-cate-block {
  margin-top: 48px;
  /* 桌機 sticky 主選單約 60~70px，預留間距避免錨點標題被蓋住 */
  scroll-margin-top: 88px;
}

@media screen and (max-width: 900px) {
  .inner-cate-block {
    scroll-margin-top: calc(var(--site-topnav-h, 54px) + var(--site-quickbar-h, 36px) + 20px);
  }
}

.inner-cate-block .inner-page-title {
  margin-bottom: 24px;
}

.inner-cate-block .editor {
  padding-top: 0;
}

/* ========================================================================
   重要里程碑時間軸
   ======================================================================== */
.milestone-list {
  --mile-year-col: 108px;
  --mile-track-col: 28px;
  --mile-gap: 18px;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.milestone-list::before {
  content: "";
  position: absolute;
  left: calc(var(--mile-year-col) + var(--mile-gap) + (var(--mile-track-col) / 2));
  top: 0;
  bottom: 0;
  width: 1px;
  background: #e2ceb1;
  transform: translateX(-50%);
  pointer-events: none;
}

.milestone-item {
  position: relative;
  display: grid;
  grid-template-columns: var(--mile-year-col) var(--mile-track-col) 1fr;
  column-gap: var(--mile-gap);
  align-items: stretch;
  padding: 16px 0;
}

.milestone-item::after {
  content: "";
  position: absolute;
  left: calc(var(--mile-year-col) + var(--mile-gap) + var(--mile-track-col));
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(226, 206, 177, 0.55);
}

.milestone-item:last-child::after {
  display: none;
}

.milestone-year {
  padding-top: 3px;
  font-family: "Playfair Display", "Noto Serif TC", serif;
  font-size: 1.125rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #632318;
  text-align: right;
}

.milestone-track {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: stretch;
  min-height: 100%;
}

.milestone-track-bar {
  display: block;
  width: 4px;
  min-height: 100%;
  background: #632318;
}

.milestone-content {
  padding: 2px 0 2px 6px;
  font-size: 1rem;
  line-height: 1.75;
  color: #312c20;
}

.milestone-content p {
  margin: 0 0 10px;
}

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

.milestone-mark {
  color: #632318;
  margin-right: 10px;
  font-size: 0.45rem;
}

@media screen and (max-width: 900px) {
  .inner-cate-block {
    margin-top: 36px;
  }

  .milestone-list {
    --mile-year-col: 88px;
    --mile-track-col: 24px;
    --mile-gap: 14px;
  }

  .milestone-year {
    font-size: 1rem;
  }

  .milestone-content {
    font-size: 0.9375rem;
  }
}

@media screen and (max-width: 560px) {
  .milestone-list {
    --mile-year-col: 72px;
    --mile-track-col: 20px;
    --mile-gap: 12px;
  }

  .milestone-item {
    padding: 14px 0;
  }

  .milestone-year {
    font-size: 0.9375rem;
  }

  .milestone-track-bar {
    width: 3px;
  }

  .milestone-content {
    font-size: 0.875rem;
    line-height: 1.7;
  }
}

/* ========================================================================
   歷史照片牆（photo-wall）
   ======================================================================== */
.photo-wall-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.photo-wall-item {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f7f5ef;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}

.photo-wall-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  cursor: zoom-in;
}

.photo-wall-item a:focus {
  outline: 2px solid #632318;
  outline-offset: 2px;
}

.photo-wall-item.is-landscape img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.photo-wall-item.is-portrait img,
.photo-wall-item.is-square img {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.photo-wall-item:not(.is-portrait):not(.is-landscape):not(.is-square) img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media screen and (max-width: 560px) {
  .photo-wall-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ========================================================================
   內頁大標題（inner-page-heading）
   ======================================================================== */
.inner-page-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
  text-align: center;
}

.inner-page-heading-text {
  margin: 0;
  font-family: "Noto Serif TC", "Playfair Display", serif;
  font-size: clamp(1.375rem, 2.8vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #312c20;
  line-height: 1.5;
}

/* 內頁大標題套用中英橫式標題（英上中下、置中，中文字級同內頁大標） */
.inner-page-heading .site-htitle {
  align-items: center;
  text-align: center;
}

.inner-page-heading .site-htitle-cn {
  font-size: clamp(1.375rem, 2.8vw, 1.75rem);
}

.inner-page-heading-line {
  display: flex;
  width: 82px;
  height: 3px;
  margin-top: 10px;
  overflow: hidden;
}

.inner-page-heading-line-left {
  flex: 1 1 50%;
  background: #e2ceb1;
}

.inner-page-heading-line-right {
  flex: 1 1 50%;
  background: #e2ceb1;
}

@media screen and (max-width: 900px) {
  .inner-page-heading {
    margin-bottom: 28px;
  }

  .inner-page-heading-line {
    width: 110px;
    margin-top: 14px;
  }
}

/* ========================================================================
   全站共用資料表格（inner-data-table）
   預設：置中、固定版面；th/td 只需加 w-* / text-left / hide-max-900
   ======================================================================== */
.inner-data-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.inner-data-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border: 1px solid rgba(99, 35, 24, 0.12);
  background: #fff;
}

.inner-data-table thead th {
  padding: 14px 10px;
  background: #f7f5ef;
  color: #41392a;
  font-family: "Noto Serif TC", "Playfair Display", serif;
  font-size: 0.9375rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid rgba(99, 35, 24, 0.12);
  vertical-align: middle;
  box-sizing: border-box;
}

.inner-data-table tbody td {
  padding: 10px 12px;
  font-size: 0.875rem;
  line-height: 1.75;
  color: #2d2220;
  text-align: center;
  vertical-align: middle;
  border: 1px solid rgba(99, 35, 24, 0.12);
  box-sizing: border-box;
  word-break: break-word;
}

.inner-data-table tbody tr:nth-child(odd) {
  background: #fff;
}

.inner-data-table tbody tr:nth-child(even) {
  background: #f7f5ef;
}

/* 表格內的 w-*：只取 width，拿掉 min/max，避免把表格撐出容器 */
.inner-data-table thead th.w-60,
.inner-data-table tbody td.w-60,
.inner-data-table thead th.w-80,
.inner-data-table tbody td.w-80,
.inner-data-table thead th.w-90,
.inner-data-table tbody td.w-90,
.inner-data-table thead th.w-100,
.inner-data-table tbody td.w-100,
.inner-data-table thead th.w-120,
.inner-data-table tbody td.w-120,
.inner-data-table thead th.w-150,
.inner-data-table tbody td.w-150,
.inner-data-table thead th.w-180,
.inner-data-table tbody td.w-180,
.inner-data-table thead th.w-200,
.inner-data-table tbody td.w-200 {
  min-width: 0;
  max-width: none;
}

/* 縮圖（放在 td 內的 img）— 4:3 橫向 */
.inner-data-table-thumb-link {
  display: inline-block;
  line-height: 0;
  vertical-align: middle;
}

.inner-data-table-thumb-link:focus-visible {
  outline: 2px solid #632318;
  outline-offset: 2px;
}

.inner-data-table-thumb {
  display: block;
  width: 70px;
  height: 70px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* More 連結（放在 td 內的 a） */
.inner-data-table-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #632318;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.inner-data-table-more:hover,
.inner-data-table-more:focus-visible {
  color: #4a1a10;
}

/* More 窄欄：.w-90 在表格內鎖成約 90px */
.inner-data-table thead th.w-90,
.inner-data-table tbody td.w-90 {
  width: 90px;
  padding-left: 4px;
  padding-right: 4px;
  white-space: nowrap;
  overflow: hidden;
}

@media screen and (max-width: 900px) {
  .inner-data-table thead th,
  .inner-data-table tbody td {
    padding: 12px 10px;
  }
}

/* 手機：隱藏次要欄後，名稱欄可正常換行，避免一字一行 */
@media screen and (max-width: 560px) {
  .inner-data-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .inner-data-table {
    width: 100%;
    min-width: 0;
  }

  .inner-data-table thead th,
  .inner-data-table tbody td {
    padding: 12px 10px;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .inner-data-table thead th.text-left,
  .inner-data-table tbody td.text-left {
    width: auto;
    min-width: 0;
  }

  /* 手機剩餘固定寬欄改為較彈性，避免擠壓名稱 */
  .inner-data-table thead th.w-100,
  .inner-data-table tbody td.w-100,
  .inner-data-table thead th.w-120,
  .inner-data-table tbody td.w-120 {
    width: 34%;
    min-width: 0;
    max-width: none;
    white-space: normal;
  }
}

/* ========================================================================
   展覽／內頁左右欄圖文（exhibition-info-panel）
   ======================================================================== */
.exhibition-info-panel {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.exhibition-info-icon {
  flex: 0 0 200px;
  width: 200px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.exhibition-info-icon img {
  display: block;
  /* width: 100%; */
  height: auto;
  max-width: 200px;
  object-fit: contain;
}

.exhibition-info-body {
  flex: 1 1 0;
  min-width: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: #312c20;
}

.exhibition-info-body p {
  margin: 0 0 14px;
}

.exhibition-info-body p:last-child {
  margin-bottom: 0;
}

.exhibition-info-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.exhibition-info-list li {
  margin: 0 0 12px;
  padding: 0;
}

.exhibition-info-list li:last-child {
  margin-bottom: 0;
}

.exhibition-mark {
  color: #632318;
  margin-right: 10px;
  font-size: 0.45rem;
}

.exhibition-info-subtitle {
  margin: 0 0 10px;
  /* font-weight: 700; */
  color: #312c20;
}

.exhibition-info-subtitle + p {
  margin-bottom: 20px;
}

.exhibition-info-body a {
  color: #632318;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.exhibition-info-body a:hover,
.exhibition-info-body a:focus-visible {
  color: #4a1a10;
}

.exhibition-traffic-group {
  margin-bottom: 22px;
}

.exhibition-traffic-group:last-child {
  margin-bottom: 0;
}

.exhibition-traffic-title {
  margin: 0 0 10px;
  /* font-weight: 700; */
  color: #312c20;
}

.exhibition-traffic-route {
  margin: 0 0 8px;
}

.exhibition-traffic-label {
  color: #632318;
  /* font-weight: 700; */
}

.exhibition-traffic-note {
  margin: 6px 0 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #312c20;
}

.exhibition-traffic-link {
  margin: 8px 0 0;
}

.inner-cate-block:first-of-type {
  margin-top: 0;
}

@media screen and (max-width: 900px) {
  .exhibition-info-panel {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .exhibition-info-icon {
    flex: 0 0 auto;
    width: 160px;
  }

  .exhibition-info-icon img {
    max-width: 160px;
  }

  .exhibition-info-body {
    width: 100%;
    font-size: 0.9375rem;
  }

  .inner-cate-block {
    margin-top: 40px;
  }
}

@media screen and (max-width: 560px) {
  .exhibition-info-icon {
    width: 140px;
  }

  .exhibition-info-icon img {
    max-width: 140px;
  }

  .exhibition-info-body {
    font-size: 0.875rem;
    line-height: 1.7;
  }

  .exhibition-traffic-note {
    font-size: 0.875rem;
  }
}

/* ========================================================================
   內頁 - 精選主題特展（標題白底 + 下方複用首頁輪播區）
   ======================================================================== */
.home-exhibition--inner {
  padding-top: 0;
  padding-bottom: 80px;
}

.container + .home-exhibition--inner {
  margin-top: 0;
}

/* ========================================================================
   內頁 - 展覽回顧列表（四欄卡片）
   ======================================================================== */
.exh-review-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.exh-review-card {
  display: flex;
  flex-direction: column;
  background: #fffaf2;
  padding: 16px;
  box-shadow: 0 10px 26px rgba(58, 36, 29, 0.12);
  box-sizing: border-box;
}

.exh-review-thumb {
  display: block;
  overflow: hidden;
  margin-bottom: 16px;
  text-decoration: none;
}

.exh-review-thumb:focus-visible {
  outline: 2px solid #632318;
  outline-offset: 2px;
}

.exh-review-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.exh-review-thumb:hover img,
.exh-review-thumb:focus-visible img {
  transform: scale(1.03);
}

.exh-review-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.exh-review-title {
  margin: 0 0 14px;
  font-family: "Noto Serif TC", "Playfair Display", serif;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
  color: #632318;
  letter-spacing: 0.04em;
}

.exh-review-desc {
  margin: 0 0 18px;
  color: #2d2220;
  font-size: 0.875rem;
  line-height: 1.85;
}

.exh-review-more {
  align-self: flex-end;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border: 1px solid rgba(99, 35, 24, 0.55);
  color: #632318;
  font-family: "Noto Serif TC", "Playfair Display", serif;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.exh-review-more:hover,
.exh-review-more:focus-visible {
  background: rgba(99, 35, 24, 0.08);
  border-color: #632318;
}

.exh-review-more-arrow {
  display: inline-block;
}

@media screen and (max-width: 1100px) {
  .exh-review-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media screen and (max-width: 900px) {
  .exh-review-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

@media screen and (max-width: 560px) {
  .exh-review-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .exh-review-title {
    font-size: 1rem;
  }
}

/* ========================================================================
   展覽訊息詳細頁 - 頂部 Hero（固定背景視差）
   ======================================================================== */
.exh-detail-hero {
  position: relative;
  min-height: 480px;
}

/* 【工程師注意】
   1. 有後台圖時：由 exhibition_detail.php 以 inline style 寫入 background-image 覆蓋。
   2. 後台未上傳時：請保留下方預設圖，頁面會自動使用此圖，勿刪除。
   3. 此處其餘屬性只負責 cover／置中／fixed 等顯示方式。 */
.exh-detail-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url(../../images/exhibition-banner.png); /* 預設圖：後台無圖時使用 */
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}

.exh-detail-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.6);
}

.exh-detail-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  padding: 48px 24px;
  box-sizing: border-box;
  text-align: center;
}

.exh-detail-hero-title {
  margin: 0 0 28px;
  max-width: 900px;
  font-family: "Noto Serif TC", "Playfair Display", serif;
  font-size: clamp(1.5rem, 3.2vw, 2.375rem);
  font-weight: normal;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: #e2ceb1;
}

.exh-detail-hero-desc {
  margin: 0 0 14px;
  max-width: 760px;
  font-size: 1.1rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #f7f5ef;
}

.exh-detail-hero-desc:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 900px) {
  .exh-detail-hero,
  .exh-detail-hero-content {
    min-height: 520px;
    margin-bottom: 30px;
  }

  .exh-detail-hero-bg {
    background-attachment: scroll;
  }

  .exh-detail-hero-title {
    margin-bottom: 22px;
    font-size: clamp(1.375rem, 5vw, 1.875rem);
  }

  .exh-detail-hero-desc {
    font-size: 0.875rem;
    line-height: 1.9;
  }
}

@media screen and (max-width: 560px) {
  .exh-detail-hero,
  .exh-detail-hero-content {
    min-height: 480px;
    margin-bottom: 20px;
  }

  .exh-detail-hero-title {
    margin-bottom: 18px;
    letter-spacing: 0.05em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .exh-detail-hero-bg {
    background-attachment: scroll;
  }
}

/* ========================================================================
   展覽訊息詳細頁 - 下方編輯器區（全寬，與展示區一致）
   ======================================================================== */
.exh-detail-editor {
  width: 100%;
  background: #fff;
  box-sizing: border-box;
}

.exh-detail-editor .editor {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  box-sizing: border-box;
}

@media screen and (max-width: 900px) {
  .exh-detail-editor .editor {
    padding: 36px 20px 56px;
  }
}

/* ========================================================================
   展覽訊息詳細頁 - 左右切換展示區
   ======================================================================== */
.exh-detail-showcase {
  position: relative;
  background: #fff;
}

/* 高度=螢幕高（CSS 先給 100vh 後備值，實際由 jquery_action.js 依視窗計算覆寫） */
.exh-detail-showcase-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
  height: 100vh;
  min-height: 480px;
  box-sizing: border-box;
}

.exh-detail-showcase-visual {
  position: relative;
  overflow: hidden;
  min-height: 0;
  background: #1a120e;
}

.exh-detail-showcase-bar-left {
  grid-column: 1;
  position: relative;
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 28px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.65);
  pointer-events: auto;
}

.exh-detail-showcase-slide {
  display: none;
}

.exh-detail-showcase-slide.is-active {
  display: block;
}

.exh-detail-showcase-slide--visual {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
}

.exh-detail-showcase-slide--visual.is-active {
  height: 100%;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

/* 右欄固定高度（客戶要求＝螢幕高），標題固定、內文由 .editor 內部捲動，
   下方保留 bar 高度 52px 避免內容被切換列蓋住 */
.exh-detail-showcase-slide--info {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 52px;
  box-sizing: border-box;
  padding: 40px 32px 40px;
  background: #fff;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

/* is-active 的通用規則是 display:block，特異性較高會蓋掉 flex，這裡要補回 */
.exh-detail-showcase-slide--info.is-active {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

/* 內文區塊不佔滿右欄，右側留少量空白；
   捲軸做在 .editor 上，貼著內文右側而非右欄最外緣 */
.exh-detail-showcase-slide--info .editor {
  flex: 1 1 auto;
  min-height: 0;
  width: 85%;
  padding: 0 0px 0 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-padding-bottom: 24px;
}

/* Firefox（不支援 ::-webkit-scrollbar）才套用標準捲軸屬性；
   Chromium 系（Chrome/Edge）若同時收到 scrollbar-width，Windows 上的
   Fluent 捲軸即使設 thin 仍會保留上下箭頭熱區，因此交給下方 ::-webkit-scrollbar-* 完全接管 */
@supports not selector(::-webkit-scrollbar) {
  .exh-detail-showcase-slide--info .editor {
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 35, 24, 0.35) rgba(99, 35, 24, 0.08);
  }
}

/* 自訂捲軸樣式，呼應版面的酒紅／棕色主色調 */
.exh-detail-showcase-slide--info .editor::-webkit-scrollbar {
  width: 6px;
}

.exh-detail-showcase-slide--info .editor::-webkit-scrollbar-track {
  background: rgba(99, 35, 24, 0.08);
  border-radius: 999px;
}

.exh-detail-showcase-slide--info .editor::-webkit-scrollbar-thumb {
  background-color: rgba(99, 35, 24, 0.35);
  border-radius: 999px;
  transition: background-color 0.25s ease;
}

.exh-detail-showcase-slide--info .editor::-webkit-scrollbar-thumb:hover {
  background-color: rgba(99, 35, 24, 0.55);
}

.exh-detail-showcase-slide--info .editor::-webkit-scrollbar-button,
.exh-detail-showcase-slide--info .editor::-webkit-scrollbar-button:single-button {
  display: none;
  width: 0;
  height: 0;
}

/* 標題改由後台編輯器資料輸出（h2），沿用原標題樣式 */
.exh-detail-showcase-slide--info .editor h2 {
  margin: 0 0 18px;
  font-family: "Noto Serif TC", "Playfair Display", serif;
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: #632318;
}

.exh-detail-showcase-slide--bar-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  position: absolute;
  left: 28px;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  margin: 0;
  font-family: "Noto Serif TC", "Playfair Display", serif;
  font-size: clamp(1.125rem, 1.2vw, 1.5rem);
  /* font-weight: 700; */
  letter-spacing: 0.06em;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
}

.exh-detail-showcase-slide--bar-title.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.exh-detail-showcase-bar-title-text {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exh-detail-showcase-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  color: #fff;
  font-size: inherit;
  font-family: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.exh-detail-showcase-bar-link:hover,
.exh-detail-showcase-bar-link:focus-visible {
  color: #e2ceb1;
}

.exh-detail-showcase-bar-link:focus-visible {
  outline: 2px solid #e2ceb1;
  outline-offset: 3px;
}

.exh-detail-showcase-bar-link .fa-solid {
  flex: 0 0 auto;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-style: normal;
  font-size: 1rem;
  line-height: 1;
}

.exh-detail-showcase-bar-link .fa-arrow-up-right-from-square::before {
  content: "\f35d";
}

.exh-detail-showcase-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(30px) brightness(0.7);
  transform: scale(1.15);
}

.exh-detail-showcase-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: contain;
  object-position: center;
}

.exh-detail-showcase-info {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #fff;
  box-sizing: border-box;
}

.exh-detail-showcase-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 2fr 1fr;
  height: 52px;
  pointer-events: none;
}

.exh-detail-showcase-bar-right {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px;
  background: #632318;
  box-sizing: border-box;
  pointer-events: auto;
}

.exh-count--showcase {
  color: rgba(226, 206, 177, 0.85);
  font-size: 0.9375rem;
}

.exh-count--showcase .exh-cur {
  color: #fff;
  font-size: 1.125rem;
}

.exh-nav--showcase {
  gap: 12px;
}

.exh-nav-divider--light {
  background: rgba(226, 206, 177, 0.45);
}

.exh-nav-btn--light {
  color: #e2ceb1;
}

.exh-nav-btn--light:hover {
  color: #fff;
}

.exh-nav-btn--light:focus-visible {
  outline-color: #e2ceb1;
}

@media screen and (max-width: 1100px) {
  .exh-detail-showcase-slide--info {
    padding: 32px 26px 36px;
  }
}

@media screen and (max-width: 900px) {
  /* 手機、平板：圖上文下，總高仍=螢幕高（JS 計算會扣掉固定 header），
     右欄吃剩餘高度，內容過多時右欄內部捲動 */
  .exh-detail-showcase-main {
    grid-template-columns: 1fr;
    grid-template-rows: 320px 1fr;
    min-height: 560px;
  }

  .exh-detail-showcase-visual {
    min-height: 320px;
    height: 320px;
  }

  .exh-detail-showcase-img {
    min-height: 320px;
    aspect-ratio: 16 / 10;
  }

  .exh-detail-showcase-slide--info {
    bottom: 44px;
    padding: 28px 22px 32px;
  }

  /* 手機、平板：內文恢復滿版，避免過窄 */
  .exh-detail-showcase-slide--info .editor {
    width: 100%;
  }

  .exh-detail-showcase-bar {
    /* 子元素各自定位：標題列貼視覺區底、切換列貼資訊區底 */
    display: contents;
    height: auto;
  }

  .exh-detail-showcase-bar-left {
    position: absolute;
    top: calc(320px - 44px);
    left: 0;
    right: 0;
    z-index: 4;
    flex: none;
    width: auto;
    height: 44px;
    padding: 0 18px;
    pointer-events: auto;
  }

  .exh-detail-showcase-slide--bar-title {
    left: 18px;
    right: 18px;
  }

  .exh-detail-showcase-bar-right {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    flex: none;
    min-height: 44px;
    height: 44px;
    padding: 8px 16px;
    pointer-events: auto;
  }
}

@media screen and (max-width: 560px) {
  .exh-detail-showcase-slide--info {
    padding: 22px 18px 20px;
  }

  .exh-detail-showcase-slide--bar-title {
    font-size: 1.0625rem;
  }
}

/* ========================================================================
   內頁 - 常設展輪播（Owl Carousel 2）
   ======================================================================== */
.inner-exhibition-carousel {
  max-width: 1000px;
  margin: 8px auto 0;
  padding-bottom: 16px;
}

.inner-exhibition-owlwrap {
  position: relative;
  margin: 0;
}

/* 只有 1 筆資料時：卡片維持跟 2 欄版位一樣的寬度/比例，只是讓它在整排裡置中，
   而不是黏在最左邊（owl-stage 的實際寬度本來就只有容器一半，預設會貼齊左側） */
.inner-exhibition-owlwrap--single .owl-stage-outer {
  display: flex;
  justify-content: center;
}

.inner-exhibition-owl {
  visibility: hidden;
}

#inner-exhibition-owl.owl-loaded {
  visibility: visible;
}

#inner-exhibition-owl .exh-dim {
  display: none;
}

#inner-exhibition-owl.inner-exhibition-owl .exh-card {
  display: flex;
  flex-direction: column;
  background: #632318;
}

#inner-exhibition-owl.inner-exhibition-owl .exh-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.3 / 1;
  object-fit: cover;
}

#inner-exhibition-owl.inner-exhibition-owl .exh-card .exh-caption {
  position: static;
  opacity: 1;
  flex: 1 1 auto;
}

#inner-exhibition-owl.inner-exhibition-owl .exh-caption--inner {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  gap: 0;
  padding: 28px 32px 24px;
  box-sizing: border-box;
}

#inner-exhibition-owl.inner-exhibition-owl .exh-caption--inner .exh-title {
  flex: none;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  border-right: 0;
  font-weight: normal;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
}

#inner-exhibition-owl.inner-exhibition-owl .exh-caption-body {
  flex: 1 1 auto;
  border-left: 1px solid rgba(226, 206, 177, 0.55);
  padding-left: 18px;
  margin-bottom: 20px;
}

#inner-exhibition-owl.inner-exhibition-owl .exh-caption--inner .exh-desc {
  padding-left: 0;
  font-size: 0.895rem;
  line-height: 1.9;
  font-weight: normal;
}

.inner-exhibition-controls {
  position: relative;
  max-width: 900px;
  margin: 34px auto 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

@media screen and (max-width: 900px) {
  .inner-exhibition-controls {
    margin-top: 28px;
  }
}

@media screen and (max-width: 560px) {

  #inner-exhibition-owl.inner-exhibition-owl .exh-caption--inner {
    min-height: 220px;
    padding: 20px 20px 18px;
  }

  #inner-exhibition-owl.inner-exhibition-owl .exh-caption-body {
    padding-left: 14px;
    margin-bottom: 14px;
  }
}

/* ========================================================================
   展覽訊息詳細頁 - 展覽文物區
   ======================================================================== */
.exh-detail-artifacts {
  background: #e2ceb1;
  padding: 48px 0 72px;
  box-sizing: border-box;
}

.exh-detail-artifacts-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.exh-detail-artifacts .inner-page-heading-line-left,
.exh-detail-artifacts .inner-page-heading-line-right {
  background: #fff;
}

.exh-detail-artifacts .home-collection-card {
  background: #fffaf2;
}

.exh-artifact-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  margin-bottom: 28px;
  border-bottom: 1px solid #fff;
}

.exh-artifact-count {
  margin: 0;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  color: #312c20;
}

.exh-artifact-count strong {
  font-size: 1.125rem;
  font-weight: 700;
  color: #632318;
}

.exh-artifact-view-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.exh-artifact-view-label {
  font-size: 0.875rem;
  color: #312c20;
  letter-spacing: 0.04em;
}

.exh-artifact-view-btn {
  display: inline-flex;
  /* align-items: center; */
  gap: 6px;
  padding: 6px 12px;
  border: 0;
  background: transparent;
  color: #5a4433;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s ease;
}

.exh-artifact-view-btn:hover,
.exh-artifact-view-btn:focus-visible {
  color: #632318;
}

.exh-artifact-view-btn.is-active {
  color: #632318;
  font-weight: 700;
}

.exh-artifact-view-btn:focus-visible {
  outline: 2px solid #632318;
  outline-offset: 2px;
}

.exh-artifact-view-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
}

.exh-artifact-view-icon i {
  font-size: 0.875rem;
  line-height: 1.5;
}

.exh-artifact-view {
  display: none;
}

.exh-artifact-view.is-active {
  display: block;
  animation: exh-artifact-view-fadein 0.35s ease;
}

@keyframes exh-artifact-view-fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .exh-artifact-view.is-active {
    animation: none;
  }
}

.exh-artifact-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.exh-artifact-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 16px;
  box-shadow: 0 10px 26px rgba(58, 36, 29, 0.12);
  box-sizing: border-box;
}

.exh-artifact-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.exh-artifact-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exh-artifact-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.exh-artifact-overlay::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

.exh-artifact-overlay-txt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Noto Serif TC", "Playfair Display", serif;
}

.exh-artifact-thumb:hover .exh-artifact-overlay,
.exh-artifact-thumb:focus-within .exh-artifact-overlay {
  opacity: 1;
}

.exh-artifact-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 16px 0 2px;
}

.exh-artifact-title {
  margin: 0 0 14px;
  padding-bottom: 14px;
  font-family: "Noto Serif TC", "Playfair Display", serif;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
  color: #632318;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #cebdac;
}

.exh-artifact-desc {
  margin: 0 0 18px;
  color: #2d2220;
  font-size: 0.875rem;
  line-height: 1.85;
}

.exh-artifact-more {
  align-self: flex-end;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #632318;
  font-family: "Noto Serif TC", "Playfair Display", serif;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.exh-artifact-more:hover,
.exh-artifact-more:focus-visible {
  color: #4a1a10;
}

.exh-artifact-more:focus-visible {
  outline: 2px solid #632318;
  outline-offset: 2px;
}

@media screen and (max-width: 1100px) {
  .exh-artifact-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media screen and (max-width: 900px) {
  .exh-detail-artifacts {
    padding: 40px 0 56px;
  }

  .exh-detail-artifacts-inner {
    padding: 0 20px;
  }

  .exh-artifact-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
  }

  .exh-artifact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media screen and (max-width: 560px) {
  .exh-artifact-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .exh-artifact-view-switch {
    width: 100%;
  }
}

/* ========================================================================
   展覽訊息詳細頁 - 展覽照片區
   ======================================================================== */
.exh-detail-photos {
  background: #fff;
  padding: 48px 0 72px;
  box-sizing: border-box;
}

.exh-detail-photos-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.exh-detail-photos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.exh-detail-photo-item {
  margin: 0;
}

.exh-detail-photo-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f7f5ef;
  text-decoration: none;
  cursor: zoom-in;
}

.exh-detail-photo-link:focus-visible {
  outline: 2px solid #632318;
  outline-offset: 2px;
}

.exh-detail-photo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.28s ease;
}

.exh-detail-photo-link:hover .exh-detail-photo-img,
.exh-detail-photo-link:focus-visible .exh-detail-photo-img {
  transform: scale(1.03);
}

.exh-detail-photo-caption {
  margin: 14px 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-align: center;
  color: #2d2220;
}

@media screen and (max-width: 1100px) {
  .exh-detail-photos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media screen and (max-width: 900px) {
  .exh-detail-photos {
    padding: 40px 0 56px;
  }

  .exh-detail-photos-inner {
    padding: 0 20px;
  }
}

@media screen and (max-width: 560px) {
  .exh-detail-photos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ========================================================================
   展覽訊息詳細頁 - 展覽花絮區（CSS columns 瀑布流）
   ======================================================================== */
.exh-detail-highlights {
  background: #f7f5ef;
  padding: 48px 0 72px;
  box-sizing: border-box;
}

.exh-detail-highlights-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.exh-detail-highlights-grid {
  column-count: 4;
  column-gap: 16px;
}

.exh-detail-highlight-item {
  margin: 0 0 16px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.exh-detail-highlight-link {
  display: block;
  overflow: hidden;
  background: #ece6dc;
  text-decoration: none;
  cursor: zoom-in;
}

.exh-detail-highlight-link:focus-visible {
  outline: 2px solid #632318;
  outline-offset: 2px;
}

.exh-detail-highlight-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  transition: transform 0.28s ease;
}

.exh-detail-highlight-item--wide .exh-detail-highlight-img {
  aspect-ratio: 16 / 9;
}

.exh-detail-highlight-item--tall .exh-detail-highlight-img {
  aspect-ratio: 3 / 4;
}

.exh-detail-highlight-item--square .exh-detail-highlight-img {
  aspect-ratio: 1 / 1;
}

.exh-detail-highlight-link:hover .exh-detail-highlight-img,
.exh-detail-highlight-link:focus-visible .exh-detail-highlight-img {
  transform: scale(1.03);
}

@media screen and (max-width: 1100px) {
  .exh-detail-highlights-grid {
    column-count: 3;
  }
}

@media screen and (max-width: 900px) {
  .exh-detail-highlights {
    padding: 40px 0 56px;
  }

  .exh-detail-highlights-inner {
    padding: 0 20px;
  }

  .exh-detail-highlights-grid {
    column-count: 2;
    column-gap: 14px;
  }

  .exh-detail-highlight-item {
    margin-bottom: 14px;
  }
}

@media screen and (max-width: 560px) {
  .exh-detail-highlights-grid {
    column-count: 1;
  }
}

/* ========================================================================
   典藏總覽內頁（collection.php / collection_list.php）
   ======================================================================== */
.inner-collection-panel {
  background: #ffffff;
  padding: 48px 0 72px;
  box-sizing: border-box;
}

.inner-collection-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.inner-collection-panel .inner-page-heading-line-left,
.inner-collection-panel .inner-page-heading-line-right {
  background: #e2ceb1;
}

.inner-collection-panel .exh-artifact-toolbar {
  background: #f7f5ef;
  border-bottom: 0;
  padding: 14px 18px;
  margin-bottom: 28px;
}

.inner-collection-toolbar--right {
  justify-content: flex-end;
}

.inner-collection-toolbar--right .exh-artifact-count {
  display: none;
}

.collection-cat-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.collection-cat-card {
  margin: 0;
  padding: 0;
}

.collection-cat-link {
  display: block;
  color: inherit;
  text-decoration: none;
  background: #fff;
  box-shadow: 0 10px 26px rgba(58, 36, 29, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.collection-cat-link:hover,
.collection-cat-link:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(58, 36, 29, 0.16);
}

.collection-cat-visual {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 5 / 3;
}

.inner-collection-panel .collection-cat-visual {
  aspect-ratio: 5 / 3;
}

.collection-cat-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.collection-cat-visual.aos-animate .collection-cat-img {
  transform: scale(1);
}

.collection-cat-link:hover .collection-cat-visual.aos-animate .collection-cat-img,
.collection-cat-link:focus-visible .collection-cat-visual.aos-animate .collection-cat-img {
  transform: scale(1.06);
  transition-duration: 0.55s;
}

.collection-cat-link:hover .collection-cat-visual:not(.aos-animate) .collection-cat-img,
.collection-cat-link:focus-visible .collection-cat-visual:not(.aos-animate) .collection-cat-img {
  transform: scale(1.22);
  transition-duration: 0.55s;
}

.collection-cat-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: #632318;
  color: #fff;
}

.collection-cat-bar-title {
  font-family: "Noto Serif TC", "Playfair Display", serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.collection-cat-bar-more {
  flex: 0 0 auto;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: #e2ceb1;
}

.inner-data-table-title-link {
  color: #41392a;
  font-family: "Noto Serif TC", "Playfair Display", serif;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.inner-data-table-title-link:hover,
.inner-data-table-title-link:focus-visible {
  color: #4a1a10;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inner-data-table-name-inner {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  max-width: 100%;
}

.inner-data-table-new {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #8b2f1c;
  color: #fff;
  font-size: 0.6875rem;
  /* font-style: italic; */
  letter-spacing: 0.02em;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* box-shadow: 0 2px 6px rgba(58, 16, 11, 0.3); */
}

.inner-collection-item-grid {
  margin: 0;
  padding: 0;
}

.inner-collection-panel .home-collection-card {
  background: #fffaf2;
}

@media screen and (max-width: 1100px) {
  .collection-cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

@media screen and (max-width: 900px) {
  .inner-collection-panel {
    padding: 40px 0 56px;
  }

  .inner-collection-inner {
    padding: 0 20px;
  }

  .collection-cat-grid {
    gap: 18px;
  }
}

@media screen and (max-width: 560px) {
  .collection-cat-grid {
    grid-template-columns: 1fr;
  }

  .collection-cat-visual,
  .inner-collection-panel .collection-cat-visual {
    aspect-ratio: 6 / 3;
  }
}

/* ========================================================================
   典藏詳細頁（collection_detail.php）
   ======================================================================== */
.collection-detail-panel {
  background: #ffffff;
  padding: 48px 0 72px;
  box-sizing: border-box;
}

.collection-detail-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.collection-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.collection-detail-gallery {
  min-width: 0;
}

.collection-detail-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  height: clamp(320px, 42vw, 520px);
  padding: 24px;
  background: #f7f5ef;
  box-sizing: border-box;
}

.collection-detail-main-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: pointer;
}

.collection-detail-zoom {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #632318;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(58, 16, 11, 0.28);
  transition: background 0.2s ease, transform 0.2s ease;
}

.collection-detail-zoom:hover,
.collection-detail-zoom:focus-visible {
  background: #4a1a10;
  transform: scale(1.04);
}

.collection-detail-zoom:focus-visible {
  outline: 2px solid #632318;
  outline-offset: 2px;
}

.collection-detail-zoom i {
  font-size: 1rem;
  line-height: 1.5;
}

.collection-detail-thumbs-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.collection-detail-thumbs-bar .exh-nav-btn {
  flex: 0 0 auto;
}

.collection-detail-thumbs {
  flex: 1 1 auto;
  min-width: 0;
  visibility: hidden;
}

.collection-detail-thumbs.owl-loaded {
  visibility: visible;
}

.collection-detail-thumb-item {
  padding: 2px 0;
}

.collection-detail-thumb-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 2px solid transparent;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.collection-detail-thumb-btn.is-active {
  border-color: #632318;
}

.collection-detail-thumb-btn:focus-visible {
  outline: 2px solid #632318;
  outline-offset: 2px;
}

.collection-detail-thumb-btn img {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: cover;
}

.collection-detail-info {
  min-width: 0;
  padding-top: 8px;
}

.collection-detail-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.collection-detail-new {
  flex: 0 0 auto;
  display: inline-block;
  padding: 4px 10px;
  background: #632318;
  color: #e2ceb1;
  font-size: 0.75rem;
  font-weight: normal;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.collection-detail-title {
  margin: 0;
  font-family: "Noto Serif TC", "Playfair Display", serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #312c20;
  line-height: 1.5;
}

.collection-detail-meta {
  margin: 0;
  padding: 0;
}

.collection-detail-meta-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  border-bottom: 0;
}

.collection-detail-meta-row:last-child .collection-detail-meta-value {
  border-bottom: 0;
}

.collection-detail-meta-label {
  flex: 0 0 108px;
  margin: 0;
  padding: 16px 20px 16px 16px;
  border-left: 1px solid rgba(99, 35, 24, 0.25);
  font-size: 0.9375rem;
  font-weight: normal;
  letter-spacing: 0.06em;
  color: #632318;
  line-height: 1.6;
  box-sizing: border-box;
}

.collection-detail-meta-value {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 16px 0 16px 20px;
  border-bottom: 1px solid #e2ceb1;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #312c20;
  box-sizing: border-box;
}

/* 參考資料改用後台編輯器輸出的原始 HTML（保留分段），這裡收斂段落間距，
   避免瀏覽器預設的 <p> 上下 margin 在這個緊湊的欄位裡看起來空隙過大 */
.collection-detail-meta-value p {
  margin: 0 0 8px;
}

.collection-detail-meta-value p:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 900px) {
  .collection-detail-panel {
    padding: 40px 0 56px;
  }

  .collection-detail-inner {
    padding: 0 20px;
  }

  .collection-detail-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .collection-detail-main {
    min-height: 280px;
    height: 320px;
  }

  .collection-detail-thumb-btn img {
    height: 64px;
  }
}

@media screen and (max-width: 560px) {
  .collection-detail-meta-row {
    flex-direction: column;
    gap: 4px;
    padding: 14px 0;
    border-bottom: 1px solid #e2ceb1;
  }

  .collection-detail-meta-row:last-child {
    border-bottom: 0;
  }

  .collection-detail-meta-label {
    position: relative;
    flex: 0 0 auto;
    border-left: 0;
    padding: 0 0 0 14px;
    line-height: 1.5;
  }

  .collection-detail-meta-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 2px;
    background: rgba(99, 35, 24, 0.45);
  }

  .collection-detail-meta-value {
    border-bottom: 0;
    padding: 0 0 0 14px;
  }

  .collection-detail-meta-row:last-child .collection-detail-meta-value {
    border-bottom: 0;
  }
}

/* ========================================================================
   典藏詳細頁 - 簡介（編輯器區）
   ======================================================================== */
.collection-detail-intro {
  background: #ffffff;
  padding: 0 0 72px;
  box-sizing: border-box;
}

.collection-detail-intro-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.collection-detail-intro .inner-page-title {
  margin-bottom: 24px;
}

.collection-detail-intro .editor {
  /* max-width: 900px; */
  padding-top: 0;
}

@media screen and (max-width: 900px) {
  .collection-detail-intro {
    padding-bottom: 56px;
  }

  .collection-detail-intro-inner {
    padding: 0 20px;
  }
}

/* ========================================================================
   內頁區塊標題（inner-section-heading）— 左選單 / 右欄共用
   ======================================================================== */
.inner-section-heading {
  margin-bottom: 24px;
  text-align: left;
}

.inner-section-heading-text {
  margin: 0 0 14px;
  font-family: "Noto Serif TC", "Playfair Display", serif;
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #312c20;
  line-height: 1.5;
}

.inner-section-heading-line {
  display: flex;
  width: 100%;
  height: 3px;
  overflow: hidden;
}

.inner-section-heading-line-left {
  flex: 0 0 100px;
  width: 100px;
  background: #632318;
}

.inner-section-heading-line-right {
  flex: 1 1 auto;
  background: #e2ceb1;
}

/* ========================================================================
   內頁左側垂直選單（inner-side-nav）
   ======================================================================== */
.inner-side-nav {
  margin-top: 8px;
}

.inner-side-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.inner-side-nav-list li {
  margin: 0;
  padding: -1px 0;
  border-bottom: 1px solid #e2ceb1;
}

.inner-side-nav-list li:last-child {
  border-bottom: 0;
}

.inner-side-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 12px 20px 8px;
  color: #312c20;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.inner-side-nav-link::before {
  content: "◆";
  flex: 0 0 auto;
  font-size: 0.421875rem;
  color: #8d7949;
  line-height: 1.5;
}

.inner-side-nav-link::after {
  content: "";
  flex: 1 1 auto;
}

.inner-side-nav-link:hover,
.inner-side-nav-link:focus-visible {
  background: #f7f5ef;
  color: #632318;
}

.inner-side-nav-link.is-active {
  background: #f7f5ef;
  color: #632318;
}

.inner-side-nav-link.is-active::before {
  color: #632318;
}

.inner-side-nav-link.is-active::after {
  content: "\2192";
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 0.875rem;
  color: #632318;
}

.inner-side-nav-link:focus-visible {
  outline: 2px solid #632318;
  outline-offset: -2px;
}

/* ========================================================================
   手機版分類下拉選單（layout-left 側邊選單在 ≤900px 會收起，改用這個取代，
   避免分類完全消失；見 ebook.php / download.php / news_list.php）
   ======================================================================== */
.mobile-category-selector {
  display: none;
}

.mobile-category-select {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 40px 0 16px;
  border: 1px solid #e2ceb1;
  border-radius: 2px;
  background-color: #fff;
  color: #7c6650;
  font-size: 1rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="8" viewBox="0 0 16 8"><path d="M0 0l8 8 8-8z" fill="%237c6650"/></svg>');
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 7px;
}

.mobile-category-select:hover,
.mobile-category-select:focus-visible {
  border-color: #65261c;
}

@media screen and (max-width: 900px) {
  .mobile-category-selector {
    display: block;
    margin-bottom: 24px;
  }
}

/* ========================================================================
   電子書列表（ebook-grid）
   ======================================================================== */
.ebook-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}

.ebook-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.ebook-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #f7f5ef;
}

.ebook-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.ebook-thumb.aos-animate img {
  transform: scale(1);
}

.ebook-thumb:hover.aos-animate img,
.ebook-card:focus-within .ebook-thumb.aos-animate img {
  transform: scale(1.08);
  transition-duration: 0.55s;
}

.ebook-thumb:hover:not(.aos-animate) img,
.ebook-card:focus-within .ebook-thumb:not(.aos-animate) img {
  transform: scale(1.22);
  transition-duration: 0.55s;
}

.ebook-new {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 46px;
  height: 46px;
  font-weight: normal;
  border-radius: 50%;
  background: #8b2f1c;
  color: #fff;
  font-size: 0.875rem;
  /* font-style: italic; */
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(58, 16, 11, 0.35);
}

.ebook-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #e2ceb1;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.ebook-overlay::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid #e2ceb1;
  pointer-events: none;
}

.ebook-overlay-txt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Noto Serif TC", "Playfair Display", serif;
}

.ebook-thumb:hover .ebook-overlay,
.ebook-thumb:focus-within .ebook-overlay {
  opacity: 1;
}

.ebook-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 16px 0 4px;
}

.ebook-title {
  position: relative;
  margin: 0 0 14px;
  padding-bottom: 14px;
  font-family: "Noto Serif TC", "Playfair Display", serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
}

.ebook-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(99, 35, 24, 0.12);
}

.ebook-title a {
  color: #312c20;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ebook-title a:hover,
.ebook-title a:focus-visible {
  color: #632318;
}

.ebook-more {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #632318;
  font-family: "Noto Serif TC", "Playfair Display", serif;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ebook-more:hover,
.ebook-more:focus-visible {
  color: #4a1a10;
}

@media screen and (max-width: 900px) {
  .ebook-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 18px;
  }
}

@media screen and (max-width: 560px) {
  .ebook-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ========================================================================
   檔案下載頁（download.php）
   ======================================================================== */
.inner-download-wrap,
.inner-news-wrap,
.inner-news-list-wrap {
  background: #ffffff url(../../images/inner-bg.png) repeat-y center top;
}

.download-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(99, 35, 24, 0.1);
}

.download-item:last-child {
  border-bottom: 0;
}

.download-item-mark {
  flex: 0 0 auto;
  font-size: 0.45rem;
  color: #8c7966;
  line-height: 1.5;
}

.download-item-cat {
  flex: 0 0 auto;
  display: inline-block;
  min-width: 96px;
  padding: 10px 14px;
  border: 1px solid #e2ceb1;
  background: #fff;
  color: #7c6650;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-align: center;
  box-sizing: border-box;
}

.download-item-title {
  flex: 1 1 auto;
  min-width: 0;
  color: #2d2220;
  font-family: "Noto Serif TC", "Playfair Display", serif;
  font-size: 0.9375rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.download-item-title:hover,
.download-item-title:focus-visible {
  color: #2d2220;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.download-item-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.download-item-btn img {
  display: block;
  width: 24px;
  height: auto;
}

.download-item-btn:hover,
.download-item-btn:focus-visible {
  opacity: 0.88;
}

.download-item-btn:focus-visible {
  outline: 2px solid #65261c;
  outline-offset: 2px;
}

/* ========================================================================
   分頁（showpage()，program/php_function.php；見 news_list.php 等前台列表頁）
   showpage() 輸出 <nav aria-label="分頁導覽"><ul class="pagination-list">...</ul></nav>
   ======================================================================== */
.pagination-wrapper {
  margin-top: 32px;
}

.pagination-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: #7c6650;
}

.pagination-status {
  padding: 0 4px;
}

.pagination-ellipsis {
  padding: 0 4px;
}

.pagination-select-item {
  display: inline-flex;
}

.pagination-wrapper a.pagelink,
.pagination-wrapper a.pagelink_no,
.pagination-wrapper a.pagelink_ch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e2ceb1;
  border-radius: 2px;
  background: #fff;
  color: #7c6650;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination-wrapper a.pagelink:hover,
.pagination-wrapper a.pagelink:focus-visible,
.pagination-wrapper a.pagelink_no:hover,
.pagination-wrapper a.pagelink_no:focus-visible {
  border-color: #65261c;
  background: #65261c;
  color: #fff;
}

.pagination-wrapper a.pagelink_ch {
  border-color: #65261c;
  background: #65261c;
  color: #fff;
}

.pagination-wrapper select.pageselect {
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e2ceb1;
  border-radius: 2px;
  background: #fff;
  color: #7c6650;
  font-size: 0.875rem;
}

@media screen and (max-width: 900px) {
  .download-item {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 0;
  }

  .download-item-title {
    flex: 1 1 100%;
    order: 3;
    padding-left: 24px;
  }

  .download-item-btn {
    margin-left: auto;
  }
}

@media screen and (max-width: 560px) {
  .download-item-cat {
    min-width: 88px;
    padding: 5px 10px;
    font-size: 0.8125rem;
  }

  .download-item-title {
    padding-left: 20px;
    font-size: 0.875rem;
  }
}

/* ========================================================================
   最新消息列表（news_list.php）
   ======================================================================== */
.news-list-date {
  flex: 0 0 auto;
  min-width: 88px;
  font-family: "Playfair Display", "Noto Serif TC", serif;
  color: #7c6650;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.news-list .download-item .home-news-more {
  flex: 0 0 auto;
}

@media screen and (max-width: 900px) {
  .news-list .download-item {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 0;
  }

  .news-list .download-item-title {
    flex: 1 1 100%;
    order: 4;
    padding-left: 24px;
  }

  .news-list-date {
    order: 3;
    margin-left: auto;
  }

  .news-list .download-item .home-news-more {
    order: 5;
    margin-left: auto;
  }
}

@media screen and (max-width: 560px) {
  .news-list-date {
    min-width: 80px;
    font-size: 0.8125rem;
  }

  .news-list .download-item-title {
    padding-left: 20px;
  }
}

/* ========================================================================
   最新消息內頁（news.php）
   ======================================================================== */
.inner-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.inner-news-panel .home-news-item {
  padding-left: 0;
  padding-right: 0;
}

.inner-news-panel .home-news-item:first-child {
  border-top: 1px solid rgba(99, 35, 24, 0.08);
}

@media screen and (max-width: 560px) {
  .inner-news-panel .home-news-item {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 16px 0;
  }

  .inner-news-panel .home-news-title {
    flex: 1 1 100%;
    order: 5;
    white-space: normal;
  }

  .inner-news-panel .home-news-more {
    margin-left: auto;
  }
}

/* ========================================================================
   最新消息詳情（news_detail.php）
   ======================================================================== */
.news-detail-panel {
  padding: 48px 0 72px;
  background: #ffffff url(../../images/inner-bg.png) repeat-y center top;
}

.news-detail-article {
  max-width: 900px;
  margin: 0 auto;
}

.news-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px 48px;
  margin-bottom: 28px;
}

.news-detail-head-left {
  flex: 1 1 auto;
  min-width: 0;
}

.news-detail-head-right {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding-top: 8px;
  text-align: right;
}

.news-detail-date {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  font-family: "Playfair Display", "Noto Serif TC", serif;
  color: #7c6650;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.news-detail-date i {
  color: #c4a882;
  font-size: 0.875rem;
}

.news-detail-cat {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #e2ceb1;
  background: #fff;
  color: #7c6650;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.news-detail-title {
  margin: 0 0 18px;
  font-family: "Noto Serif TC", "Playfair Display", serif;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #312c20;
  line-height: 1.5;
}

.news-detail-line {
  display: flex;
  width: 100%;
  max-width: 180px;
  height: 3px;
  overflow: hidden;
}

.news-detail-line-left {
  flex: 0 0 100px;
  width: 100px;
  background: #632318;
}

.news-detail-line-right {
  flex: 1 1 auto;
  background: #e2ceb1;
}

.news-detail-content {
  margin-bottom: 40px;
}

.news-detail-foot {
  display: flex;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid rgba(99, 35, 24, 0.1);
}

@media screen and (max-width: 768px) {
  .news-detail-head {
    flex-direction: column;
    gap: 18px;
  }

  .news-detail-head-right {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    padding-top: 0;
  }
}

@media screen and (max-width: 560px) {
  .news-detail-panel {
    padding: 36px 0 56px;
  }

  .news-detail-title {
    font-size: 1.375rem;
  }

  .news-detail-head-right {
    gap: 8px 12px;
  }
}

/* ========================================================================
   典藏查詢（collection_search.php / collection_search_result.php）
   ======================================================================== */
.collection-search-panel {
  background: #ffffff;
  padding: 48px 0 72px;
  box-sizing: border-box;
}

.collection-search-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.collection-search-panel .inner-page-heading-line-left,
.collection-search-panel .inner-page-heading-line-right {
  background: #e2ceb1;
}

.collection-search-form {
  margin-top: 36px;
  padding: 25px 48px 44px;
  background: #f7f5ef;
  box-sizing: border-box;
}

.collection-search-row {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid #ddd4c6;
}

.collection-search-row:first-child {
  border-top: 0;
}

.collection-search-label {
  flex: 0 0 88px;
  margin: 0;
  padding-top: 10px;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  color: #312c20;
}

.collection-search-field {
  flex: 1 1 auto;
  min-width: 0;
}

.collection-search-input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #9c876a; /* 無障礙 1.4.11：表單框線對相鄰底色 ≥3:1 */
  border-radius: 0;
  background: #ffffff;
  color: #312c20;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.collection-search-input::placeholder {
  color: #776a5c; /* 無障礙 1.4.3：placeholder 也算文字，白底 5.25:1 */
}

.collection-search-input:hover {
  border-color: #7d6a4f;
}

.collection-search-input:focus-visible {
  border-color: #632318;
  outline: 2px solid #632318;
  outline-offset: 2px;
}

.collection-search-select-wrap {
  position: relative;
}

.collection-search-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 0;
  height: 0;
  margin-top: -3px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #632318;
  pointer-events: none;
}

.collection-search-select {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 36px 0 14px;
  border: 1px solid #9c876a; /* 無障礙 1.4.11：表單框線對相鄰底色 ≥3:1 */
  border-radius: 0;
  background: #ffffff;
  color: #312c20;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-sizing: border-box;
  cursor: pointer;
}

.collection-search-select:focus-visible {
  border-color: #632318;
  outline: 2px solid #632318;
  outline-offset: 2px;
}

.collection-search-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 32px;
  padding-top: 6px;
}

.collection-search-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.collection-search-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.collection-search-check-box {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 1px solid #632318;
  background: #ffffff;
  box-sizing: border-box;
  position: relative;
}

.collection-search-check input:checked + .collection-search-check-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #632318;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.collection-search-check-text {
  font-size: 0.9375rem;
  color: #312c20;
  letter-spacing: 0.04em;
}

.collection-search-check input:focus-visible + .collection-search-check-box {
  outline: 2px solid #632318;
  outline-offset: 2px;
}

.collection-search-submit-row {
  padding-top: 36px;
  text-align: center;
}

.collection-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 160px;
  height: 46px;
  padding: 0 28px;
  border: 0;
  background: #632318;
  color: #ffffff;
  font-size: 1rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.collection-search-submit:hover,
.collection-search-submit:focus-visible {
  background: #4f1c13;
}

.collection-search-submit:focus-visible {
  outline: 2px solid #632318;
  outline-offset: 3px;
}

.collection-search-submit i {
  font-size: 0.9375rem;
}

.collection-search-result-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.collection-search-page {
  margin: 0;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  color: #312c20;
}

@media screen and (max-width: 720px) {
  .collection-search-form {
    padding: 28px 20px 32px;
  }

  .collection-search-row {
    flex-direction: column;
    gap: 10px;
    padding: 22px 0;
  }

  .collection-search-label {
    flex: none;
    padding-top: 0;
  }

  .collection-search-checks {
    grid-template-columns: 1fr;
    gap: 18px 0;
  }
}

/* ========================================================================
   聯絡我們（contact.php）
   ======================================================================== */
.inner-contact-wrap {
  background: #ffffff url(../../images/inner-bg.png) repeat-y center top;
}

.inner-contact-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  box-sizing: border-box;
}

.contact-section {
  margin-bottom: 64px;
}

.contact-section:last-child {
  margin-bottom: 0;
}

.contact-section-heading {
  text-align: center;
  margin-bottom: 36px;
}

.contact-section-heading .inner-page-heading-line {
  margin-left: auto;
  margin-right: auto;
}

.contact-section-heading .inner-page-heading-line-left,
.contact-section-heading .inner-page-heading-line-right {
  background: #e2ceb1;
}

.contact-info-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #f7f5ef;
  padding: 40px 24px;
  box-sizing: border-box;
}

.contact-info-item {
  position: relative;
  padding: 10px 10px 10px 28px;
  box-sizing: border-box;
}

.contact-info-item + .contact-info-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 100px;
  background: #e0dcd0;
}

.contact-info-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.contact-info-head i {
  flex: 0 0 auto;
  width: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #e2ceb1;
  text-align: center;
}

.contact-info-label {
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  color: #632318;
}

.contact-info-value {
  margin: 0;
  /* padding-left: 30px; */
  font-size: 0.9375rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: #000000;
  word-break: break-word;
}

.contact-info-value a {
  color: inherit;
  text-decoration: none;
}

.contact-info-value a:hover,
.contact-info-value a:focus-visible {
  color: #632318;
  text-decoration: underline;
}

.contact-map-frame {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 48%;
  overflow: hidden;
  background: #f3efe8;
}

.contact-map-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-form-intro {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.contact-form-intro p {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: #41392a;
}

.contact-form-intro p:last-child {
  margin-bottom: 0;
}

.contact-page-form {
  max-width: 760px;
  margin: 0 auto;
}

.contact-form-row {
  margin-bottom: 22px;
}

.contact-form-row--2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
}

.contact-form-row--half .contact-form-field {
  max-width: calc(50% - 16px);
}

.contact-form-field {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-form-field--textarea {
  align-items: flex-start;
}

.contact-form-field--textarea .contact-form-label {
  padding-top: 12px;
}

.contact-form-label {
  flex: 0 0 88px;
  margin: 0;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  color: #4a3a3a;
  text-align: right;
  white-space: nowrap;
}

/* 無障礙人工檢測：必填不可只用 *，改顯示文字「（必填）」；桌機放在標籤下一行，標籤欄維持原寬度、輸入框才對得齊 */
.contact-form-required {
  display: block;
  margin-top: 2px;
  margin-right: -0.5em; /* 全形「）」字形右半邊是空白，收回半格讓右緣跟標籤切齊 */
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0;
  color: #632318;
}

.contact-form-input,
.contact-form-select,
.contact-form-textarea {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  border: 1px solid #9c876a; /* 無障礙 1.4.11：表單框線對相鄰底色 ≥3:1 */
  border-radius: 0;
  background: #ffffff;
  color: #312c20;
  font-size: 0.9375rem;
  letter-spacing: 0.03em;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.contact-form-input {
  height: 42px;
  padding: 0 14px;
}

.contact-form-select-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.contact-form-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 0;
  height: 0;
  margin-top: -3px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #632318;
  pointer-events: none;
}

.contact-form-select {
  height: 42px;
  padding: 0 36px 0 14px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.contact-form-textarea {
  min-height: 180px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.7;
}

.contact-form-input:hover,
.contact-form-select:hover,
.contact-form-textarea:hover {
  border-color: #7d6a4f;
}

.contact-form-input:focus-visible,
.contact-form-select:focus-visible,
.contact-form-textarea:focus-visible {
  border-color: #632318;
  outline: 2px solid #632318;
  outline-offset: 2px;
}

/* 安全驗證：Cloudflare Turnstile 元件（取代圖片數字驗證碼），預留高度避免元件載入時版面跳動 */
.contact-form-turnstile {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 65px;
}

.contact-form-submit-row {
  padding-top: 12px;
  text-align: center;
}

.contact-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 168px;
  height: 44px;
  padding: 0 24px;
  border: 1px solid #632318;
  background: transparent;
  color: #632318;
  font-size: 0.9375rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.contact-form-submit:hover,
.contact-form-submit:focus-visible {
  background: #632318;
  color: #ffffff;
}

.contact-form-submit:focus-visible {
  outline: 2px solid #632318;
  outline-offset: 3px;
}

.contact-form-submit-arrow {
  font-size: 1rem;
  line-height: 1.5;
}

@media screen and (max-width: 960px) {
  .contact-info-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 32px 16px;
  }

  .contact-info-item {
    padding: 16px 20px;
  }

  .contact-info-item:nth-child(3)::after,
  .contact-info-item:nth-child(4)::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    height: 1px;
    background: #e0dcd0;
  }

  .contact-info-item:nth-child(3),
  .contact-info-item:nth-child(4) {
    padding-top: 28px;
  }

  .contact-form-row--half .contact-form-field {
    max-width: 100%;
  }
}

@media screen and (max-width: 720px) {
  .inner-contact-page {
    padding: 36px 16px 56px;
  }

  .contact-section {
    margin-bottom: 48px;
  }

  .contact-info-bar {
    grid-template-columns: 1fr;
    padding: 28px 16px;
  }

  .contact-info-item {
    padding: 18px 12px;
  }

  .contact-info-item + .contact-info-item::before {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    height: 1px;
  }

  .contact-info-item:nth-child(3)::after,
  .contact-info-item:nth-child(4)::after {
    display: none;
  }

  .contact-info-item:nth-child(3),
  .contact-info-item:nth-child(4) {
    padding-top: 18px;
  }

  .contact-map-frame {
    padding-bottom: 62%;
  }

  .contact-form-row--2col {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .contact-form-field {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .contact-form-label {
    flex: none;
    text-align: left;
  }

  .contact-form-required {
    display: inline;
    margin-top: 0;
    margin-right: 0;
    margin-left: 4px;
  }

  .contact-form-field--textarea .contact-form-label {
    padding-top: 0;
  }
}

/* ========================================================================
   全站 AOS 捲動動畫微調
   ======================================================================== */
[data-aos="home-zoom-in"] {
  opacity: 1;
  transform: none;
}

[data-aos="home-zoom-in"].aos-animate {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .home-collection-thumb-media img,
  .home-virtual-img,
  .exh-img,
  .collection-cat-img,
  .ebook-thumb img,
  #home_banner li::before {
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ========================================================================
   Cookie 提示區塊
   ======================================================================== */
.cookie-notice {
  position: fixed;
  display: none; /* 預設隱藏，由 JS 依 cookie 狀態切換為 flex */
  align-items: center;
  gap: 24px;
  max-width: 1100px;
  width: calc(100% - 20px);
  margin: 0 auto;
  bottom: 24px;
  left: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #2d2220;
  font-size: 0.9rem;
  line-height: 1.7;
  padding: 22px 30px;
  text-align: left;
  border: 1px solid rgba(99, 35, 24, 0.18);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(46, 16, 11, 0.28);
  overflow: hidden;
  z-index: 999;
}

.cookie-notice-text {
  flex: 1 1 auto;
}

.cookie-notice-text a {
  color: #632318;
  text-decoration: underline;
}

.cookie-notice button {
  flex-shrink: 0;
  background: #632318;
  color: #fff;
  border: none;
  padding: 10px 30px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.cookie-notice button:hover,
.cookie-notice button:focus-visible {
  background: #4a1a10;
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .cookie-notice {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 22px;
    bottom: 14px;
  }

  .cookie-notice button {
    width: 100%;
  }
}

/* ===== 捐款方式卡片（沿用全站色系，此頁專屬的小區塊，其他頁面沒有對應樣式可共用）===== */
.donate-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.donate-method-card {
  background: #f7f5ef;
  border: 1px solid #e0dcd0;
  border-radius: 6px;
  padding: 28px 24px;
  box-sizing: border-box;
}
.donate-method-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #632318;
}
.donate-method-head i {
  font-size: 1.25rem;
}
.donate-method-head span {
  font-weight: 700;
  font-size: 1.0625rem;
  color: #312c20;
}
.donate-method-card dl {
  margin: 0;
}
.donate-method-card dt {
  font-size: 0.8125rem;
  color: #6b5c40;
  margin-top: 10px;
}
.donate-method-card dt:first-child {
  margin-top: 0;
}
.donate-method-card dd {
  margin: 2px 0 0;
  font-size: 0.9375rem;
  color: #312c20;
}
.donate-method-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #312c20;
}
.donate-method-placeholder {
  color: #b0645a;
}
.donate-note {
  background: #fbf8f0;
  border-left: 4px solid #e2ceb1;
  padding: 16px 20px;
  font-size: 0.875rem;
  line-height: 1.8;
  color: #6b5c40;
  margin-top: 32px;
}
.donate-cta {
  text-align: center;
  margin-top: 40px;
}
.donate-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: #632318;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease;
}
.donate-cta a:hover {
  background: #4a1a12;
}
@media screen and (max-width: 720px) {
  .donate-method-grid {
    grid-template-columns: 1fr;
  }
}

.no-datas{text-align: center;margin-top:85px;}

.video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-container iframe {
  width: 100%;
  height: 100%;
}
/* ========================================================================
   網站導覽 sitemap.php（網站無障礙導覽說明 + 網站架構）
   ======================================================================== */
.sitemap-block {
  margin-bottom: 48px;
}

.sitemap-intro {
  padding: 0 6px;
  color: #3d3428;
  font-size: 1rem;
  line-height: 1.8;
}

.sitemap-intro p {
  margin: 0 0 12px;
}

.sitemap-area-list {
  margin: 0 0 24px;
  padding-left: 1.6em;
}

.sitemap-area-list li {
  padding: 2px 0;
}

.sitemap-key-title {
  margin: 0 0 10px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  color: #312c20;
}

.sitemap-key-list {
  margin: 0 0 20px;
  padding-left: 1.4em;
  list-style: disc;
}

.sitemap-key-list li {
  padding: 6px 0;
}

/* 快速鍵文字：白底對比約 6.4:1，符合 AA */
.sitemap-key {
  color: #b3261e;
  font-weight: 700;
}

.sitemap-note {
  padding: 16px 20px;
  background: #f7f8f9;
  border: 1px solid #dfe3e6;
  border-radius: 4px;
}

.sitemap-intro .sitemap-note p {
  margin: 0;
}

.sitemap-intro .sitemap-note .sitemap-note-title {
  font-weight: 700;
}

/* 用多欄（column）瀑布流：典藏總覽分類特別多，用 grid 會把整排撐高留下大片空白；DOM 順序不變，不影響 Tab／報讀順序 */
.sitemap-grid {
  columns: 3 220px;
  column-gap: 32px;
  padding: 0 6px;
}

.sitemap-group {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 28px;
}

.sitemap-group-title {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2ceb1;
  font-family: "Noto Serif TC", "Playfair Display", serif;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.5;
  color: #312c20;
}

.sitemap-group-title a {
  color: #632318;
  text-decoration: none;
}

.sitemap-sub-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-sub-list li {
  position: relative;
  padding: 5px 0 5px 16px;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.sitemap-sub-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.95em;
  width: 6px;
  height: 6px;
  background: #b08d4e;
  transform: rotate(45deg);
}

.sitemap-sub-list a {
  color: #3d3428;
  text-decoration: none;
}

.sitemap-group-title a:hover,
.sitemap-group-title a:focus-visible,
.sitemap-sub-list a:hover,
.sitemap-sub-list a:focus-visible {
  color: #632318;
  text-decoration: underline;
}

@media screen and (max-width: 560px) {
  .sitemap-block {
    margin-bottom: 36px;
  }

  .sitemap-grid {
    columns: 1;
  }

  .sitemap-group {
    margin-bottom: 22px;
  }
}
