/* ====== 全站字體 ======
   中文：思源宋體（Noto Serif CJK TC）— 大標 Black(900)、副標 Bold(700)、內文 Medium(500)
   英數：DIN Pro Condensed — Black / Bold / Medium
   unicode-range 限制中文字型只套用 CJK，英數走 DIN。
   font-display: block — 等自訂字體就緒再顯示，避免先閃系統舊字體再跳換。 */
@font-face{
  font-family: "FIFI CJK Serif";
  src: url("../assets/fonts/思源宋體/NOTOSERIFCJKTC-MEDIUM.OTF") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
  unicode-range: U+2E80-2EFF, U+3000-303F, U+31C0-31EF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF, U+20000-2A6DF, U+2A700-2B73F, U+2B740-2B81F, U+2B820-2CEAF, U+2CEB0-2EBEF;
}
@font-face{
  font-family: "FIFI CJK Serif";
  src: url("../assets/fonts/思源宋體/NOTOSERIFCJKTC-MEDIUM.OTF") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: block;
  unicode-range: U+2E80-2EFF, U+3000-303F, U+31C0-31EF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF, U+20000-2A6DF, U+2A700-2B73F, U+2B740-2B81F, U+2B820-2CEAF, U+2CEB0-2EBEF;
}
@font-face{
  font-family: "FIFI CJK Serif";
  src: url("../assets/fonts/思源宋體/NOTOSERIFCJKTC-BOLD.OTF") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: block;
  unicode-range: U+2E80-2EFF, U+3000-303F, U+31C0-31EF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF, U+20000-2A6DF, U+2A700-2B73F, U+2B740-2B81F, U+2B820-2CEAF, U+2CEB0-2EBEF;
}
@font-face{
  font-family: "FIFI CJK Serif";
  src: url("../assets/fonts/思源宋體/NOTOSERIFCJKTC-BOLD.OTF") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: block;
  unicode-range: U+2E80-2EFF, U+3000-303F, U+31C0-31EF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF, U+20000-2A6DF, U+2A700-2B73F, U+2B740-2B81F, U+2B820-2CEAF, U+2CEB0-2EBEF;
}
@font-face{
  font-family: "FIFI CJK Serif";
  src: url("../assets/fonts/思源宋體/NOTOSERIFCJKTC-BLACK.OTF") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: block;
  unicode-range: U+2E80-2EFF, U+3000-303F, U+31C0-31EF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF, U+20000-2A6DF, U+2A700-2B73F, U+2B740-2B81F, U+2B820-2CEAF, U+2CEB0-2EBEF;
}
@font-face{
  font-family: "FIFI CJK Serif";
  src: url("../assets/fonts/思源宋體/NOTOSERIFCJKTC-BLACK.OTF") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: block;
  unicode-range: U+2E80-2EFF, U+3000-303F, U+31C0-31EF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF, U+20000-2A6DF, U+2A700-2B73F, U+2B740-2B81F, U+2B820-2CEAF, U+2CEB0-2EBEF;
}

/* 內文中文：思源黑體（Noto Sans CJK TC / GenJyuu）Medium */
@font-face{
  font-family: "FIFI CJK Sans";
  src: url("../assets/fonts/思源柔黑體/GenJyuuGothic-Medium.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
  unicode-range: U+2E80-2EFF, U+3000-303F, U+31C0-31EF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF, U+20000-2A6DF, U+2A700-2B73F, U+2B740-2B81F, U+2B820-2CEAF, U+2CEB0-2EBEF;
}
@font-face{
  font-family: "FIFI CJK Sans";
  src: url("../assets/fonts/思源柔黑體/GenJyuuGothic-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: block;
  unicode-range: U+2E80-2EFF, U+3000-303F, U+31C0-31EF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF, U+20000-2A6DF, U+2A700-2B73F, U+2B740-2B81F, U+2B820-2CEAF, U+2CEB0-2EBEF;
}

@font-face{
  font-family: "DIN Pro Condensed";
  src: url("../assets/fonts/din-pro-cond-cufonfonts/DINPro-CondMedium.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face{
  font-family: "DIN Pro Condensed";
  src: url("../assets/fonts/din-pro-cond-cufonfonts/DINPro-CondMedium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: block;
}
@font-face{
  font-family: "DIN Pro Condensed";
  src: url("../assets/fonts/din-pro-cond-cufonfonts/DINPro-CondBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: block;
}
@font-face{
  font-family: "DIN Pro Condensed";
  src: url("../assets/fonts/din-pro-cond-cufonfonts/DINPro-CondBold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}
@font-face{
  font-family: "DIN Pro Condensed";
  src: url("../assets/fonts/din-pro-cond-cufonfonts/DINPro-CondBlack.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: block;
}
@font-face{
  font-family: "DIN Pro Condensed";
  src: url("../assets/fonts/din-pro-cond-cufonfonts/DINPro-CondBlack.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: block;
}

:root{
  --bg: #5a5d62;
  --panel: #3a3c40;
  --panel-2:#2f3134;
  --text: #e6e8eb;
  --muted: #b9bec6;
  --line: rgba(230,232,235,.14);
  --warm: #aeb4bc;     /* 由暖色改為灰階 */
  --warm-2:#d5d9df;    /* 由暖色改為灰階 */
  --shadow: rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --radius-sm: 10px;
  --font-tracking: 1.33px;
  --mono: "DIN Pro Condensed", "FIFI CJK Serif", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: "DIN Pro Condensed", "FIFI CJK Serif", "Noto Serif TC", "Microsoft JhengHei", Arial, sans-serif;
  --content-width: 920px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background:
    radial-gradient(1200px 800px at 20% 10%, rgba(201,162,122,.09), transparent 55%),
    radial-gradient(900px 700px at 80% 85%, rgba(226,199,162,.06), transparent 60%),
    linear-gradient(180deg, #0b0d0f 0%, var(--bg) 40%, #0b0d0f 100%);
  color:var(--text);
  font-family:var(--sans);
  font-weight: 500;
  letter-spacing: var(--font-tracking);
  overflow:auto;
}

a{ color:inherit; text-decoration:none; }
button, input, textarea{ font-family:inherit; }

.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(16,19,22,.92) 0%, rgba(16,19,22,.78) 100%);
  border-bottom: 1px solid var(--line);
}
.topbarLogoInline{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 2px 0 2px;
}
.topbarLogo{
  display:none;
  max-width: min(240px, 70vw);
  max-height: 56px;
  object-fit: contain;
  filter: saturate(.95) contrast(1.02) brightness(.98);
  opacity: .95;
}
.topbarLogo.isVisible{ display:block; }
.topbarInner{
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 16px 14px 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 12px;
  text-align:center;
}
.topbarBrand{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width: 0;
  width: 100%;
  align-items:center;
}
.topbarTitle{
  /* mono 字體在部分環境可能缺少中文字形，改用 sans 確保「典藏庫」完整顯示 */
  font-family: var(--sans);
  letter-spacing: 1.33px;
  text-transform: none;
  font-size: 18.67px;
  color: var(--warm-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbarSubtitle{
  font-size: 16.67px;
  color: var(--muted);
  line-height: 1.45;
}
.menuToggle{
  border: 1px solid var(--line);
  background: rgba(0,0,0,.16);
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 1.33px;
  text-transform: uppercase;
  cursor: pointer;
  transition: 160ms ease;
  flex: 0 0 auto;
}
.menuToggle:hover{
  color: var(--text);
  border-color: rgba(201,162,122,.28);
}


.brand{
  display:none;
}
.brand{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:12px 12px 14px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0,0,0,.22);
  box-shadow: 0 10px 40px var(--shadow);
}
.brandTitle{
  font-family:var(--mono);
  letter-spacing: 1.33px;
  text-transform:uppercase;
  font-size: 18.67px;
  color:var(--warm-2);
}
.brandSubtitle{
  font-size: 17.33px;
  color:var(--muted);
  line-height:1.5;
}

.navGroup{
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  background: rgba(0,0,0,.18);
}
.navGroupHeader{
  padding:10px 12px;
  font-family:var(--mono);
  font-size: 16px;
  letter-spacing: 1.33px;
  text-transform:uppercase;
  color:var(--muted);
  background: rgba(201,162,122,.06);
  border-bottom:1px solid var(--line);
}
.navItems{ padding:6px; display:flex; flex-direction:column; gap:4px; }
.navNode{
  padding:10px 10px;
  border-radius: 10px;
  border:1px solid transparent;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  transition: 160ms ease;
  cursor:pointer;
  user-select:none;
}
.navNode:hover{
  background: rgba(236,233,228,.06);
  border-color: rgba(236,233,228,.10);
}
.navNodeActive{
  background: rgba(201,162,122,.10);
  border-color: rgba(201,162,122,.22);
}
.navNodeLeft{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width: 0;
}
.navNodeChevron{
  color: var(--muted);
  font-family: var(--mono);
  font-size: 16px;
}
.navChildren{
  margin: 4px 0 6px 10px;
  padding-left: 10px;
  border-left: 1px solid rgba(236,233,228,.12);
  display:flex;
  flex-direction:column;
  gap:4px;
}
.navChild{
  padding:8px 10px;
  border-radius: 10px;
  border:1px solid transparent;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  transition: 160ms ease;
}
.navChild:hover{
  background: rgba(236,233,228,.06);
  border-color: rgba(236,233,228,.10);
}
.navChildActive{
  background: rgba(201,162,122,.12);
  border-color: rgba(201,162,122,.26);
}
.navChildLabel{
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 1.33px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.navChildHint{
  font-size: 16px;
  color:var(--muted);
}
.navItem{
  padding:10px 10px;
  border-radius: 10px;
  border:1px solid transparent;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  transition: 160ms ease;
}
.navItem:hover{
  background: rgba(236,233,228,.06);
  border-color: rgba(236,233,228,.10);
}
.navItemActive{
  background: rgba(201,162,122,.10);
  border-color: rgba(201,162,122,.22);
}
.navItemLabel{
  font-family:var(--mono);
  font-size: 16.67px;
  letter-spacing: 1.33px;
}
.navItemHint{
  font-size: 16px;
  color:var(--muted);
}


.navFooter{
  color:var(--muted);
  font-size: 16px;
  line-height:1.5;
  padding: 0 2px;
}


.home{
  display:flex;
  flex-direction:column;
  gap: 14px;
}
.homeHoverArea{
  border: 1px solid var(--line);
  background: rgba(0,0,0,.12);
  border-radius: var(--radius);
  padding: 14px;
}
.homeHoverArea,
.homeIntro{
  text-align:center;
}
.homeHoverTitle{
  margin:0;
  font-family: var(--mono);
  letter-spacing: 1.33px;
  text-transform: uppercase;
  font-size: 17.33px;
  color: var(--warm-2);
}
.homeHoverSub{
  margin: 10px 0 0;
  line-height: 1.75;
  color: var(--muted);
}
.homeHoverListWrap{
  margin-top: 12px;
}
.homeIntro{
  border: 1px solid var(--line);
  background: rgba(0,0,0,.14);
  border-radius: var(--radius);
  padding: 14px;
}
.homeIntroTitle{
  margin:0;
  font-family: var(--mono);
  letter-spacing: 1.33px;
  text-transform: uppercase;
  font-size: 17.33px;
  color: var(--warm-2);
}
.homeIntroText{
  margin:10px 0 0;
  line-height: 1.75;
  color: var(--muted);
}

.indexList{
  display:flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: center;
  align-items: baseline;
  align-content: center;
}
.indexItem{
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
}
.indexRow{
  display:flex;
  align-items:baseline;
  justify-content:flex-start;
  gap: 8px;
}
.indexLabel{
  font-family: var(--mono);
  letter-spacing: 1.33px;
  font-size: 17.33px;
  color: var(--text);
  padding: 2px 0;
  border-bottom: 1px solid rgba(236,233,228,.16);
  transition: 160ms ease;
  cursor: default;
  white-space: nowrap;
}
.indexItem:hover .indexLabel{
  color: var(--warm-2);
  border-bottom-color: rgba(201,162,122,.35);
}
.indexHint{
  font-family: var(--mono);
  font-size: 15.33px;
  letter-spacing: 1.33px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  display:none;
}


.cursorFlyout{
  position: fixed;
  min-width: 260px;
  max-width: min(360px, calc(100vw - 24px));
  border:1px solid rgba(236,233,228,.16);
  background: rgba(16,19,22,.96);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 18px 60px var(--shadow);
  display:none;
  z-index: 50;
}
.cursorFlyoutOpen{ display:block; }
.cursorFlyoutTitle{
  padding: 8px 10px 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 14.67px;
  letter-spacing: 1.33px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(236,233,228,.10);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flyoutItem{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.flyoutItem:hover{
  background: rgba(236,233,228,.06);
  border-color: rgba(236,233,228,.10);
}
.flyoutLabel{
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 1.33px;
  color: var(--text);
}
.flyoutArrow{
  color: var(--muted);
  font-family: var(--mono);
  font-size: 16px;
}

.backRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.backLink{
  border:1px solid var(--line);
  background: rgba(0,0,0,.14);
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 1.33px;
  text-transform: uppercase;
  cursor:pointer;
  transition: 160ms ease;
}
.backLink:hover{
  color: var(--text);
  border-color: rgba(201,162,122,.28);
}


.main{
  padding: 18px 14px 56px;
}
.mainSingle{
  max-width: var(--content-width);
  margin: 0 auto;
  text-align:center;
}
.page{
  max-width: var(--content-width);
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:14px;
  text-align:center;
}

.hero{
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  overflow:hidden;
  box-shadow: 0 18px 60px var(--shadow);
}
.heroImg{
  width:100%;
  height: 320px;
  object-fit: cover;
  display:block;
  filter: saturate(.92) contrast(1.05) brightness(.92);
}
.heroBar{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  padding:12px 14px;
  border-top:1px solid var(--line);
  background: linear-gradient(180deg, rgba(0,0,0,.20), rgba(0,0,0,.34));
}
.heroTitle{
  font-family:var(--mono);
  letter-spacing: 1.33px;
  text-transform:uppercase;
  color:var(--warm-2);
  font-size: 18.67px;
}
.heroCaption{
  color:var(--muted);
  font-size: 16.67px;
  line-height:1.45;
  max-width: 70ch;
  margin: 0 auto;
}

.tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.tab{
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  color:var(--muted);
  padding:9px 12px;
  border-radius: 999px;
  font-family:var(--mono);
  font-size: 16px;
  letter-spacing: 1.33px;
  text-transform:uppercase;
  cursor:pointer;
  transition: 160ms ease;
}
.tab:hover{
  border-color: rgba(201,162,122,.25);
  color: var(--text);
}
.tabActive{
  background: rgba(201,162,122,.14);
  border-color: rgba(201,162,122,.28);
  color: var(--text);
}

.panel{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0,0,0,.18);
  padding:14px;
  text-align:center;
}

.textBlock{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
}
.textBlock h3{
  margin:0;
  font-family:var(--mono);
  letter-spacing: 1.33px;
  font-size: 17.33px;
  color: var(--warm-2);
  text-transform:uppercase;
}
.textBlock p{
  margin:0;
  line-height:1.75;
  color: var(--text);
  max-width: 78ch;
  margin-left:auto;
  margin-right:auto;
}
.muted{ color: var(--muted); }

.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
.card{
  border:1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow:hidden;
  background: rgba(0,0,0,.16);
}
.card img{
  width:100%;
  height: 220px;
  object-fit: cover;
  display:block;
  filter: saturate(.92) contrast(1.05) brightness(.92);
}
.cardBody{
  padding:10px 12px;
  border-top:1px solid var(--line);
}
.cardBody .note{
  color: var(--muted);
  font-size: 16.67px;
  line-height:1.5;
}

.diaryList{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.entry{
  border:1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,.16);
  padding:12px 12px 10px;
}
.entryHead{
  display:flex;
  gap:10px;
  align-items:baseline;
  justify-content:space-between;
  flex-wrap:wrap;
}
.entryTitle{
  font-family:var(--mono);
  text-transform:uppercase;
  letter-spacing: 1.33px;
  font-size: 16.67px;
  color: var(--warm-2);
}
.entryMeta{
  font-size: 16px;
  color: var(--muted);
}
.entryBody{
  margin-top:8px;
  line-height:1.75;
  color: var(--text);
  white-space: pre-wrap;
}
.tags{
  margin-top:10px;
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.tag{
  border:1px solid rgba(201,162,122,.25);
  background: rgba(201,162,122,.10);
  color: var(--warm-2);
  padding:4px 8px;
  border-radius: 999px;
  font-family:var(--mono);
  font-size: 14.67px;
  letter-spacing: 1.33px;
  text-transform:uppercase;
}

.composer{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.field{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.field label{
  font-family:var(--mono);
  font-size: 14.67px;
  letter-spacing: 1.33px;
  text-transform:uppercase;
  color: var(--muted);
}
.field input, .field textarea{
  border:1px solid var(--line);
  background: rgba(0,0,0,.20);
  color: var(--text);
  border-radius: 10px;
  padding:10px 10px;
  outline:none;
}
.field textarea{
  min-height:120px;
  resize: vertical;
  grid-column: 1 / -1;
}
.actions{
  grid-column: 1 / -1;
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
}
.btn{
  border:1px solid rgba(201,162,122,.28);
  background: rgba(201,162,122,.14);
  color: var(--text);
  padding:10px 12px;
  border-radius: 12px;
  cursor:pointer;
  font-family:var(--mono);
  font-size: 16px;
  letter-spacing: 1.33px;
  text-transform:uppercase;
  transition: 160ms ease;
}
.btn:hover{
  background: rgba(201,162,122,.20);
  border-color: rgba(201,162,122,.38);
}
.btnGhost{
  border-color: var(--line);
  background: rgba(0,0,0,.10);
  color: var(--muted);
}
.btnGhost:hover{
  border-color: rgba(236,233,228,.22);
  color: var(--text);
  background: rgba(236,233,228,.06);
}

@media (max-width: 980px){
  .main{ padding:14px 14px 48px; }
  .heroImg{ height: 240px; }
  .grid{ grid-template-columns: 1fr; }
  .composer{ grid-template-columns: 1fr; }
}

/* ====== 2026-05: 新架構（首頁 Banner / 典籍 / 研究翻書） ====== */

.homeBannerArea{
  border: 1px solid var(--line);
  background: rgba(0,0,0,.12);
  border-radius: var(--radius);
  padding: 14px;
  text-align:center;
}

.homeHouseArea{
  border: 1px solid var(--line);
  background: rgba(0,0,0,.12);
  border-radius: var(--radius);
  padding: 14px;
  text-align:center;
}

.houseStagePhoto{
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid rgba(230,232,235,.14);
  overflow:hidden;
  background: rgba(0,0,0,.16);
  box-shadow: 0 18px 60px var(--shadow);
}

.housePhoto{
  width: 100%;
  height: auto;
  display:block;
  filter: grayscale(1) contrast(1.08) brightness(.92);
}

.floorHotspots{
  position:absolute;
  inset: 0;
}

.floorHotspot{
  position:absolute;
  left: 18%;
  width: 64%;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid transparent;
  transform-origin: 50% 50%;
  transition: 160ms ease;
  cursor: pointer;
  background: rgba(0,0,0,.01);
}

.floorHotspot::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.00), rgba(0,0,0,.14));
  opacity: .85;
  pointer-events:none;
}

.floorCrop{
  position:absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(.92);
  transform: none; /* 精準裁切由 canvas 產生，不需再做縮放 */
}

/* 精準裁切完成後，object-position 不再是關鍵（保留預設值即可） */

.floorHotspot:hover{
  transform: scale(1.02);
  border-color: rgba(230,232,235,.22);
  box-shadow: 0 18px 48px rgba(0,0,0,.35);
}

.floorLabel{
  position:absolute;
  left: 12px;
  bottom: 10px;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 1.33px;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 2px 14px rgba(0,0,0,.55);
  z-index: 2;
  opacity: 0;
  transition: 160ms ease;
}
.floorHotspot:hover .floorLabel{ opacity: 1; }

/* 以百分比切出樓層區塊（可再依你喜歡的位置微調） */
.floorHotspot1{
  top: 2%;
  height: 28%;
}
.floorHotspot2{
  top: 31%;
  height: 33%;
}
.floorHotspot3{
  top: 66%;
  height: 32%;
}

.houseStage{
  position: relative;
  max-width: 980px;
  margin: 14px auto 0;
  border-radius: var(--radius);
  border: 1px solid rgba(236,233,228,.14);
  background: rgba(0,0,0,.18);
  overflow:hidden;
  box-shadow: 0 18px 60px var(--shadow);
}

.houseImg{
  width: 100%;
  height: auto;
  display:block;
  filter: grayscale(1) contrast(1.08) brightness(.92);
}

.houseBanners{
  position:absolute;
  inset: 0;
  pointer-events: none;
}

.houseBanner{
  pointer-events: auto;
  position:absolute;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap: 6px;
  text-align:center;
  border-radius: 14px;
  border: 1px solid rgba(230,232,235,.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(0,0,0,.18)),
    linear-gradient(180deg, rgba(120,125,135,.22), rgba(0,0,0,0));
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  transition: 180ms ease;
  padding: 12px 12px;
  transform-origin: 50% 50%;
  opacity: .92;
  mix-blend-mode: multiply;
}
.houseBanner:hover{
  transform: translateY(-2px);
  border-color: rgba(230,232,235,.26);
}

/* 位置：一張橫幅貼牆、兩張垂掛長條 */
.houseBanner1{
  left: 36%;
  top: 49%;
  width: 28%;
  min-height: 72px;
  transform: perspective(900px) rotateY(-10deg) rotateX(2deg);
}
.houseBanner2{
  left: 16%;
  top: 20%;
  width: 16%;
  min-height: 280px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.18)),
    linear-gradient(180deg, rgba(120,125,135,.18), rgba(0,0,0,0));
  transform: perspective(900px) rotateY(8deg) rotateX(1deg);
}
.houseBanner3{
  right: 16%;
  top: 20%;
  width: 16%;
  min-height: 280px;
  border-radius: 999px;
  transform: perspective(900px) rotateY(-8deg) rotateX(1deg);
}

.houseBannerTitle{
  font-family: var(--mono);
  letter-spacing: 1.33px;
  text-transform: uppercase;
  font-size: 16.67px;
  color: var(--warm-2);
}
.houseBannerSub{
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 20ch;
}

.bannerGrid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.bannerCard{
  --bannerTint: rgba(201,162,122,.14);
  position: relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 8px;
  min-height: 160px;
  padding: 16px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(236,233,228,.14);
  background:
    radial-gradient(900px 500px at 20% 20%, rgba(226,199,162,.10), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.34)),
    linear-gradient(180deg, var(--bannerTint), rgba(0,0,0,0));
  box-shadow: 0 18px 60px var(--shadow);
  transition: 200ms ease;
  text-align:center;
}
.bannerCard:hover{
  transform: translateY(-2px);
  border-color: rgba(201,162,122,.30);
}

.bannerTitle{
  font-family: var(--mono);
  letter-spacing: 1.33px;
  text-transform: uppercase;
  font-size: 17.33px;
  color: var(--warm-2);
}
.bannerSub{
  color: var(--muted);
  font-size: 16.67px;
  line-height: 1.55;
  max-width: 36ch;
}
.bannerHint{
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 1.33px;
  text-transform: uppercase;
  color: var(--text);
  opacity: .9;
}

/* 典籍：歷年網站連結清單 */
.linkList{
  display:flex;
  flex-direction:column;
  gap: 8px;
  max-width: 680px;
  margin: 0 auto;
}
.linkItem{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.16);
  transition: 160ms ease;
}
.linkItem:hover{
  border-color: rgba(201,162,122,.30);
  background: rgba(236,233,228,.06);
}
.linkTitle{
  font-family: var(--mono);
  font-size: 16.67px;
  letter-spacing: 1.33px;
  color: var(--text);
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.linkHint{
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 1.33px;
  text-transform: uppercase;
  color: var(--muted);
  flex: 0 0 auto;
}

/* 典籍：作品分頁與詳細 */
.subTabs{
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
  justify-content:center;
}
.detail{
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,.16);
  padding: 12px 12px;
  text-align:left;
}
.detailRow{
  display:grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 8px 6px;
  border-bottom: 1px solid rgba(236,233,228,.10);
}
.detailRow:last-child{ border-bottom:0; }
.detailKey{
  font-family: var(--mono);
  font-size: 15.33px;
  letter-spacing: 1.33px;
  text-transform: uppercase;
  color: var(--muted);
}
.detailVal{
  color: var(--text);
  line-height: 1.7;
  white-space: pre-wrap;
}

/* 典籍：影音 */
.videoWrap{
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,.14);
  overflow:hidden;
}
.videoTitle{
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 1.33px;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(201,162,122,.06);
}
.videoFrame{
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display:block;
}

/* 典籍：歷年展演卡片 */
.perfGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}
.perfCard{
  text-align:left;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,.16);
  padding: 12px 12px;
  cursor:pointer;
  transition: 160ms ease;
  color: var(--text);
}
.perfCard:hover{
  border-color: rgba(201,162,122,.30);
  background: rgba(236,233,228,.06);
}
.perfCardActive{
  border-color: rgba(201,162,122,.34);
  background: rgba(201,162,122,.10);
}
.perfTitle{
  font-family: var(--mono);
  letter-spacing: 1.33px;
  text-transform: uppercase;
  color: var(--warm-2);
  font-size: 16.67px;
}
.perfMeta{
  margin-top: 6px;
  font-size: 16px;
  color: var(--muted);
}
.perfDesc{
  margin-top: 8px;
  font-size: 16.67px;
  line-height: 1.6;
  color: var(--text);
  opacity: .95;
}

/* 研究：左右分欄 */
.researchSplit{
  display:grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 12px;
  align-items:start;
}
.bookPane{ text-align:center; }
.bookSide{ text-align:left; }
.readingGroupTitle{
  font-family: var(--mono);
  font-size: 15.33px;
  letter-spacing: 1.33px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.readingList{
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.readingItem{
  text-align:left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0,0,0,.14);
  padding: 10px 10px;
  cursor:pointer;
  transition: 160ms ease;
  color: var(--text);
}
.readingItem:hover{
  border-color: rgba(201,162,122,.30);
  background: rgba(236,233,228,.06);
}
.readingItemTitle{
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 1.33px;
  color: var(--text);
}
.readingItemMeta{
  margin-top: 6px;
  font-size: 16px;
  color: var(--muted);
}
.readingDetail{
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,.14);
  padding: 12px 12px;
  white-space: pre-wrap;
  line-height: 1.7;
  color: var(--text);
}

/* 研究：翻書 */
.flipBookWrap{
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  perspective: 2000px;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.42));
}
.flipBook{
  position: relative;
  width: 100%;
  height: 420px;
  transform-style: preserve-3d;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: inset 280px 0 50px rgba(0,0,0,.40);
  cursor: default;
  overflow: hidden;
}
.flipBook.isFlipping{
  box-shadow: inset 20px 0 50px rgba(0,0,0,.40);
}
.flipPage{
  position:absolute;
  inset: 0;
  border-radius: var(--radius);
  overflow:hidden;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  padding: 28px 30px 22px;
  text-align:left;
}
.flipPageFront{
  z-index: 2;
  transform-origin: left center;
  border: 1px solid rgba(0,0,0,.10);
}
.flipPageBack{
  z-index: 1;
}
.bookMeta{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 14.67px;
  letter-spacing: 1.33px;
  text-transform: uppercase;
  color: #6b7280;
}
.bookTitle{
  margin-top: 10px;
  font-family: var(--mono);
  letter-spacing: 1.33px;
  text-transform: uppercase;
  font-size: 17.33px;
  color: #1f2937;
}
.bookBody{
  margin-top: 10px;
  line-height: 1.8;
  color: #374151;
  white-space: pre-wrap;
  max-height: 270px;
  overflow:auto;
  padding-right: 4px;
}
.bookPageNo{
  position:absolute;
  right: 14px;
  bottom: 12px;
  font-family: var(--mono);
  font-size: 14.67px;
  letter-spacing: 1.33px;
  text-transform: uppercase;
  color: #9ca3af;
}
.bookControls{
  display:flex;
  gap: 10px;
  justify-content:center;
  flex-wrap:wrap;
}

/* 翻頁動態：僅在點擊時觸發 */
.flipBook.isFlipping .flipPageFront{
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.flipBook.flipDirNext.isFlipping .flipPageFront{
  transform: rotateY(-160deg);
}
.flipBook.flipDirPrev.isFlipping .flipPageFront{
  transform-origin: left center;
  transform: rotateY(0deg);
}
.flipBook.clickZoneLeft{ cursor: w-resize; }
.flipBook.clickZoneRight{ cursor: e-resize; }

@media (prefers-reduced-motion: reduce){
  .flipBook.isFlipping .flipPageFront{
    transition: none;
  }
}

@media (max-width: 980px){
  .bannerGrid{ grid-template-columns: 1fr; }
  .perfGrid{ grid-template-columns: 1fr; }
  .researchSplit{ grid-template-columns: 1fr; }
  .flipBook{ height: 380px; }
  .houseBanner2, .houseBanner3{
    top: 18%;
    width: 22%;
    min-height: 240px;
  }
  .houseBanner1{ left: 28%; width: 44%; top: 52%; }
  .floorHotspot{
    left: 10%;
    width: 80%;
    border-radius: 12px;
  }
}

/* ====== 義家藝館首頁（博物館立面） ====== */

body.isHomePage{
  background: #e8e4dc;
  overflow: hidden;
}
body.isHomePage .topbar{
  display: none;
}
body.isHomePage .main{
  padding: 0;
  margin: 0;
}
body.isHomePage .mainHome{
  max-width: none;
  padding: 0;
  margin: 0;
  text-align: initial;
  height: 100vh;
  height: 100svh;
}

.homeMuseum{
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  height: 100svh;
}
.homeMuseumArea{
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
}

.museumStage{
  width: 100vw;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #e8e4dc;
}
.museumStageInner{
  position: relative;
  flex: none;
  width: 1920px;
  height: 1080px;
  transform: scale(var(--home-scale, 1));
  transform-origin: center center;
  will-change: transform;
}
.museumPhoto,
.museumPhoto--base{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  user-select: none;
  -webkit-user-drag: none;
}
.museumSideLogos,
.museumBrandLogo,
.museumSupportLogos{
  position: absolute;
  z-index: 2;
  pointer-events: none;
  line-height: 0;
}
.museumSideLogosCover{
  position: absolute;
  inset: -4%;
  background: #e8e4dc;
  border-radius: 2px;
}
.museumSideLogosImg,
.museumBrandLogoImg,
.museumSupportLogosImg{
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  /* 黑底素材：讓黑色透明、白／灰字顯在紙紋上 */
  mix-blend-mode: screen;
}
.museumBrandLogoImg{
  object-position: top left;
}
.museumSupportLogosImg,
.museumSideLogosImg{
  object-position: top right;
}

.museumIntroOverlay{
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  opacity: 1;
  transition: opacity var(--home-intro-gif-fade, 500ms) ease;
  pointer-events: none;
}
.museumIntroOverlay.isFadingOut{
  opacity: 0;
  pointer-events: none;
}
.museumIntroGif{
  width: 73.6%;
  height: 116%;
  display: block;
  object-fit: fill;
  object-position: center center;
  transform: translate(var(--home-intro-offset-x, 0), var(--home-intro-offset-y, 0));
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.museumStageInner--awaitingIntro .museumProp,
.museumStageInner--awaitingIntro .museumNavItem{
  opacity: 0;
  pointer-events: none;
}
.museumStageInner--introRevealed .museumProp,
.museumStageInner--introRevealed .museumNavItem{
  opacity: 1;
  pointer-events: auto;
  z-index: 6;
  transition: opacity var(--home-intro-fade-in, 1400ms) ease;
}
.museumStageInner--introRevealed .museumNavItem--left{
  transition-delay: 120ms;
}
.museumStageInner--introRevealed .museumNavItem--center{
  transition-delay: 240ms;
}
.museumStageInner--introRevealed .museumNavItem--right{
  transition-delay: 360ms;
}

.museumProp,
.museumNavItem{
  position: absolute;
  display: block;
  padding: 0;
  border: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  outline: none;
  line-height: 0;
  /* 固定聯集點擊框，不因 hover 縮放（避免閃爍） */
  left: var(--hit-l, 0%);
  width: var(--hit-w, 10%);
  height: var(--hit-h, 10%);
  overflow: visible;
}
.museumProp{
  top: var(--hit-t, 0%);
}
.museumNavItem{
  top: auto;
  bottom: var(--hit-b, 0%);
}
.museumProp:focus-visible,
.museumNavItem:focus-visible{
  outline: none;
}

.museumSwapArt{
  position: absolute;
  display: block;
  object-fit: fill;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 120ms ease;
  pointer-events: none;
}
.museumSwapArt--default{
  left: var(--art-d-l, 0%);
  top: var(--art-d-t, 0%);
  width: var(--art-d-w, 100%);
  height: var(--art-d-h, 100%);
  opacity: 1;
}
.museumSwapArt--shine{
  left: var(--art-s-l, 0%);
  top: var(--art-s-t, 0%);
  width: var(--art-s-w, 100%);
  height: var(--art-s-h, 100%);
  opacity: 0;
}
.museumSwapArt--hover{
  left: var(--art-h-l, 0%);
  top: var(--art-h-t, 0%);
  width: var(--art-h-w, 100%);
  height: var(--art-h-h, 100%);
  opacity: 0;
}
@keyframes museumPropGlowBlink{
  0%, 100%{ opacity: .18; }
  50%{ opacity: .95; }
}
/* 海報：預設圖可見；Shining 待機閃爍；Open 為 hover */
.museumProp--banner-left .museumSwapArt--default,
.museumProp--banner-right .museumSwapArt--default{
  opacity: 1;
  mix-blend-mode: normal;
}
.museumProp--banner-left .museumSwapArt--shine,
.museumProp--banner-right .museumSwapArt--shine{
  mix-blend-mode: screen;
  animation: museumPropGlowBlink 2.2s ease-in-out infinite;
}
.museumProp--banner-left .museumSwapArt--hover,
.museumProp--banner-right .museumSwapArt--hover,
.museumProp--door .museumSwapArt--default,
.museumProp--door .museumSwapArt--hover{
  mix-blend-mode: screen;
}
/* 門：待機用 hover 圖在 shine 座標閃爍；打開時改到 hover 座標並停閃 */
.museumProp--door .museumSwapArt--hover{
  left: var(--art-s-l, var(--art-h-l, 0%));
  top: var(--art-s-t, var(--art-h-t, 0%));
  width: var(--art-s-w, var(--art-h-w, 100%));
  height: var(--art-s-h, var(--art-h-h, 100%));
  animation: museumPropGlowBlink 2.2s ease-in-out infinite;
}
.museumProp--door:hover .museumSwapArt--hover,
.museumProp--door:focus-visible .museumSwapArt--hover,
.museumStageInner:has(.museumNavItem--center:hover) .museumProp--door .museumSwapArt--hover,
.museumStageInner:has(.museumNavItem--center:focus-visible) .museumProp--door .museumSwapArt--hover{
  left: var(--art-h-l, 0%);
  top: var(--art-h-t, 0%);
  width: var(--art-h-w, 100%);
  height: var(--art-h-h, 100%);
  animation: none;
  opacity: 1;
}
.museumNavItem .museumSwapArt--default,
.museumNavItem .museumSwapArt--hover{
  object-fit: contain;
  object-position: bottom center;
  mix-blend-mode: normal;
}
.museumNavItem .museumSwapArt--default{
  opacity: 1;
}
.museumNavItem .museumSwapArt--hover{
  opacity: 0;
}
.museumProp:hover .museumSwapArt--default,
.museumProp:focus-visible .museumSwapArt--default,
.museumNavItem:hover .museumSwapArt--default,
.museumNavItem:focus-visible .museumSwapArt--default{
  opacity: 0;
}
.museumProp:hover .museumSwapArt--shine,
.museumProp:focus-visible .museumSwapArt--shine{
  opacity: 0 !important;
  animation: none !important;
}
.museumProp:hover .museumSwapArt--hover,
.museumProp:focus-visible .museumSwapArt--hover,
.museumNavItem:hover .museumSwapArt--hover,
.museumNavItem:focus-visible .museumSwapArt--hover{
  opacity: 1;
  animation: none;
}
.museumProp--banner-left:hover .museumSwapArt--hover,
.museumProp--banner-left:focus-visible .museumSwapArt--hover,
.museumProp--banner-right:hover .museumSwapArt--hover,
.museumProp--banner-right:focus-visible .museumSwapArt--hover,
.museumProp--door:hover .museumSwapArt--hover,
.museumProp--door:focus-visible .museumSwapArt--hover{
  animation: none;
  opacity: 1;
}

/* 海報／門 ↔ 下方標題選單：雙向連動 hover */
.museumStageInner:has(.museumProp--banner-left:hover) .museumNavItem--left .museumSwapArt--default,
.museumStageInner:has(.museumProp--banner-left:focus-visible) .museumNavItem--left .museumSwapArt--default,
.museumStageInner:has(.museumNavItem--left:hover) .museumProp--banner-left .museumSwapArt--default,
.museumStageInner:has(.museumNavItem--left:focus-visible) .museumProp--banner-left .museumSwapArt--default,
.museumStageInner:has(.museumProp--door:hover) .museumNavItem--center .museumSwapArt--default,
.museumStageInner:has(.museumProp--door:focus-visible) .museumNavItem--center .museumSwapArt--default,
.museumStageInner:has(.museumNavItem--center:hover) .museumProp--door .museumSwapArt--default,
.museumStageInner:has(.museumNavItem--center:focus-visible) .museumProp--door .museumSwapArt--default,
.museumStageInner:has(.museumProp--banner-right:hover) .museumNavItem--right .museumSwapArt--default,
.museumStageInner:has(.museumProp--banner-right:focus-visible) .museumNavItem--right .museumSwapArt--default,
.museumStageInner:has(.museumNavItem--right:hover) .museumProp--banner-right .museumSwapArt--default,
.museumStageInner:has(.museumNavItem--right:focus-visible) .museumProp--banner-right .museumSwapArt--default{
  opacity: 0;
}
.museumStageInner:has(.museumNavItem--left:hover) .museumProp--banner-left .museumSwapArt--shine,
.museumStageInner:has(.museumNavItem--left:focus-visible) .museumProp--banner-left .museumSwapArt--shine,
.museumStageInner:has(.museumNavItem--right:hover) .museumProp--banner-right .museumSwapArt--shine,
.museumStageInner:has(.museumNavItem--right:focus-visible) .museumProp--banner-right .museumSwapArt--shine{
  opacity: 0 !important;
  animation: none !important;
}
.museumStageInner:has(.museumProp--banner-left:hover) .museumNavItem--left .museumSwapArt--hover,
.museumStageInner:has(.museumProp--banner-left:focus-visible) .museumNavItem--left .museumSwapArt--hover,
.museumStageInner:has(.museumNavItem--left:hover) .museumProp--banner-left .museumSwapArt--hover,
.museumStageInner:has(.museumNavItem--left:focus-visible) .museumProp--banner-left .museumSwapArt--hover,
.museumStageInner:has(.museumProp--door:hover) .museumNavItem--center .museumSwapArt--hover,
.museumStageInner:has(.museumProp--door:focus-visible) .museumNavItem--center .museumSwapArt--hover,
.museumStageInner:has(.museumNavItem--center:hover) .museumProp--door .museumSwapArt--hover,
.museumStageInner:has(.museumNavItem--center:focus-visible) .museumProp--door .museumSwapArt--hover,
.museumStageInner:has(.museumProp--banner-right:hover) .museumNavItem--right .museumSwapArt--hover,
.museumStageInner:has(.museumProp--banner-right:focus-visible) .museumNavItem--right .museumSwapArt--hover,
.museumStageInner:has(.museumNavItem--right:hover) .museumProp--banner-right .museumSwapArt--hover,
.museumStageInner:has(.museumNavItem--right:focus-visible) .museumProp--banner-right .museumSwapArt--hover{
  opacity: 1;
}
.museumStageInner:has(.museumNavItem--left:hover) .museumProp--banner-left .museumSwapArt--hover,
.museumStageInner:has(.museumNavItem--left:focus-visible) .museumProp--banner-left .museumSwapArt--hover,
.museumStageInner:has(.museumNavItem--center:hover) .museumProp--door .museumSwapArt--hover,
.museumStageInner:has(.museumNavItem--center:focus-visible) .museumProp--door .museumSwapArt--hover,
.museumStageInner:has(.museumNavItem--right:hover) .museumProp--banner-right .museumSwapArt--hover,
.museumStageInner:has(.museumNavItem--right:focus-visible) .museumProp--banner-right .museumSwapArt--hover{
  animation: none;
}

.museumNav{
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.museumNavItem{
  pointer-events: auto;
  overflow: visible;
}

/* 觸控裝置：加大點擊區、點按時顯示 hover 圖 */
@media (pointer: coarse), (hover: none){
  .museumProp::before,
  .museumNavItem::before{
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: max(100%, 48px);
    height: max(100%, 48px);
    z-index: 0;
  }
  .museumProp,
  .museumNavItem{
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .museumProp:active .museumSwapArt--default,
  .museumNavItem:active .museumSwapArt--default{
    opacity: 0;
  }
  .museumProp:active .museumSwapArt--shine{
    opacity: 0 !important;
    animation: none !important;
  }
  .museumProp:active .museumSwapArt--hover,
  .museumNavItem:active .museumSwapArt--hover{
    opacity: 1;
    animation: none;
  }
  .museumProp--banner-left:active .museumSwapArt--hover,
  .museumProp--banner-right:active .museumSwapArt--hover,
  .museumProp--door:active .museumSwapArt--hover{
    animation: none;
  }
  .museumProp--door:active .museumSwapArt--hover,
  .museumStageInner:has(.museumNavItem--center:active) .museumProp--door .museumSwapArt--hover{
    left: var(--art-h-l, 0%);
    top: var(--art-h-t, 0%);
    width: var(--art-h-w, 100%);
    height: var(--art-h-h, 100%);
    animation: none;
    opacity: 1;
  }
  /* 觸控：上方／下方也雙向連動 */
  .museumStageInner:has(.museumProp--banner-left:active) .museumNavItem--left .museumSwapArt--default,
  .museumStageInner:has(.museumNavItem--left:active) .museumProp--banner-left .museumSwapArt--default,
  .museumStageInner:has(.museumProp--door:active) .museumNavItem--center .museumSwapArt--default,
  .museumStageInner:has(.museumNavItem--center:active) .museumProp--door .museumSwapArt--default,
  .museumStageInner:has(.museumProp--banner-right:active) .museumNavItem--right .museumSwapArt--default,
  .museumStageInner:has(.museumNavItem--right:active) .museumProp--banner-right .museumSwapArt--default{
    opacity: 0;
  }
  .museumStageInner:has(.museumNavItem--left:active) .museumProp--banner-left .museumSwapArt--shine,
  .museumStageInner:has(.museumNavItem--right:active) .museumProp--banner-right .museumSwapArt--shine{
    opacity: 0 !important;
    animation: none !important;
  }
  .museumStageInner:has(.museumProp--banner-left:active) .museumNavItem--left .museumSwapArt--hover,
  .museumStageInner:has(.museumNavItem--left:active) .museumProp--banner-left .museumSwapArt--hover,
  .museumStageInner:has(.museumProp--door:active) .museumNavItem--center .museumSwapArt--hover,
  .museumStageInner:has(.museumNavItem--center:active) .museumProp--door .museumSwapArt--hover,
  .museumStageInner:has(.museumProp--banner-right:active) .museumNavItem--right .museumSwapArt--hover,
  .museumStageInner:has(.museumNavItem--right:active) .museumProp--banner-right .museumSwapArt--hover{
    opacity: 1;
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce){
  .museumIntroOverlay{
    display: none;
  }
  .museumStageInner--awaitingIntro .museumProp,
  .museumStageInner--awaitingIntro .museumNavItem{
    opacity: 1;
    pointer-events: auto;
  }
  .museumProp--banner-left .museumSwapArt--shine,
  .museumProp--banner-right .museumSwapArt--shine,
  .museumProp--door .museumSwapArt--hover{
    animation: none;
    opacity: .55;
  }
  .museumProp--banner-left:hover .museumSwapArt--hover,
  .museumProp--banner-left:focus-visible .museumSwapArt--hover,
  .museumProp--banner-right:hover .museumSwapArt--hover,
  .museumProp--banner-right:focus-visible .museumSwapArt--hover,
  .museumProp--door:hover .museumSwapArt--hover,
  .museumProp--door:focus-visible .museumSwapArt--hover{
    opacity: 1;
  }
  .museumProp--banner-left:hover .museumSwapArt--shine,
  .museumProp--banner-right:hover .museumSwapArt--shine{
    opacity: 0;
  }
}

@media (max-width: 720px){
  body.isHomePage{
    overflow: hidden;
  }
  /* 手機首頁：右側協助單位 Logo 略放大，較易辨識 */
  .museumSupportLogos,
  .museumSideLogos{
    transform: scale(1.45);
    transform-origin: top right;
  }
}

/* ====== 內頁（義家藝館） ====== */

body.isInnerPage{
  background: #fff;
  color: #1a1a1a;
  font-weight: 500;
  letter-spacing: var(--font-tracking);
  /* 選單／大標／副標：中文宋體 + 英數 DIN */
  --inner-font: "DIN Pro Condensed", "FIFI CJK Serif", "Noto Serif TC", "Microsoft JhengHei", sans-serif;
  --inner-menu-font: "FIFI CJK Serif", "Noto Serif TC", "Microsoft JhengHei", serif;
  --font-display: "DIN Pro Condensed", "FIFI CJK Serif", "Noto Serif TC", "Microsoft JhengHei", serif;
  /* 內文：中文黑體 + 英數 DIN */
  --font-body: "DIN Pro Condensed", "FIFI CJK Sans", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --inner-accent: #a00003;
  /* 字級標準（對齊最新展演頁）：大標／副標／內文 */
  --type-display: clamp(37.33px, 3.5vw, 58.67px);
  --type-title: clamp(26.67px, 2.4vw, 37.33px);
  --type-body: 21.33px;
  /* reference.jpg 全頁寬 2944px；header-bg 寬 1962px。UI 用較大比例係數對齊視覺 */
  --ref-w: 1962;
  --ref-scale: calc(100vw / var(--ref-w));
  --ui-scale: calc(var(--ref-scale) * 1.55);
  /* 主選單字級；子選單固定小 3px */
  --inner-nav-size: max(15px, calc(18 * var(--ui-scale)));
  --inner-subnav-size: calc(var(--inner-nav-size) - 3px);
}
body.isInnerPage .topbar{
  display: none;
}
body.isInnerPage .main{
  padding: 0;
  max-width: none;
  margin: 0;
}
body.isInnerPage .mainInner{
  max-width: none;
  padding: 0;
  margin: 0;
}

.innerPage{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: #fff;
  --layout-bg-width: 1962;
  /* Header 約原圖 58% 高：對齊參考圖紙紋區／灰帶子選單比例 */
  --header-src-height: calc(100vw * 424 / var(--layout-bg-width));
  --header-bg-height: calc(var(--header-src-height) * 0.58);
  /* Footer 視覺高度砍半（整張紙紋／撕邊一起壓扁） */
  --footer-src-height: calc(100vw * 418 / var(--layout-bg-width));
  --footer-bg-height: calc(var(--footer-src-height) * 0.5);
  --header-overlap: calc(var(--header-bg-height) * 0.20);
  --footer-overlap: calc(var(--footer-bg-height) * 0.14);
  --layout-bg-bleed-x: 1.08;
  --footer-partners-top-ratio: 0.30;
  --footer-partners-width: 240;
  --footer-partners-max-h-ratio: 0.58;
  --footer-contact-top-ratio: 0.32;
  --footer-social-top-ratio: 0.38;
  --footer-contact-size: 13px;
}

/* Header：整張素材壓入目標高度；Logo／選單落在上方紙紋區（避開底部撕邊黑區） */
.innerHeader{
  position: relative;
  width: 100%;
  height: var(--header-bg-height);
  flex: 0 0 auto;
  z-index: 30;
  margin-bottom: calc(-1 * var(--header-overlap));
  pointer-events: none;
  isolation: isolate;
  overflow: hidden;
}
.innerHeaderBgImg{
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  object-position: center center;
  pointer-events: none;
  user-select: none;
  vertical-align: top;
  transform: scaleX(var(--layout-bg-bleed-x));
  transform-origin: center center;
  mix-blend-mode: screen;
}
.innerHeaderInner{
  position: absolute;
  inset: 0;
  z-index: 1;
  line-height: normal;
  pointer-events: none;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Logo：佔紙紋區大部分高度，約 Header 左側 1/4 寬 */
.innerBrand{
  position: absolute;
  left: calc(24 * var(--ui-scale));
  top: 8%;
  bottom: 28%;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: calc(10 * var(--ui-scale));
  text-decoration: none;
  color: inherit;
  pointer-events: auto;
  max-width: min(34vw, calc(420 * var(--ui-scale)));
}
.innerBrandBuilding{
  height: 100%;
  width: auto;
  max-width: calc(160 * var(--ui-scale));
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
  mix-blend-mode: multiply;
  filter: contrast(1.05);
}
.innerBrandTitleImg{
  /* home/LOGO.png：中英合併標誌，黑底 + screen 混合 */
  height: 78%;
  width: auto;
  max-height: calc(72 * var(--ui-scale));
  max-width: calc(220 * var(--ui-scale));
  object-fit: contain;
  object-position: left center;
  flex: 0 1 auto;
  display: block;
  mix-blend-mode: screen;
}
.innerBrandText{
  display: flex;
  flex-direction: column;
  gap: calc(2 * var(--ui-scale));
  min-width: 0;
}
.innerBrandTitle{
  font-family: var(--inner-menu-font);
  font-size: max(20px, calc(28 * var(--ui-scale)));
  font-weight: 900;
  letter-spacing: 1.33px;
  line-height: 1.1;
  color: #111;
}
.innerBrandSub{
  font-family: var(--inner-font);
  font-size: max(11px, calc(13 * var(--ui-scale)));
  letter-spacing: 1.33px;
  color: #333;
  line-height: 1.25;
  max-width: calc(240 * var(--ui-scale));
}
/* 主選單：落在紙紋區垂直中央，橫向均分剩餘寬度 */
.innerHeaderAside{
  position: absolute;
  left: min(36vw, calc(440 * var(--ui-scale)));
  right: calc(36 * var(--ui-scale));
  top: 14%;
  bottom: 30%;
  z-index: 2;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  pointer-events: auto;
}
.innerSearchForm{
  display: flex;
  align-items: stretch;
  width: 100%;
  height: max(38px, calc(42 * var(--ui-scale)));
  border: 1px solid #222;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  overflow: hidden;
}
.innerSearchIcon{
  width: max(18px, calc(20 * var(--ui-scale)));
  height: max(18px, calc(20 * var(--ui-scale)));
  margin: auto 0 auto calc(16 * var(--ui-scale));
  flex: 0 0 auto;
  opacity: .8;
}
.innerSearchInput{
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  padding: 0 calc(12 * var(--ui-scale));
  font-family: var(--inner-font);
  font-size: max(17.33px, calc(21.33 * var(--ui-scale)));
  color: #222;
  min-width: 0;
}
.innerSearchInput:focus{
  outline: none;
}
.innerSearchSubmit{
  border: 0;
  border-left: 1px solid #222;
  background: #d8d4cd;
  color: #222;
  font-family: var(--inner-font);
  font-size: max(17.33px, calc(21.33 * var(--ui-scale)));
  letter-spacing: 1.33px;
  padding: 0 calc(22 * var(--ui-scale));
  cursor: pointer;
  flex: 0 0 calc(84 * var(--ui-scale));
}
.innerNav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: calc(12 * var(--ui-scale));
  /* 6 項約 5 個間距：先前各縮 5px，再各縮 10px → 共 75px */
  width: calc(100% - 75px);
  margin: 0 0 0 auto;
  overflow: visible;
}
.innerNav--compact{
  justify-content: space-between;
  gap: calc(8 * var(--ui-scale));
  width: calc(100% - 75px);
  max-width: none;
  margin-left: auto;
  overflow: visible;
}
.innerNav--compact .innerNavItem{
  font-size: var(--inner-nav-size);
  letter-spacing: 1.33px;
  padding-bottom: 2px;
}
.innerNavItem{
  color: #111;
  text-decoration: none;
  font-family: var(--inner-menu-font);
  font-size: var(--inner-nav-size);
  font-weight: 900;
  letter-spacing: 1.33px;
  line-height: 1.25;
  padding: 2px 0 3px;
  border-bottom: 3px solid transparent;
  transition: color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.innerNavItem:hover,
.innerNavItem.innerNavItemActive{
  color: var(--inner-accent);
  border-bottom-color: var(--inner-accent);
}

.innerSubnav{
  position: relative;
  overflow: visible;
  z-index: 12;
  margin-top: 0;
  /* 上方留出與 Header 撕邊重疊區，文字置中於下方可見灰帶 */
  padding-top: var(--header-overlap);
  min-height: calc(var(--header-overlap) + max(49px, calc(53 * var(--ui-scale))));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #c5c2bc;
}
.innerSubnavBg{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(-1 * var(--header-overlap));
  bottom: 0;
  z-index: 0;
  background-color: #c5c2bc;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  pointer-events: none;
}
.innerSubnavInner{
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: calc(100 * var(--ui-scale));
  flex: 0 0 auto;
  width: 100%;
  min-height: max(49px, calc(53 * var(--ui-scale)));
  padding: 0 calc(16 * var(--ui-scale));
  box-sizing: border-box;
}
.innerSubnavItem{
  color: #111;
  text-decoration: none;
  font-family: var(--inner-menu-font);
  font-size: var(--inner-subnav-size);
  font-weight: 700;
  letter-spacing: 1.33px;
  padding: 0 0 2px;
  border-bottom: 3px solid transparent;
  transition: color .15s ease, border-color .15s ease, font-weight .15s ease;
  white-space: nowrap;
}
.innerSubnavItem:hover,
.innerSubnavItem.innerSubnavItemActive{
  color: var(--inner-accent);
  border-bottom-color: var(--inner-accent);
  font-weight: 900;
}
.innerSubnavSep{
  color: #222;
  font-family: var(--inner-menu-font);
  font-size: var(--inner-subnav-size);
  line-height: 1;
  opacity: .85;
}

.innerContent{
  flex: 1 0 auto;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: max(36px, calc(36 * var(--ui-scale))) max(24px, calc(32 * var(--ui-scale))) max(48px, calc(72 * var(--ui-scale)));
  background: #fff;
  position: relative;
  z-index: 5;
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: 500;
  letter-spacing: var(--font-tracking);
  line-height: 1.7;
}

/* 字級標準（對齊最新展演）：大標 Black／副標 Bold／內文 Sans Medium */
.typeDisplay,
h1.typeDisplay{
  font-family: var(--font-display);
  font-size: var(--type-display);
  font-weight: 900;
  letter-spacing: var(--font-tracking);
  line-height: 1.25;
}
.typeTitle,
h2.typeTitle,
h3.typeTitle{
  font-family: var(--font-display);
  font-size: var(--type-title);
  font-weight: 700;
  letter-spacing: var(--font-tracking);
  line-height: 1.35;
}
.typeBody{
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: 500;
  letter-spacing: var(--font-tracking);
  line-height: 1.7;
}

/* Footer：紙張圖貼齊頁面底部（勿用 transform，會露出白縫） */
.innerFooter{
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  color: #222;
  z-index: 30;
  pointer-events: none;
  /* 負 margin 往上疊內容；內容區 flex:1 仍把 footer 頂到頁底 */
  margin-top: calc(-1 * var(--footer-overlap));
  margin-bottom: 0;
  padding-bottom: 0;
  /* 透明：讓撕邊上方不要出現矩形灰底突出 */
  background: transparent;
  min-height: var(--footer-bg-height);
  height: var(--footer-bg-height);
}
.innerFooterBgWrap{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.innerFooterBgImg{
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  object-position: center bottom;
  pointer-events: none;
  user-select: none;
  transform: scaleX(var(--layout-bg-bleed-x));
  transform-origin: center bottom;
}
.innerFooterInner{
  position: relative;
  z-index: 1;
  line-height: normal;
  pointer-events: auto;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
  height: 100%;
  min-height: var(--footer-bg-height);
  box-sizing: border-box;
}
.innerFooterPartners{
  position: absolute;
  left: calc(56 * var(--ui-scale));
  top: calc(var(--footer-bg-height) * var(--footer-partners-top-ratio));
  width: calc(var(--footer-partners-width) * var(--ui-scale));
  max-height: calc(var(--footer-bg-height) * var(--footer-partners-max-h-ratio));
  box-sizing: border-box;
}
.innerFooterPartnersImg{
  width: 100%;
  max-width: none;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: left top;
  display: block;
  image-rendering: auto;
  /* 合作單位 logo 為黑底：讓黑透明、白字顯在紙紋上 */
  mix-blend-mode: screen;
}
.innerFooterContact{
  position: absolute;
  left: calc(430 * var(--ui-scale));
  top: calc(var(--footer-bg-height) * var(--footer-contact-top-ratio));
  right: calc(220 * var(--ui-scale));
  min-width: 0;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--footer-contact-size);
  font-weight: 500;
  letter-spacing: var(--font-tracking);
  line-height: 1.5;
  color: #222;
}
.innerFooterContact > div{
  text-align: left;
}
.innerFooterSocial{
  position: absolute;
  right: calc(48 * var(--ui-scale));
  top: calc(var(--footer-bg-height) * var(--footer-social-top-ratio));
  display: flex;
  gap: calc(10 * var(--ui-scale));
  align-items: center;
}
.innerSocialLink{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max(34px, calc(40 * var(--ui-scale)));
  height: max(34px, calc(40 * var(--ui-scale)));
  text-decoration: none;
}
.innerSocialLink img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.siteSearchOverlay{
  position: fixed;
  inset: 0;
  z-index: 100;
}
.siteSearchOverlay[hidden]{
  display: none;
}
.siteSearchBackdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.siteSearchPanel{
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 32px));
  max-height: min(70vh, 560px);
  margin: 10vh auto 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.siteSearchHead{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #e5e5e5;
}
.siteSearchTitle{
  margin: 0;
  font-family: var(--inner-font);
  font-size: 24px;
  font-weight: 900;
}
.siteSearchClose{
  border: 0;
  background: transparent;
  font-family: var(--inner-font);
  cursor: pointer;
  color: #444;
}
.siteSearchResults{
  padding: 12px 18px 18px;
  overflow: auto;
}
.siteSearchList{
  margin: 0;
  padding: 0;
  list-style: none;
}
.siteSearchList li{
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.siteSearchPath{
  display: block;
  font-size: 14.67px;
  color: #888;
  margin-bottom: 4px;
}
.siteSearchEmpty{
  margin: 0;
  color: #666;
  font-family: var(--inner-font);
}

.innerContent--pastWebsites{
  width: 100%;
  max-width: none;
  margin: 0;
  padding: max(44px, calc(56 * var(--ui-scale))) max(24px, calc(32 * var(--ui-scale))) max(80px, calc(96 * var(--ui-scale)));
  background: #fff;
}

.archivePastWebsitesTitle{
  margin: 0 0 max(28px, calc(40 * var(--ui-scale)));
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--type-display);
  font-weight: 900;
  letter-spacing: var(--font-tracking);
  color: #b82020;
}

.pastWebsitesTimeline{
  --past-spine-width: 168px;
  --past-spine-color: #b82020;
  --past-gap: 48px;
  --past-col-gap: 20px;
  --past-art-max-w: 264px;
  --past-art-max-h: 216px;
  --past-title-max-w: 284px;
  --past-title-zh: 26px;
  --past-title-sub: 16px;
  --past-title-en: 15px;
  --past-year-size: 76px;
  --past-year-range-size: 32px;
  --past-marker-size: 16px;
  --past-year-pad: 2px;
  --past-year-pad-right: 0px;
  --past-year-tracking: 0.1em;
  position: relative;
  width: min(100%, calc(1040 * var(--ui-scale, 1)));
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--past-gap);
  padding: max(12px, calc(16 * var(--ui-scale, 1))) 0 max(24px, calc(32 * var(--ui-scale, 1)));
  box-sizing: border-box;
}
.pastWebsitesSpine{
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: var(--past-spine-width);
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    rgba(184, 32, 32, 0) 0%,
    var(--past-spine-color) 5%,
    var(--past-spine-color) 95%,
    rgba(184, 32, 32, 0) 100%
  );
  z-index: 0;
  pointer-events: none;
}
.pastWebsitesEntry{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--past-spine-width) minmax(0, 1fr);
  align-items: center;
  column-gap: var(--past-col-gap);
  min-height: max(88px, calc(110 * var(--ui-scale, 1)));
  --pw-art-scale: 1;
  --pw-art-x: 0px;
  --pw-art-y: 0px;
  --pw-title-scale: 1;
  --pw-title-x: 0px;
  --pw-title-y: 0px;
}
.pastWebsitesEntry--marker{
  min-height: 48px;
}
.pastWebsitesEntry--feature{
  padding-top: 18px;
  padding-bottom: 18px;
}
.pastWebsitesSide{
  display: flex;
  align-items: center;
  min-width: 0;
}
.pastWebsitesSide--left{
  justify-content: flex-end;
  text-align: right;
}
.pastWebsitesSide--right{
  justify-content: flex-start;
  text-align: left;
}
.pastWebsitesSide--markerLabel{
  padding-left: 12px;
}
.pastWebsitesYearCol{
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--past-spine-width);
  box-sizing: border-box;
}
.pastWebsitesYearCol--alignLeft{
  justify-content: flex-start;
  padding-left: var(--past-year-pad);
  padding-right: 0;
}
.pastWebsitesYearCol--alignRight{
  justify-content: flex-end;
  padding-right: var(--past-year-pad-right, 0px);
  padding-left: 0;
}
.pastWebsitesYearCol--marker{
  position: relative;
  justify-content: flex-end;
  padding-right: 16px;
}
.pastWebsitesYearStack{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 6px 0;
  border: none;
  background: transparent;
  color: #fff;
  font-family: "DIN Pro Condensed", var(--inner-font);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: var(--past-year-tracking);
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
.pastWebsitesYearStack--alignLeft{
  align-items: flex-start;
  text-align: left;
  padding-left: 0;
  margin-left: 0;
}
.pastWebsitesYearStack--alignRight{
  align-items: flex-end;
  text-align: right;
  padding-right: 0;
  margin-right: 0;
}
.pastWebsitesYearStack--alignRight .pastWebsitesYearLine{
  margin-right: calc(var(--past-year-tracking) * -1);
}
.pastWebsitesYearLine{
  display: block;
  color: inherit;
  font: inherit;
  letter-spacing: var(--past-year-tracking);
}
.pastWebsitesYearLine--century,
.pastWebsitesYearLine--short{
  font-size: var(--past-year-size);
  line-height: 0.95;
}
.pastWebsitesYearLine--range{
  margin-top: 4px;
  font-size: var(--past-year-range-size);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  white-space: nowrap;
}
.pastWebsitesMarkerDash{
  display: block;
  width: 7.5px;
  height: 1px;
  background: #fff;
  flex: 0 0 auto;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.35);
}
.pastWebsitesMarkerYear{
  display: inline-block;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--past-spine-color);
  font-family: "DIN Pro Condensed", var(--inner-font);
  font-size: var(--past-marker-size);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
}

.pastWebsitesEntry[data-year="2027-2026"]{
  --pw-art-scale: 1.10;
  --pw-art-x: -53px;
}
.pastWebsitesEntry[data-year="2025"]{
  --pw-art-scale: 1.22;
  --pw-art-x: 56px;
}
.pastWebsitesEntry[data-year="2023"]{
  --pw-art-x: -85px;
}
.pastWebsitesEntry[data-year="2022"]{
  --pw-art-x: 72px;
}
.pastWebsitesEntry[data-year="2021"]{
  --pw-art-x: -53px;
}
.pastWebsitesEntry[data-year="2020"]{
  --pw-art-x: 69px;
}
.pastWebsitesEntry[data-year="2019"]{
  --pw-art-x: -79px;
}
.pastWebsitesEntry[data-year="2018"]{
  --pw-art-x: 63px;
}
.pastWebsitesEntry[data-year="2016"]{
  --pw-art-x: -66px;
}
.pastWebsitesYearButton{
  cursor: pointer;
}
.pastWebsitesYearButton:hover{
  opacity: 0.82;
}
.pastWebsitesYearStack.pastWebsitesYearButton:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.pastWebsitesMarkerYear.pastWebsitesYearButton:focus-visible{
  outline: 2px solid var(--past-spine-color);
  outline-offset: 3px;
}
.pastWebsitesArt,
.pastWebsitesArtButton{
  display: block;
  max-width: min(100%, var(--past-art-max-w));
  transform: translate(var(--pw-art-x), var(--pw-art-y)) scale(var(--pw-art-scale));
  transform-origin: center center;
}
.pastWebsitesArtButton{
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.pastWebsitesArtButton:focus-visible,
.pastWebsitesTitleButton:focus-visible{
  outline: 2px solid var(--past-spine-color);
  outline-offset: 4px;
}
.pastWebsitesArtImg{
  display: block;
  width: 100%;
  height: auto;
  max-height: var(--past-art-max-h);
  object-fit: contain;
}
.pastWebsitesTitleButton{
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: inherit;
  color: inherit;
  font: inherit;
  max-width: min(100%, var(--past-title-max-w));
  transform: translate(var(--pw-title-x), var(--pw-title-y)) scale(var(--pw-title-scale));
  transform-origin: center center;
}
.pastWebsitesTitleButton:hover .pastWebsitesTitleZh,
.pastWebsitesTitleButton:hover .pastWebsitesTitleSub,
.pastWebsitesTitleButton:hover .pastWebsitesTitleEn{
  opacity: 0.78;
}
.pastWebsitesTitleBlock{
  display: flex;
  flex-direction: column;
  gap: max(4px, calc(6 * var(--ui-scale, 1)));
  max-width: min(100%, var(--past-title-max-w));
  transform: translate(var(--pw-title-x), var(--pw-title-y)) scale(var(--pw-title-scale));
  transform-origin: center center;
}
.pastWebsitesTitleButton .pastWebsitesTitleBlock{
  transform: none;
  max-width: 100%;
}
.pastWebsitesTitleZh,
.pastWebsitesTitleSub,
.pastWebsitesTitleEn{
  margin: 0;
  font-family: var(--inner-font);
  color: #1a1a1a;
  line-height: 1.35;
}
.pastWebsitesTitleZh{
  font-size: var(--past-title-zh);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.pastWebsitesTitleSub{
  font-size: var(--past-title-sub);
  font-weight: 500;
  letter-spacing: 0.03em;
}
.pastWebsitesTitleEn{
  font-size: var(--past-title-en);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #333;
}
.pastWebsitesEntry[data-year="2019"] .pastWebsitesTitleSub{
  font-size: var(--past-title-zh);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.archiveModalPanel--brief{
  width: min(380px, 100%);
  padding: 24px 22px 22px;
}
.archivePastWebsiteBriefModal{
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 4px;
}
.archivePastWebsiteBriefIntro{
  margin: 0;
  font-family: var(--inner-font);
  font-size: 18.67px;
  line-height: 1.75;
  color: #f0f0f0;
  text-align: left;
}
.archivePastWebsiteBriefLink{
  display: inline-flex;
  align-self: flex-start;
  margin-top: 4px;
  padding: 8px 14px;
  border: 1px solid #e8b421;
  color: #e8b421;
  text-decoration: none;
  font-family: var(--inner-font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.archivePastWebsiteBriefLink:hover{
  background: #e8b421;
  color: #111;
}
.archivePastWebsiteBriefLinkPending{
  margin: 0;
  font-family: var(--inner-font);
  font-size: 15px;
  color: #bbb;
}

@media (max-width: 820px){
  .pastWebsitesTimeline{
    --past-spine-width: 100px;
    --past-gap: 36px;
    --past-col-gap: 12px;
    --past-art-max-w: 150px;
    --past-art-max-h: 140px;
    --past-title-max-w: 180px;
    --past-title-zh: 16px;
    --past-title-sub: 13px;
    --past-title-en: 12px;
    --past-year-size: 42px;
    --past-year-range-size: 18px;
    --past-year-pad: 4px;
    --past-marker-size: 14px;
    --past-year-tracking: 0.08em;
    width: 100%;
  }
  .pastWebsitesEntry[data-year="2027-2026"],
  .pastWebsitesEntry[data-year="2025"],
  .pastWebsitesEntry[data-year="2023"],
  .pastWebsitesEntry[data-year="2022"],
  .pastWebsitesEntry[data-year="2021"],
  .pastWebsitesEntry[data-year="2020"],
  .pastWebsitesEntry[data-year="2019"],
  .pastWebsitesEntry[data-year="2018"],
  .pastWebsitesEntry[data-year="2016"]{
    --pw-art-x: 0px;
  }
  .pastWebsitesMarkerDash{
    width: 5.5px;
    height: 1px;
  }
}

@media (max-width: 520px){
  .innerContent--pastWebsites{
    padding-left: 12px;
    padding-right: 12px;
  }
  .pastWebsitesTimeline{
    --past-spine-width: 72px;
    --past-year-size: 30px;
    --past-year-range-size: 13px;
    --past-art-max-w: 110px;
    --past-art-max-h: 100px;
    --past-title-zh: 13px;
    --past-title-sub: 11px;
    --past-title-en: 11px;
    --past-marker-size: 12px;
  }
  .pastWebsitesEntry{
    min-height: 72px;
  }
  .pastWebsitesYearCol--marker{
    padding-right: 10px;
  }
  .pastWebsitesSide--markerLabel{
    padding-left: 8px;
  }
  .pastWebsitesMarkerDash{
    width: 4px;
    height: 1px;
  }
}

.innerPanel{
  max-width: 760px;
  margin: 0 auto;
}
.innerPageTitle{
  margin: 0 0 8px;
  font-size: 37.33px;
  letter-spacing: 1.33px;
  color: #b82020;
}

/* 關於展覽／展覽理念 */
.innerContent:has(.aboutPage){
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 240px);
  padding-left: 0;
  padding-right: 0;
}
.aboutPage{
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  --about-accent: #e8b421;
}
/* 特展視窗（理念頁 16:9）— 與推開自由門 fdViewport 同尺寸 */
.aboutPage--concept{
  justify-content: flex-start;
  padding: 0 0 24px;
  font-size: 16px;
}
.exhibitionWindow,
.aboutConceptStage{
  position: relative;
  width: 100%;
  max-width: min(1800px, 90vw, calc(86vh * 16 / 9));
  margin: 0 auto;
  overflow: hidden;
  background: #111;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  min-height: 0;
  height: auto;
}
.aboutConceptBg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}
.aboutConceptBg--fallback{
  background: #1a1a1a;
}
.aboutConceptDim{
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.58);
}
.aboutConceptLogo{
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  display: block;
  width: 24%;
  max-width: 250px;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: contain;
  object-position: top left;
  pointer-events: none;
  user-select: none;
}
.aboutConceptContent{
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  z-index: 2;
  box-sizing: border-box;
  width: 72%;
  max-width: 720px;
  max-height: 68%;
  margin: 0;
  padding: 0 12px;
  overflow: hidden;
  text-align: left;
  color: #fff;
  --fp-fit: 1;
}
.aboutConceptContent--compact{
  max-width: 560px;
  max-height: 58%;
  text-align: center;
}
.aboutConceptLead{
  margin: 0 0 8px;
  color: var(--about-accent);
  font-family: var(--inner-font, "FIFI CJK Serif", "Noto Serif TC", "Microsoft JhengHei", serif);
  font-size: calc(clamp(16px, 2.1vw, 24px) * var(--fp-fit, 1));
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.aboutConceptHeading{
  margin: 0 0 18px;
  color: var(--about-accent);
  font-family: var(--inner-font, "FIFI CJK Serif", "Noto Serif TC", "Microsoft JhengHei", serif);
  font-size: calc(clamp(14px, 1.5vw, 18px) * var(--fp-fit, 1));
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.35;
}
.aboutConceptParagraph{
  margin: 0 0 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: calc(clamp(12px, 1.15vw, 14.5px) * var(--fp-fit, 1));
  line-height: 1.9;
  letter-spacing: 0.03em;
  font-weight: 500;
}
.aboutConceptParagraph:last-child{
  margin-bottom: 0;
}
.aboutConceptBody{
  min-width: 0;
}
.aboutPage--concept:not(.aboutPage--freeman) .aboutConceptLead,
.aboutPage--concept:not(.aboutPage--freeman) .aboutConceptHeading{
  text-align: center;
}
.aboutPage--concept:not(.aboutPage--freeman) .aboutConceptLead{
  font-size: calc(clamp(19px, 2.4vw, 27px) * var(--fp-fit, 1));
}
.aboutPage--concept:not(.aboutPage--freeman) .aboutConceptContent{
  top: 47%;
  max-height: 80%;
  padding-bottom: 10px;
}
.aboutPage--concept:not(.aboutPage--freeman) .aboutConceptParagraph,
.aboutPage--concept:not(.aboutPage--freeman) .aboutConceptParagraph.fpConceptBody{
  font-size: calc(14px * var(--fp-fit, 1));
  line-height: 1.7;
  margin-bottom: 10px;
}
.aboutPage--concept:not(.aboutPage--freeman) .aboutConceptStart,
.aboutPage--concept:not(.aboutPage--freeman) .aboutConceptNext{
  right: calc(50% - min(36%, 360px) + 12px);
}
.aboutPage--concept:not(.aboutPage--freeman) .aboutConceptStart{
  bottom: 6.8%;
}
.aboutPage--freeman .aboutConceptLead{
  text-align: center;
}
.aboutPage--freeman .aboutConceptParagraph,
.aboutConceptParagraph.fpConceptBody{
  font-family: var(--font-body);
  font-size: calc(15px * var(--fp-fit, 1));
  font-weight: 500;
  line-height: 1.75;
}
.aboutConceptStart,
.aboutConceptNext{
  position: absolute;
  right: 3.2%;
  bottom: 4.5%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
}
.aboutConceptStart{
  line-height: 0;
}
.aboutConceptNext{
  color: var(--about-accent);
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
}
.aboutConceptStart:hover,
.aboutConceptNext:hover{
  opacity: 0.88;
  transform: translateX(2px);
}
.aboutConceptStartImg{
  display: block;
  width: clamp(96px, 13.5%, 148px);
  height: auto;
}
.aboutDoorLink{
  position: absolute;
  right: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b82020;
  text-decoration: none;
  font-size: 20px;
  letter-spacing: 1.33px;
}
.aboutDoorIcon{
  width: 18px;
  height: 18px;
  display: inline-block;
  background:
    linear-gradient(180deg, transparent 35%, currentColor 35%, currentColor 65%, transparent 65%),
    linear-gradient(90deg, transparent 42%, currentColor 42%, currentColor 58%, transparent 58%);
}

@media (max-width: 900px){
  .innerPage{
    /* 手機 Header／Footer 加高，避免選單與頁尾被裁切 */
    --header-bg-height: max(88px, calc(var(--header-src-height) * 1.08));
    --header-overlap: calc(var(--header-bg-height) * 0.16);
    --footer-bg-height: max(168px, calc(var(--footer-src-height) * 1.15));
    --footer-overlap: calc(var(--footer-bg-height) * 0.08);
  }
  .aboutPage--concept{
    padding: 12px 0 16px;
  }
  .aboutConceptStage,
  .exhibitionWindow{
    width: 100%;
    max-width: min(1800px, 94vw, calc(78vh * 16 / 9));
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
  .aboutConceptLogo{
    top: 0;
    left: 0;
    width: 32%;
    max-width: 180px;
    z-index: 5;
  }
  .aboutConceptContent{
    left: 6%;
    right: 6%;
    top: 12%;
    bottom: 14%;
    width: auto;
    max-width: none;
    max-height: none;
    height: auto;
    transform: none;
    padding: 0 8px 8px;
    margin: 0;
    text-align: center;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    pointer-events: auto;
    z-index: 3;
    scrollbar-width: thin;
    scrollbar-color: rgba(232, 180, 33, 0.55) transparent;
    display: flex;
    flex-direction: column;
  }
  .aboutConceptContent.fdEndContent{
    display: flex;
    justify-content: center;
  }
  .aboutConceptContent:not(.fdEndContent) .aboutConceptBody{
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .aboutConceptLead,
  .aboutConceptHeading{
    flex: 0 0 auto;
  }
  .aboutConceptContent::-webkit-scrollbar{
    width: 4px;
  }
  .aboutConceptContent::-webkit-scrollbar-thumb{
    background: rgba(232, 180, 33, 0.55);
    border-radius: 2px;
  }
  .aboutConceptLead{
    font-size: clamp(14px, 3.6vw, 17px);
  }
  .aboutConceptHeading{
    margin-bottom: 12px;
    font-size: clamp(12px, 3vw, 14px);
  }
  .aboutConceptParagraph{
    font-size: clamp(11px, 2.8vw, 12.5px);
    line-height: 1.7;
    margin-bottom: 10px;
  }
  .aboutPage--concept:not(.aboutPage--freeman) .aboutConceptLead,
  .aboutPage--concept:not(.aboutPage--freeman) .aboutConceptHeading{
    text-align: center;
  }
  .aboutPage--concept:not(.aboutPage--freeman) .aboutConceptLead{
    font-size: clamp(12.5px, 3.35vw, 16px);
    letter-spacing: 0.02em;
    line-height: 1.25;
    white-space: nowrap;
    margin: 0 0 12px;
  }
  .aboutPage--concept:not(.aboutPage--freeman) .aboutConceptStart,
  .aboutPage--concept:not(.aboutPage--freeman) .aboutConceptNext{
    right: calc(6% + 8px);
  }
  .aboutPage--concept:not(.aboutPage--freeman) .aboutConceptStart{
    bottom: 7%;
  }
  .aboutPage--concept:not(.aboutPage--freeman) .aboutConceptNext{
    font-family: var(--inner-font, "FIFI CJK Serif", "Noto Serif TC", "Microsoft JhengHei", serif);
    font-size: clamp(11px, 2.6vw, 13px);
    font-weight: 700;
    letter-spacing: 0.04em;
  }
  .aboutPage--concept:not(.aboutPage--freeman) .aboutConceptLogo{
    width: 16%;
    max-width: 68px;
    z-index: 5;
  }
  .aboutPage--concept:not(.aboutPage--freeman) .aboutConceptContent{
    top: 17%;
    left: 4.5%;
    right: 4.5%;
    bottom: 22%;
    z-index: 3;
    padding: 0 4px 0;
  }
  .aboutPage--concept:not(.aboutPage--freeman) .aboutConceptContent:not(.fdEndContent) .aboutConceptBody{
    justify-content: flex-start;
    padding-top: 2px;
  }
  .aboutPage--concept:not(.aboutPage--freeman) .aboutConceptParagraph,
  .aboutPage--concept:not(.aboutPage--freeman) .aboutConceptParagraph.fpConceptBody{
    font-size: clamp(11px, 2.55vw, 13px);
    line-height: 1.62;
    margin-bottom: 8px;
  }
  .aboutPage--freeman .aboutConceptLogo{
    width: 22%;
    max-width: 110px;
  }
  .aboutPage--freeman .aboutConceptContent{
    top: 16%;
    left: 7%;
    right: 7%;
    bottom: 16%;
  }
  .aboutPage--freeman .aboutConceptLead,
  .aboutPage--freeman .aboutConceptHeading{
    text-align: center;
  }
  .aboutPage--freeman .aboutConceptParagraph,
  .aboutConceptParagraph.fpConceptBody{
    font-size: calc(14px * var(--fp-fit, 1));
    line-height: 1.7;
    margin-bottom: 8px;
  }
  .aboutConceptStart,
  .aboutConceptNext{
    right: 3%;
    bottom: 3.5%;
  }
  .aboutConceptNext{
    font-size: clamp(11px, 2.5vw, 13px);
  }
  .aboutConceptStartImg{
    width: clamp(88px, 28vw, 120px);
  }
  /* 手機 Logo：使用 LOGO.png，尺寸收斂，不擠壓右側選單 */
  .innerBrand{
    left: 8px;
    top: 14%;
    bottom: 26%;
    z-index: 1;
    width: max-content;
    max-width: 34%;
    gap: 6px;
    overflow: hidden;
  }
  .innerBrandBuilding{
    max-width: 44px;
    height: 88%;
  }
  .innerBrandTitleImg{
    height: 88%;
    max-height: 34px;
    max-width: 108px;
    transform: none;
  }
  /* 選單靠右完整顯示 */
  .innerHeaderAside{
    left: 38%;
    right: 6px;
    top: 16%;
    bottom: 28%;
    z-index: 3;
    overflow: visible;
  }
  .innerNav{
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 6px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .innerNav::-webkit-scrollbar{
    display: none;
  }
  .innerNav--compact{
    justify-content: flex-end;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 6px 0;
  }
  .innerNavItem,
  .innerNav--compact .innerNavItem{
    font-size: max(11px, calc(var(--inner-nav-size) * 0.72));
    letter-spacing: 0.2px;
    flex: 0 0 auto;
    line-height: 1.25;
    padding-top: 2px;
    padding-bottom: 2px;
  }
  .innerSubnav{
    min-height: calc(var(--header-overlap) + 52px);
  }
  .innerSubnavInner{
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: calc(28 * var(--ui-scale));
    min-height: 52px;
    padding-top: 8px;
    padding-bottom: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .innerSubnavInner::-webkit-scrollbar{
    display: none;
  }
  .innerSubnavItem{
    flex: 0 0 auto;
    font-size: max(12px, calc(var(--inner-subnav-size) * 0.9));
    line-height: 1.3;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .innerFooterPartners{
    left: 10px;
    top: 28%;
    width: min(42%, 168px);
    max-height: 32%;
  }
  .innerFooterContact{
    left: calc(18px + min(45%, 188px));
    right: 64px;
    top: 28%;
    font-size: 11px;
    line-height: 1.35;
  }
  .innerFooterSocial{
    right: 10px;
    top: 28%;
    bottom: auto;
    gap: 8px;
    flex-direction: column;
  }
  .innerFooterSocial .innerSocialLink{
    width: 28px;
    height: 28px;
  }
}

/* ====== 檔案庫（archive） ====== */

.innerContent--archiveHome{
  max-width: none;
  width: 100%;
  padding: 0 0 40px;
}
.innerContent--archiveHome .archiveBlock{
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.innerContent--archiveHome .archiveBlock--carouselBleed{
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}
.innerContent--archiveHome .archiveBlock--carouselBleed .archiveSectionHead{
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.innerContent--archiveHome .archiveHomeCarousel--fullBleed{
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.archiveHome{
  display: flex;
  flex-direction: column;
  gap: 0;
}

.archiveBanner{
  position: relative;
  overflow: hidden;
  background: #2a2a2a;
  animation: archiveBannerPulse 8s ease-in-out infinite;
}
@keyframes archiveBannerPulse{
  0%, 100%{ filter: brightness(1); }
  50%{ filter: brightness(1.06); }
}
.archiveBannerInner{
  position: relative;
  min-height: clamp(220px, 36vw, 420px);
}
.archiveBannerImg{
  width: 100%;
  height: clamp(220px, 36vw, 420px);
  object-fit: cover;
  display: block;
  opacity: .72;
}
.archiveBannerOverlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.45));
  padding: 24px;
}
.archiveBannerTitle{
  margin: 0;
  font-size: clamp(37.33px, 5vw, 64px);
  letter-spacing: 1.33px;
}
.archiveBannerSub{
  margin: 10px 0 0;
  font-size: clamp(16px, 2vw, 21.33px);
  letter-spacing: 1.33px;
  opacity: .9;
}

.archiveBlock{
  padding: 36px 0 8px;
}
.archiveSectionHead{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.archiveSectionTitle{
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--type-title);
  font-weight: 700;
  letter-spacing: var(--font-tracking);
  color: #b82020;
}
.archiveMoreLink{
  color: #333;
  text-decoration: none;
  font-size: 18.67px;
  letter-spacing: 1.33px;
  white-space: nowrap;
}
.archiveMoreLink:hover{
  color: #b82020;
}

.archivePageTitle{
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: var(--type-display);
  font-weight: 900;
  letter-spacing: var(--font-tracking);
  color: #b82020;
}
.archiveSubTitle{
  margin: 28px 0 14px;
  font-family: var(--font-display);
  font-size: var(--type-title);
  font-weight: 700;
  letter-spacing: var(--font-tracking);
}
.archivePageHint{
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: 500;
}
.archiveIntroBody{
  margin: 0 0 20px;
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: 500;
  line-height: 1.85;
  max-width: 72ch;
  color: #333;
}
.archiveIntroNav{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.archiveIntroNavLink{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 6px;
  background: rgba(255,255,255,.55);
  color: #222;
  text-decoration: none;
  letter-spacing: 1.33px;
  transition: border-color .2s, color .2s, background .2s;
}
.archiveIntroNavLink:hover{
  border-color: #b82020;
  color: #b82020;
  background: rgba(255,255,255,.85);
}
.archiveIntroNavLabel{
  font-size: 21.33px;
}
.archiveIntroNavArrow{
  font-size: 29.33px;
  line-height: 1;
  opacity: .65;
}
@media (max-width: 640px){
  .archiveIntroNav{
    grid-template-columns: 1fr;
  }
}

.archiveIntroNav--triple{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 768px){
  .archiveIntroNav--triple{
    grid-template-columns: 1fr;
  }
}

.archiveExhibitionHero{
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin: 24px 0 28px;
}
.archiveExhibitionPoster{
  margin: 0;
}
.archiveExhibitionPoster img{
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  background: #ccc;
}
.archiveExhibitionOverview{
  min-height: 100%;
  padding: 20px 24px;
  background: rgba(255,255,255,.45);
  border-radius: 6px;
}
.archiveExhibitionOverviewTitle{
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: var(--type-title);
  font-weight: 700;
  letter-spacing: var(--font-tracking);
  color: #b82020;
}
.archiveExhibitionOverviewBody{
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: 500;
  letter-spacing: var(--font-tracking);
  line-height: 1.85;
  color: #333;
}
.archiveExhibitionsPage .archiveBlock{
  padding-top: 8px;
}
.archiveExhibitionsPage--timeline{
  max-width: 1080px;
  margin: 0 auto;
}
.archiveExhibitionsTimelineTitle{
  text-align: center;
  margin-bottom: 28px;
}
.archiveExhibitionTimeline{
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding: 8px 0 16px;
}
.archiveExhibitionTimelineRow{
  width: 100%;
}
.archiveExhibitionTimelineTrack{
  --timeline-banner-height: 120px;
  --timeline-marker-top: calc(var(--timeline-banner-height) + 28px);
  --timeline-cols: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 24px;
  position: relative;
  padding: 0 8px 8px;
}
.archiveExhibitionTimelineTrack::before{
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: var(--timeline-marker-top);
  height: 2px;
  background: #b82020;
  z-index: 0;
}
.archiveExhibitionTimelineColumn{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}
.archiveExhibitionTimelineColumn--empty{
  visibility: hidden;
  pointer-events: none;
}
.archiveExhibitionTimelineBanner{
  width: 100%;
  min-height: var(--timeline-banner-height);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 28px;
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
  transition: transform .2s ease, opacity .2s ease;
}
.archiveExhibitionTimelineBanner--link:hover{
  transform: translateY(-2px);
  opacity: .92;
}
.archiveExhibitionTimelineBanner--link:focus-visible{
  outline: 2px solid #b82020;
  outline-offset: 3px;
}
.archiveExhibitionTimelineBanner--link:hover .archiveExhibitionTimelineBannerImg{
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.18));
}
.archiveExhibitionTimelineBannerImg{
  display: block;
  max-width: 100%;
  max-height: var(--timeline-banner-height);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.12));
}
.archiveExhibitionTimelineMarker{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.archiveExhibitionTimelineDot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b82020;
  box-shadow: 0 0 0 3px rgba(255,255,255,.9);
}
.archiveExhibitionTimelineYear{
  font-family: var(--font-display);
  font-size: var(--type-title);
  font-weight: 700;
  letter-spacing: var(--font-tracking);
  color: #222;
  line-height: 1;
}
.archiveExhibitionTimelineLinks{
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.archiveExhibitionTimelineLink{
  font-size: 18.67px;
  letter-spacing: 1.33px;
  color: #333;
  text-decoration: none;
  line-height: 1.6;
  transition: color .15s ease;
}
.archiveExhibitionTimelineLink:hover{
  color: #b82020;
}
@media (max-width: 768px){
  .archiveExhibitionTimelineTrack{
    column-gap: 16px;
  }
  .archiveExhibitionTimelineBanner{
    min-height: 90px;
    --timeline-banner-height: 90px;
  }
  .archiveExhibitionTimelineYear{
    font-size: 21.33px;
  }
  .archiveExhibitionTimelineLink{
    font-size: 17.33px;
  }
}
@media (max-width: 560px){
  .archiveExhibitionTimelineTrack{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }
  .archiveExhibitionTimelineTrack::before{
    display: none;
  }
}
.archiveExhibitionBannerList{
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}
.archiveExhibitionBanner{
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 18px rgba(0,0,0,.1);
  transition: transform .25s ease, box-shadow .25s ease;
}
.archiveExhibitionBanner:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
}
.archiveExhibitionBanner:hover .archiveExhibitionBannerImg{
  transform: scale(1.02);
}
.archiveExhibitionBannerImg{
  display: block;
  width: 100%;
  height: clamp(180px, 28vw, 320px);
  object-fit: cover;
  transition: transform .35s ease;
}
.archiveExhibitionBanner .archiveHomeCarouselOverlay{
  position: absolute;
  inset: auto 0 0 0;
}
.archiveWorkGrid--exhibitions{
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px 16px;
}
.archiveWorkCard--exhibitions{
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 6px;
  background: rgba(255,255,255,.62);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.archiveWorkCard--exhibitions .archiveWorkImg{
  background: #c8c4bc;
}
.archiveWorkCard--exhibitions .archiveWorkImg img{
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
.archiveWorkCard--exhibitions .archiveWorkMeta{
  flex: 1 1 auto;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(0,0,0,.08);
}
.archiveWorkCard--exhibitions .archiveWorkTitle{
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: var(--type-title);
  font-weight: 700;
  letter-spacing: var(--font-tracking);
  line-height: 1.45;
  color: #222;
}
.archiveWorkCard--exhibitions .archiveWorkAuthor{
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: 500;
  letter-spacing: var(--font-tracking);
  color: #555;
}
@media (max-width: 640px){
  .archiveWorkGrid--exhibitions{
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px 12px;
  }
}
.archiveTeacherChip--exhibitions{
  width: 100%;
  max-width: 108px;
}
.archiveTeacherAvatar--exhibitions{
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.85);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.archiveTeacherName--exhibitions{
  display: block;
  width: 100%;
  font-size: 17.33px;
  line-height: 1.45;
  letter-spacing: 1.33px;
  color: #333;
  word-break: keep-all;
}
@media (max-width: 1024px){
  .archiveExhibitionHero{
    grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  }
  .archiveTeacherGrid.archiveTeacherGrid--exhibitions{
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 640px){
  .archiveExhibitionHero{
    grid-template-columns: 1fr;
  }
  .archiveExhibitionPoster img{
    max-height: 280px;
    aspect-ratio: auto;
  }
  .archiveTeacherGrid.archiveTeacherGrid--exhibitions{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.archiveMediaGrid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.archiveMediaCard{
  background: rgba(255,255,255,.45);
  border-radius: 6px;
  overflow: hidden;
  padding-bottom: 12px;
}
.archiveMediaThumb img{
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.archiveCardTitle{
  margin: 12px 14px 4px;
  font-size: 20px;
}
.archiveCardCaption{
  margin: 0 14px;
  font-size: 16px;
  color: #555;
  line-height: 1.5;
}

.archiveHomeCarousel{
  margin-top: 4px;
}
.archiveHomeCarouselFrame{
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.archiveHomeCarousel--fullBleed .archiveHomeCarouselFrame{
  display: block;
}
.archiveHomeCarousel--fullBleed .archiveHomeCarouselStage{
  width: 100%;
  max-width: 100%;
  border-radius: 0;
}
.archiveHomeCarousel--fullBleed .archiveHomeCarouselImg{
  width: 100%;
  max-width: 100%;
}
.archiveHomeCarousel--fullBleed .archiveHomeCarouselBtn{
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 5px;
  line-height: 0;
  background: rgba(255,255,255,.82);
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.archiveHomeCarousel--fullBleed .archiveHomeCarouselBtn--prev{
  left: clamp(12px, 2vw, 24px);
  transform: translate(1px, -50%);
}
.archiveHomeCarousel--fullBleed .archiveHomeCarouselBtn--next{
  right: clamp(12px, 2vw, 24px);
  transform: translate(-1px, -50%);
}
.archiveHomeCarouselStage{
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(0,0,0,.06);
  min-height: clamp(220px, 32vw, 380px);
}
.archiveHomeCarouselSlide,
.archiveHomeCarouselSlide--link{
  position: relative;
  display: block;
  margin: 0;
  height: 100%;
  min-height: clamp(220px, 32vw, 380px);
  text-decoration: none;
  color: inherit;
}
.archiveHomeCarouselSlide--link:hover .archiveHomeCarouselImg{
  transform: scale(1.02);
}
.archiveHomeCarouselImg{
  width: 100%;
  height: clamp(220px, 32vw, 380px);
  object-fit: cover;
  display: block;
  transition: transform 240ms ease;
}
.archiveHomeCarouselOverlay{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 20px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.62));
  color: #fff;
}
.archiveHomeCarouselTitle{
  display: block;
  margin: 0;
  font-size: clamp(21.33px, 2.4vw, 26.67px);
  letter-spacing: 1.33px;
  line-height: 1.4;
}
.archiveHomeCarouselCaption{
  margin: 6px 0 0;
  font-size: 17.33px;
  line-height: 1.55;
  opacity: .92;
}
.archiveHomeCarouselBtn{
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  font-size: 29.33px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 5px;
  line-height: 0;
  text-align: center;
}
.archiveHomeCarousel .archiveCarouselDots{
  margin-top: 14px;
}
.archiveHomeCarousel .archiveCarouselDot{
  width: 8px;
  height: 8px;
}

.archivePastCarousel{
  margin-top: 4px;
}
.archivePastCarousel .archiveHomeCarouselFrame{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.archivePastCarousel .archiveHomeCarouselBtn{
  position: static;
  transform: none;
  width: 32px;
  height: 32px;
  font-size: 26.67px;
  box-shadow: none;
}
.archivePastCarouselStage,
.archivePastCarousel .archiveHomeCarouselStage{
  min-height: 0;
  background: transparent;
  border-radius: 0;
}
.archivePastCarouselViewport{
  overflow: hidden;
  width: 100%;
  padding: 0;
}
.archivePastCarouselTrack{
  display: flex;
  gap: 20px;
  transition: transform 320ms ease;
  will-change: transform;
}
.archivePastCarouselItem{
  flex: 0 0 calc((100% - 60px) / 4);
  min-width: 0;
}
.archivePastCarousel .archiveWorkCard--preview{
  height: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.archivePastCarousel .archiveWorkImg{
  background: #ccc;
}
.archivePastCarousel .archiveWorkImg img{
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}
.archivePastCarouselItem--1 .archiveWorkImg{ background: #b82020; }
.archivePastCarouselItem--2 .archiveWorkImg{ background: #2a6b8c; }
.archivePastCarouselItem--3 .archiveWorkImg{ background: #4a8c5c; }
.archivePastCarouselItem--4 .archiveWorkImg{ background: #c47a20; }
.archivePastCarouselItem--5 .archiveWorkImg{ background: #6b4f8c; }
.archivePastCarouselItem--6 .archiveWorkImg{ background: #c45c7a; }
.archivePastCarousel .archiveWorkTitle{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--type-title);
  letter-spacing: var(--font-tracking);
}
.archivePastCarousel .archiveWorkAuthor{
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: 500;
  letter-spacing: var(--font-tracking);
}
@media (max-width: 900px){
  .archivePastCarouselItem{
    flex-basis: calc((100% - 20px) / 2);
  }
  .archivePastCarouselTrack{
    gap: 20px;
  }
}
@media (max-width: 560px){
  .archivePastCarouselItem{
    flex-basis: 100%;
  }
}
.archiveHomeCarouselBtn:disabled{
  opacity: .35;
  cursor: default;
}
.archiveExhibitRow{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.archiveExhibitCard{
  display: block;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 160ms ease;
}
.archiveExhibitCard:hover{
  transform: translateY(-3px);
}
.archiveExhibitCard img{
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.archiveExhibitLabel{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: #fff;
  font-size: 20px;
  letter-spacing: 1.33px;
}

.archiveWorkGrid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.archiveWorkGrid--compact{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.archiveWorkCard{
  text-align: center;
}
.archiveWorkImg img{
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  background: #ccc;
}
.archiveWorkTitle{
  margin: 10px 0 4px;
  font-family: var(--font-display);
  font-size: var(--type-title);
  font-weight: 700;
  letter-spacing: var(--font-tracking);
}
.archiveWorkAuthor{
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: 500;
  letter-spacing: var(--font-tracking);
  color: #555;
}

.archiveWorkCardLink,
.archiveCollectionWorkLink{
  display: block;
  color: inherit;
  text-decoration: none;
}
.archiveWorkCardLink:hover .archiveWorkTitle,
.archiveCollectionWorkLink:hover .archiveWorkTitle{
  color: #b82020;
}
.archiveCollectionNav{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 16px;
}
.archiveCollectionSource{
  margin-left: 0;
}
.archiveCollectionPage .archiveIntroBody{
  max-width: 720px;
  margin-bottom: 24px;
}
.archiveCollectionBack{
  display: inline-block;
  margin-bottom: 16px;
  color: #555;
  font-size: 17.33px;
  letter-spacing: 1.33px;
  text-decoration: none;
}
.archiveCollectionBack:hover{
  color: #b82020;
}
.archiveCollectionHero{
  max-width: 640px;
  margin: 0 auto 20px;
}
.archiveCollectionHero img{
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  background: #ccc;
}
.archiveCollectionDetailTitle{
  margin: 0 0 8px;
  font-size: 29.33px;
  letter-spacing: 1.33px;
  text-align: center;
}
.archiveCollectionMeta,
.archiveCollectionAccession{
  margin: 0 0 8px;
  font-size: 17.33px;
  color: #555;
  text-align: center;
}
.archiveCollectionBody{
  max-width: 640px;
  margin: 20px auto 0;
  line-height: 1.8;
  white-space: pre-wrap;
}
.archiveCollectionGallery{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 28px auto 0;
}
.archiveCollectionGalleryItem{
  margin: 0;
}
.archiveCollectionGalleryItem img{
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  background: #ccc;
}
@media (max-width: 768px){
  .archiveCollectionGallery{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.archiveTeacherRow{
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  justify-content: center;
  padding: 8px 0 20px;
}
.archiveTeacherChip,
.archiveTeacherChipBtn{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 72px;
}
.archiveTeacherChipBtn{
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background 160ms ease, transform 160ms ease;
}
.archiveTeacherChipBtn:hover,
.archiveTeacherChipBtnActive{
  background: rgba(184,32,32,.08);
  transform: translateY(-2px);
}
.archiveTeacherAvatar{
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  background: #c8c4bc;
}
.archiveTeacherName{
  font-size: 16px;
  letter-spacing: 1.33px;
  text-align: center;
}
.archiveTeacherGrid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.archiveTeacherGrid.archiveTeacherGrid--exhibitions{
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 28px 16px;
  justify-items: center;
}
.archiveTeacherCard{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: rgba(255,255,255,.4);
  border-radius: 8px;
}
.archiveTeacherDetail{
  max-width: 62ch;
  margin: 0 auto 20px;
  text-align: center;
}
.archiveTeacherDetailName{
  margin: 0 0 10px;
  font-size: 32px;
  color: #222;
}
.archiveTeacherDetailBio{
  margin: 0;
  line-height: 1.85;
  color: #444;
}

.archiveYearTabs{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 24px;
}
.archiveYearTab{
  color: #444;
  text-decoration: none;
  font-size: 24px;
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 3px solid transparent;
}
.archiveYearTabActive{
  color: #b82020;
  border-bottom-color: #b82020;
}
.archiveYearTab:hover{
  color: #b82020;
}

.archiveFilters--practice{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 28px;
  padding: 14px 18px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.55);
}
.archiveFiltersPracticeLeft{
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 auto;
}
.archiveFiltersPracticeRight{
  flex: 0 1 320px;
  width: 100%;
  max-width: 360px;
  min-width: 200px;
  margin-left: auto;
}
.archiveFilters--practice .archiveSelect{
  width: auto;
  min-width: 120px;
  max-width: 160px;
  padding: 10px 12px;
  border-radius: 8px;
}
.archiveSearchInput--practice{
  width: 100%;
  min-width: 0;
  padding: 10px 16px;
  border-radius: 999px;
}
.archiveWorkGrid--practice{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 20px;
}
.archivePracticeEmpty{
  grid-column: 1 / -1;
}
@media (max-width: 900px){
  .archiveFilters--practice{
    flex-wrap: wrap;
    align-items: stretch;
  }
  .archiveFiltersPracticeLeft{
    flex: 1 1 240px;
  }
  .archiveFiltersPracticeRight{
    flex: 1 1 200px;
    max-width: none;
    margin-left: 0;
  }
  .archiveWorkGrid--practice{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px){
  .archiveFilters--practice{
    flex-direction: column;
    align-items: stretch;
  }
  .archiveFiltersPracticeLeft{
    flex-direction: column;
    align-items: stretch;
  }
  .archiveFilters--practice .archiveSelect{
    max-width: none;
    width: 100%;
  }
  .archiveFiltersPracticeRight{
    min-width: 0;
  }
  .archiveWorkGrid--practice{
    grid-template-columns: 1fr;
  }
}

.archiveFilters{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 20px;
}
.archiveFilters--inline{
  margin-top: -8px;
}
.archiveFilterLabel{
  font-size: 17.33px;
  color: #555;
}
.archiveSelect,
.archiveSearchInput{
  border: 1px solid rgba(0,0,0,.15);
  background: rgba(255,255,255,.7);
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 18.67px;
}
.archiveSearchInput{
  min-width: 180px;
}
.archiveFilterBtn{
  margin-left: 4px;
}
.archiveCategoryTabs{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.archiveCategoryTab{
  padding: 6px 14px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  font-size: 17.33px;
  background: rgba(255,255,255,.5);
}

.archiveCarousel{
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

/* 影音頁 */
.archiveMediaPage{
  padding-bottom: 32px;
}
.innerContent--archiveMedia{
  max-width: none;
  width: 100%;
  padding: 0 0 40px;
}
.innerContent--archiveMedia .archiveBlock--carouselBleed{
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}
.innerContent--archiveMedia .archiveHomeCarousel--fullBleed{
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.archiveMediaPage > .archiveFilters,
.archiveMediaPage > .archiveMediaRecord,
.archiveMediaPage > .archivePageTitle--media{
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.archiveMediaPage > .archivePageTitle--media{
  margin-top: 28px;
  margin-bottom: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0,0,0,.18);
  text-align: center;
  font-size: 42.67px;
  font-weight: 700;
  letter-spacing: 1.33px;
  color: #b82020;
}
.archiveMediaPage > .archiveFilters{
  margin-top: 24px;
}
.archiveMediaFeatured{
  margin-bottom: 0;
}
.archiveCarouselDots{
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.archiveCarouselDot{
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.2);
  cursor: pointer;
  padding: 0;
}
.archiveCarouselDot--active{
  background: #b82020;
}
.archiveFilters--media{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 8px 0 28px;
  flex-wrap: wrap;
}
.archiveFiltersMediaField{
  display: flex;
  align-items: center;
  gap: 10px;
}
.archiveFiltersMediaField--search{
  flex: 1 1 320px;
  justify-content: flex-end;
}
.archiveFilters--media .archiveFilterLabel{
  font-size: 18.67px;
  color: #333;
  white-space: nowrap;
}
.archiveFilters--media .archiveSelect--media{
  min-width: 120px;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 999px;
  background: #fff;
  font-size: 18.67px;
}
.archiveFilters--media .archiveSearchInput--media{
  flex: 1 1 200px;
  min-width: 160px;
  max-width: 320px;
  padding: 10px 16px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 999px;
  background: #fff;
  font-size: 18.67px;
}
.archiveFilterSearchBtn{
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  background: #8a8a8a;
  color: #fff;
  font-size: 18.67px;
  letter-spacing: 1.33px;
  cursor: pointer;
  transition: background .15s ease;
}
.archiveFilterSearchBtn:hover{
  background: #666;
}
.archiveMediaYearHeading{
  margin: 0 0 8px;
  font-size: 29.33px;
  font-weight: 700;
  letter-spacing: 1.33px;
  color: #111;
}
.archiveMediaYearOverview{
  margin: 0 0 20px;
  font-size: 18.67px;
  line-height: 1.85;
  color: #444;
}
.archiveMediaRecordTitle{
  margin: 0 0 20px;
  font-size: 29.33px;
  letter-spacing: 1.33px;
  color: #b82020;
}
.archiveMediaRecordLayout{
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr);
  gap: 24px;
  align-items: start;
}
.archiveMediaGallery{
  display: grid;
  gap: 14px;
}
.archiveMediaGallery--photos{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.archiveMediaGallery--videos{
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.archiveMediaGallery--videos .archiveMediaGalleryThumb img{
  aspect-ratio: 16 / 9;
  max-height: min(52vh, 420px);
}
.archiveMediaGalleryVideoFrame{
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
}
.archiveMediaGalleryVideoPlayer{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}
.archiveMediaGalleryItem--video{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.archiveMediaGalleryItem--video:hover{
  transform: none;
  box-shadow: none;
}
.archiveMediaGalleryMediaLink{
  display: block;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: 2px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.archiveMediaGalleryMediaLink:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.archiveMediaGalleryMeta{
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.archiveMediaGalleryTitle{
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1.33px;
  color: #222;
}
.archiveMediaGalleryCaption{
  margin: 0;
  font-size: 17.33px;
  line-height: 1.7;
  color: #555;
}
.archiveMediaGalleryEmpty{
  grid-column: 1 / -1;
  margin: 0;
  color: #666;
  font-size: 18.67px;
}
.archiveMediaGalleryItem{
  border: none;
  border-radius: 2px;
  padding: 0;
  background: transparent;
  overflow: visible;
  text-decoration: none;
  color: inherit;
  display: block;
}
.archiveMediaGalleryItem:not(.archiveMediaGalleryItem--video) .archiveMediaGalleryMediaLink{
  transition: transform .15s ease, box-shadow .15s ease;
}
.archiveMediaGalleryItem:not(.archiveMediaGalleryItem--video) .archiveMediaGalleryMediaLink:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.archiveMediaGalleryItem--active{
  border-color: #b82020;
}
.archiveMediaGalleryThumb{
  position: relative;
}
.archiveMediaGalleryThumb img{
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #ccc;
}
.archiveMediaPager{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.archiveMediaPagerBtn,
.archiveMediaPagerNext{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 6px;
  background: #e8e8e8;
  color: #222;
  font-size: 18.67px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.archiveMediaPagerBtn:hover,
.archiveMediaPagerNext:hover{
  background: #ddd;
}
.archiveMediaPagerBtn--active{
  background: #111;
  border-color: #111;
  color: #fff;
}
.archiveMediaPagerNext{
  min-width: 88px;
  margin-left: 4px;
}
.archivePhotoLightbox{
  margin: 0;
}
.archivePhotoLightboxImg{
  display: block;
  width: 100%;
  max-height: min(72vh, 720px);
  object-fit: contain;
  background: #111;
  border-radius: 4px;
}
.archivePhotoLightboxCaption{
  margin: 12px 0 0;
  font-size: 18.67px;
  line-height: 1.7;
  color: #fff;
  text-align: center;
}
.archiveModalPanel--lightbox{
  width: min(920px, 100%);
  padding: 20px;
}
.archiveModalPanel--lightbox .archiveModalTitle{
  text-align: center;
  color: #e8b421;
}
.archiveMediaGalleryPlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 37.33px;
  color: #fff;
  background: rgba(0,0,0,.28);
  pointer-events: none;
}
.archiveMediaGalleryItem--video{
  cursor: pointer;
}
.archiveMediaSidebarBody{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.archiveMediaYoutubeLink{
  display: inline-block;
  color: #b82020;
  font-size: 17.33px;
  letter-spacing: 1.33px;
  text-decoration: none;
}
.archiveMediaYoutubeLink:hover{
  text-decoration: underline;
}
.archiveMediaSidebar{
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.archiveMediaSidebarBox{
  padding: 18px 20px;
  border-radius: 6px;
  line-height: 1.85;
}
.archiveMediaSidebarBox--overview{
  background: rgba(184, 32, 32, .12);
  border: 1px solid rgba(184, 32, 32, .25);
}
.archiveMediaSidebarBox--caption{
  background: rgba(255, 220, 80, .35);
  border: 1px solid rgba(200, 160, 0, .35);
}
.archiveMediaSidebarLabel{
  margin: 0 0 10px;
  font-size: 18.67px;
  letter-spacing: 1.33px;
  color: #333;
}
.archiveMediaSidebarText{
  margin: 0;
  font-size: 18.67px;
  color: #333;
}
.archiveMediaYoutubeNote{
  margin: 16px 0 0;
  text-align: right;
  font-size: 16px;
}
.archiveBibliographyPage .archivePageTitle{
  margin-bottom: 28px;
}
.innerContent--archiveBibliography{
  background: #faf8f3;
}
.innerContent--archiveLearning{
  background: #faf8f3;
}
.archiveLearningResourcesIntro{
  margin: 0 0 28px;
  max-width: 62ch;
}
.archiveLearningResourcesPage .archivePageTitle{
  margin-bottom: 16px;
}
.archiveBibliographyPage{
  max-width: min(96vw, 900px);
  margin: 0 auto;
}
.archiveBibliographyBody{
  position: relative;
  padding: 8px 0 24px;
}
.archiveBibliographyCategory{
  margin-bottom: 56px;
}
.archiveBibliographyCategory:last-child{
  margin-bottom: 0;
}
.archiveBibliographyCategoryTitle{
  margin: 0 0 28px;
  text-align: center;
  font-family: var(--inner-font);
  font-size: clamp(29.33px, 3vw, 42.67px);
  font-weight: 700;
  letter-spacing: 1.33px;
  color: #b82020;
}
.archiveBibliographyList{
  display: flex;
  flex-direction: column;
  gap: 0;
}
.archiveBibliographyItem{
  display: block;
  width: 100%;
  padding: 20px 0;
  border: none;
  background: transparent;
  text-decoration: none;
  color: inherit;
  text-align: left;
  font: inherit;
}
.archiveBibliographyDivider{
  border: none;
  border-top: 1px solid #c9b896;
  margin: 0;
}
.archiveBibliographyItemTitle,
.archiveBibliographyItem h3{
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1.33px;
  color: #111;
}
.archiveBibliographyItemDesc{
  margin: 0;
  font-size: 20px;
  line-height: 1.75;
  color: #333;
}
.archiveBackToTop{
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #2f3134;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  transition: transform .15s ease, background .15s ease;
}
.archiveBackToTop:hover{
  background: #b82020;
  transform: translateY(-2px);
}

@media (max-width: 900px){
  .archiveMediaGallery--photos{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .archiveFiltersMediaField--search{
    width: 100%;
    justify-content: flex-start;
  }
  .archiveFilters--media .archiveSearchInput--media{
    max-width: none;
  }
}
@media (max-width: 560px){
  .archiveFilters--media{
    flex-direction: column;
    align-items: stretch;
  }
  .archiveFiltersMediaField,
  .archiveFiltersMediaField--search{
    width: 100%;
    flex-wrap: wrap;
  }
  .archiveMediaGallery--photos{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .archiveMediaGallery--videos .archiveMediaGalleryThumb img{
    max-height: none;
  }
  .archiveMediaPage > .archivePageTitle--media{
    font-size: 32px;
  }
}

.archiveCarouselViewport{
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.archiveCarouselTrack{
  display: flex;
  gap: 16px;
}
.archiveCarouselSlide{
  flex: 0 0 auto;
  width: min(300px, 70vw);
  scroll-snap-align: start;
  margin: 0;
}
.archiveCarouselSlide img{
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
}
.archiveCarouselSlide figcaption{
  margin-top: 8px;
  font-size: 16px;
  color: #555;
}
.archiveCarouselBtn{
  border: 1px solid rgba(0,0,0,.15);
  background: rgba(255,255,255,.6);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 26.67px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 4px;
  line-height: 0;
  text-align: center;
}
.archiveRecommendedText{
  padding: 20px;
  background: rgba(255,255,255,.45);
  border-radius: 6px;
  line-height: 1.85;
}
.archiveRecommendedText h3{
  margin: 0 0 10px;
  font-size: 24px;
}


.archiveBibliographyItem--interactive{
  cursor: pointer;
  transition: color .18s ease;
}
button.archiveBibliographyItem,
a.archiveBibliographyItem{
  border: none;
  background: transparent;
  font: inherit;
}
.archiveBibliographyItem--interactive:hover{
  color: #b82020;
}
.archiveBibliographyItem--interactive:focus-visible{
  outline: 2px solid #b82020;
  outline-offset: 2px;
}
.archiveBibliographyPreviewDialog{
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.archiveBibliographyPreviewFrame{
  width: 100%;
  min-height: min(70vh, 720px);
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 6px;
  background: #fff;
}
.archiveBibliographyPreviewImage{
  display: block;
  width: 100%;
  max-height: min(72vh, 760px);
  object-fit: contain;
  border-radius: 6px;
  background: #f4f1ea;
}
.archiveBibliographyPreviewDownload{
  font-size: 18.67px;
  color: #b82020;
  text-decoration: none;
}
.archiveBibliographyPreviewDownload:hover{
  text-decoration: underline;
}
.archiveBibliographyPreviewNote{
  margin: 0;
  font-size: 18.67px;
  line-height: 1.75;
  color: #444;
}
.archiveModalPanel--preview{
  width: min(960px, 100%);
  max-height: min(92vh, 980px);
}

.archiveJournalWrap{
  max-width: 520px;
  margin: 0 auto;
  transition: transform 200ms ease;
}
.archiveJournalWrap--issuu{
  max-width: none;
  width: 100%;
  margin: 0;
  perspective: 2600px;
  perspective-origin: 50% 42%;
  background: linear-gradient(180deg, #4a4f54 0%, #3d4247 100%);
  border-radius: 8px;
  padding: 28px 24px 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  filter: none;
}
.archiveJournalWrap--issuu.flipBookWrap{
  filter: none;
}
.archiveJournalWrap--zoomed{
  transform: scale(1.06);
  z-index: 5;
}
.archiveJournalWrap--stf{
  max-width: none;
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  filter: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.archiveJournalWrap--stf.flipBookWrap{
  filter: none;
}
.archiveStfBookShell{
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.archiveStfBookHost{
  position: relative;
  flex: 0 0 auto;
  min-height: 0;
  background: transparent;
  overflow: hidden;
}
.archiveStfBookHost.stf__parent{
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
}
.archiveStfBookHost .stf__wrapper{
  margin: 0 auto;
  position: relative !important;
  height: 100% !important;
  padding-bottom: 0 !important;
}
.archiveStfBookHost .stf__block{
  position: relative !important;
  top: 0 !important;
  background: #f4f0e6;
  overflow: hidden;
}
/* 書本在開口內的內距：數值越大書越小 */
/* 書本上下微調：margin-top 負值往上、正值往下（例 -2% ≈ 上移一點） */
.archiveJournalFrameContent .archiveStfBookShell{
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin-top: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: auto;
}
.archiveJournalFrameContent .archiveStfBookHost{
  width: auto;
  height: auto;
  min-height: 0;
}
/* 跨頁圖在單頁內的留白：數值越大圖越小 */
.archiveJournalFrameContent .archiveStfPage .flipSpreadHalf{
  inset: 0;
}
.archiveStfPage{
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f4f0e6;
}
.archiveStfPage .flipSpreadHalf{
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.archiveStfPage .flipSpreadImage{
  position: absolute;
  top: 0;
  height: 100%;
  width: 200%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
}
.archiveStfPage .flipSpreadHalf--left .flipSpreadImage{
  left: 0;
}
.archiveStfPage .flipSpreadHalf--right .flipSpreadImage{
  left: -100%;
}
.archiveStfPage .flipPageFullImage{
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
}
.archiveStfFallback{
  margin: 0;
  padding: 24px 16px;
  text-align: center;
  color: #6b7280;
  font-size: 18.67px;
}
.archiveFlipBook{
  margin: 0 auto;
}
.archiveFlipBook--issuu{
  width: 100%;
  max-width: 100%;
  height: clamp(360px, 42vw, 520px);
  transform-style: preserve-3d;
  background: #f4f0e6;
  border: 0;
  border-radius: 2px;
  box-shadow:
    0 2px 0 rgba(255,255,255,.08) inset,
    0 28px 64px rgba(0,0,0,.45),
    0 8px 24px rgba(0,0,0,.25);
  cursor: default;
  overflow: visible;
}
.archiveFlipBook--issuu.isFlipping{
  box-shadow:
    0 2px 0 rgba(255,255,255,.08) inset,
    0 32px 72px rgba(0,0,0,.5),
    0 10px 28px rgba(0,0,0,.28);
}
.archiveFlipBook--issuu::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px;
  box-shadow: inset 0 0 80px rgba(0,0,0,.08);
  pointer-events: none;
  z-index: 1;
}
.archiveFlipBook--issuu.isFlipping::before{
  z-index: 1;
}
.archiveFlipBook--issuu::after{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.04) 0%,
    rgba(0,0,0,.22) 18%,
    rgba(0,0,0,.32) 50%,
    rgba(0,0,0,.22) 82%,
    rgba(0,0,0,.04) 100%
  );
  z-index: 5;
  pointer-events: none;
}
.archiveFlipBook--issuu .flipPageLeft{
  z-index: 1;
  width: 50%;
  right: 50%;
  left: 0;
  inset: auto;
  top: 0;
  bottom: 0;
  border-right: 1px solid rgba(0,0,0,.06);
  border-radius: 2px 0 0 2px;
  box-shadow: inset -18px 0 28px rgba(0,0,0,.07);
}
.archiveFlipBook--issuu .flipPageRight{
  left: 50%;
  width: 50%;
  inset: auto;
  top: 0;
  bottom: 0;
  right: 0;
  border-radius: 0 2px 2px 0;
}
.archiveFlipBook--issuu .flipPageFront{
  transform-origin: left center;
  z-index: 3;
  padding: 0;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transform: translateZ(2px);
  box-shadow:
    -8px 0 18px rgba(0,0,0,.12),
    0 0 0 1px rgba(0,0,0,.04);
}
.archiveFlipBook--issuu .flipPageBack{
  z-index: 2;
  transform: translateZ(-2px);
}
.archiveFlipBook--issuu.isFlipping .flipPageFront{
  z-index: 5;
}
.archiveFlipBook--issuu.isFlipping .flipPageBack{
  z-index: 2;
}
.archiveFlipBook--issuu .flipSheetFace{
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  overflow: hidden;
  border-radius: 0 2px 2px 0;
  padding: 20px 18px 16px;
  text-align: left;
}
.archiveFlipBook--issuu .flipSheetFace--back{
  transform: rotateY(180deg);
  box-shadow: inset 0 0 24px rgba(0,0,0,.06);
}
.archiveFlipBook--issuu .flipSheetFace--front:has(.flipPageImage),
.archiveFlipBook--issuu .flipPage:has(.flipPageImage){
  padding: 0;
}
.archiveFlipBook--issuu.isFlipping .flipPageFront{
  transition: transform 1.1s cubic-bezier(0.33, 0.02, 0.18, 1);
  box-shadow: none;
}
.archiveFlipBook--issuu.isFlipping .flipSheetFace--front{
  box-shadow:
    -16px 0 32px rgba(0,0,0,.28),
    -4px 0 12px rgba(0,0,0,.18);
}
.archiveFlipBook--issuu.flipDirNext.isFlipping .flipPageFront{
  transform: translateZ(2px) rotateY(-180deg);
}
.archiveFlipBook--issuu.flipDirPrev.isFlipping .flipPageFront{
  transform-origin: left center;
  transform: translateZ(2px) rotateY(0deg);
}
.archiveFlipBook--issuu.isFlipping .flipSheetFace--front::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.28) 0%,
    rgba(0,0,0,.12) 22%,
    rgba(255,255,255,.04) 48%,
    transparent 72%
  );
  pointer-events: none;
}
.archiveFlipBook--issuu .flipPage--spread,
.archiveFlipBook--issuu .flipSheetFace:has(.flipSpreadHalf){
  padding: 0;
}
.archiveFlipBook--issuu .flipSpreadHalf{
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #f4f0e6;
}
.archiveFlipBook--issuu .flipSpreadImage{
  position: absolute;
  top: 0;
  height: 100%;
  width: 200%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}
.archiveFlipBook--issuu .flipSpreadHalf--left .flipSpreadImage{
  left: 0;
}
.archiveFlipBook--issuu .flipSpreadHalf--right .flipSpreadImage{
  left: -100%;
}
.archiveFlipBook--issuu .flipPageImage{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  pointer-events: none;
  user-select: none;
}
.archiveFlipBook--issuu .flipPage--image{
  background: transparent;
}
.archiveFlipBook--issuu .flipPage{
  padding: 20px 18px 16px;
}
.archiveFlipBook--issuu .flipPage:has(.flipPageImage){
  padding: 0;
}
.archiveFlipBook--issuu .flipSheetFace .flipPageImage{
  position: absolute;
  inset: 0;
}
.archiveFlipBook--issuu .flipPage .bookPageNo{
  z-index: 2;
  background: rgba(255,255,255,.72);
  padding: 2px 8px;
  border-radius: 999px;
}
.archiveFlipBook--issuu.clickZoneLeft{
  cursor: w-resize;
}
.archiveFlipBook--issuu.clickZoneRight{
  cursor: e-resize;
}
.archiveIssuuToolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.archiveIssuuHint{
  font-size: 16px;
  color: #666;
  letter-spacing: 1.33px;
  flex: 1 1 180px;
}
.archiveIssuuPageNo{
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 1.33px;
  color: #444;
  white-space: nowrap;
}
.archiveIssuuControls{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.archiveIssuuNavBtn{
  min-width: 108px;
}
.archiveJournalWrap--issuu .archiveIssuuControls .btn{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  color: #222;
}
.archiveJournalWrap--issuu .archiveIssuuControls .btn.btnGhost{
  background: rgba(255,255,255,.55);
}
.archiveJournalWrap--issuu .archiveIssuuControls .btn:disabled,
.archiveJournalWrap--stf .archiveIssuuControls .btn:disabled{
  opacity: .4;
  cursor: not-allowed;
}
@media (prefers-reduced-motion: reduce){
  .archiveFlipBook--issuu.isFlipping .flipPageFront{
    transition: none;
  }
}

/* 藝術家教師頁 */
.archiveTeachersPage{
  padding-bottom: 24px;
}
.archiveTeachersJournal{
  margin-bottom: 40px;
}
.archiveTeachersJournalTitle{
  margin: 0 0 20px;
  font-size: 29.33px;
  letter-spacing: 1.33px;
  color: #b82020;
}
.archiveTeachersJournalLayout{
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.archiveTeachersProfile{
  padding: 8px 0;
}
.archiveTeachersProfileAvatar{
  width: 120px;
  height: 120px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  margin: 0 auto 16px;
  background: #c8c4bc;
}
.archiveTeachersProfileName{
  margin: 0 0 12px;
  font-size: 24px;
  letter-spacing: 1.33px;
  text-align: center;
  color: #222;
}
.archiveTeachersProfileBio{
  margin: 0;
  font-size: 18.67px;
  line-height: 1.85;
  color: #444;
  text-align: left;
}
.archiveTeachersViewer{
  min-width: 0;
}
.archiveTeachersPicker{
  margin-top: 12px;
}
.archiveTeachersPickerTitle{
  margin: 0 0 16px;
  font-size: 26.67px;
  letter-spacing: 1.33px;
  color: #b82020;
  text-align: center;
}
.archiveTeachersPickerComingSoon{
  margin: 30px 0 8px;
  font-size: 29.33px;
  letter-spacing: 1.33px;
  color: #222;
  text-align: center;
}
.archiveTeachersCarousel{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.archiveTeachersCarouselBtn{
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #222;
  color: #fff;
  font-size: 29.33px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
}
.archiveTeachersCarouselBtn--prev{
  /* ‹ 字元視覺偏左，微調至圓心 */
  transform: translateX(-1px);
}
.archiveTeachersCarouselBtn--next{
  /* › 字元視覺偏右，微調至圓心 */
  transform: translateX(1px);
}
.archiveTeachersCarouselBtn:disabled{
  opacity: .35;
  cursor: not-allowed;
}
.archiveTeachersCarouselTrack{
  display: flex;
  align-items: flex-end;
  justify-content: space-evenly;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 24px 4px 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.archiveTeachersCarouselTrack::-webkit-scrollbar{
  display: none;
  width: 0;
  height: 0;
}
.archiveTeachersCarouselItem{
  flex: 1 1 0;
  min-width: 0;
  max-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 4px;
  scroll-snap-align: center;
  transform: scale(0.82);
  opacity: .65;
  transition: transform 220ms ease, opacity 220ms ease;
}
.archiveTeachersCarouselItem--active{
  transform: scale(1.15);
  opacity: 1;
}
.archiveTeachersCarouselAvatar{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  background: #c8c4bc;
  transition: width 220ms ease, height 220ms ease;
}
.archiveTeachersCarouselItem--active .archiveTeachersCarouselAvatar{
  width: 72px;
  height: 72px;
}
.archiveTeachersCarouselName{
  font-size: 16px;
  letter-spacing: 1.33px;
  white-space: nowrap;
}
.archiveTeachersTimeline{
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  min-height: 56px;
  margin-top: 8px;
  padding: 0 8px 10px;
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.1));
  border-radius: 4px;
}
.archiveTeachersTimeline::before{
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 28px;
  height: 2px;
  background: rgba(0,0,0,.2);
}
.archiveTeachersTimelineYear{
  position: relative;
  z-index: 1;
  padding: 4px 6px;
  font-size: 17.33px;
  letter-spacing: 1.33px;
  color: #444;
  text-decoration: none;
}
.archiveTeachersTimelineYear::before{
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  width: 2px;
  height: 18px;
  transform: translateX(-50%);
  background: rgba(0,0,0,.35);
}
.archiveTeachersTimelineYear--active{
  color: #b82020;
  font-weight: 600;
}
.archiveTeachersTimelineYear--active::before{
  background: #b82020;
  height: 24px;
}
.archiveTeachersTimelineYear:hover{
  color: #b82020;
}

@media (max-width: 900px){
  .archiveTeachersJournalLayout{
    grid-template-columns: 1fr;
  }
  .archiveTeachersProfile{
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }
  .archiveTeachersProfileAvatar{
    width: 96px;
    height: 96px;
    margin: 0;
  }
  .archiveTeachersProfileName{
    text-align: left;
  }
  .archiveFlipBook--issuu{
    height: clamp(300px, 56vw, 420px);
  }
}

.archiveZoomBtn{
  display: block;
  margin: 16px auto 0;
}

@media (max-width: 900px){
  .archiveMediaGrid,
  .archiveWorkGrid:not(.archiveWorkGrid--exhibitions),
  .archiveWorkGrid--compact,
  .archiveTeacherGrid:not(.archiveTeacherGrid--exhibitions){
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .archiveExhibitRow{
    grid-template-columns: 1fr;
  }
  .archiveBibliographyItem{
    grid-template-columns: 1fr;
  }
}

/* ── 研究頁：藝術家日誌書架 ── */
/* 研究頁：藝術家教師日誌 */
.innerContent--archiveResearchJournal{
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.archiveResearchPage--journal{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-bottom: 24px;
}
.archiveResearchPage--journal .archivePageTitle{
  width: 100%;
  text-align: center;
}
.archiveResearchPageHeading.archivePageTitle{
  margin: 0 0 24px;
  color: #b82020;
  font-size: var(--type-display);
  font-weight: 900;
}
.archiveResearchJournal{
  width: 100%;
  max-width: min(1100px, 100%);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.archiveResearchJournalTitle{
  width: 100%;
  margin: 0 0 20px;
  font-size: 29.33px;
  letter-spacing: 1.33px;
  color: #b82020;
  text-align: center;
}
.archiveResearchJournal .archiveTeachersViewer{
  margin-bottom: 16px;
}
.archiveJournalFrame{
  position: relative;
  width: 100%;
  max-width: min(1100px, 100%);
  margin: 0 auto;
}
.archiveJournalFrameStage{
  position: relative;
  width: 100%;
  aspect-ratio: 1624 / 848;
  isolation: isolate;
  transform-style: flat;
}
.archiveJournalFrameBg{
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
  pointer-events: none;
}
.archiveJournalArrowLayer{
  position: absolute;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}
.archiveJournalArrow{
  position: absolute;
  top: 42%;
  z-index: 81;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  /* 熱區加大：視覺箭頭仍靠 img 維持原尺寸 */
  width: clamp(36px, 4vw, 56px);
  height: clamp(48px, 6vw, 80px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity .2s ease;
}
.archiveJournalArrow img{
  display: block;
  width: clamp(12px, 1.4vw, 18px);
  height: auto;
  pointer-events: none;
  user-select: none;
}
.archiveJournalArrow--prev{ left: 0.6%; }
.archiveJournalArrow--next{ right: 0.6%; }
.archiveJournalArrow:hover{ opacity: .82; }
.archiveJournalArrow:disabled{
  opacity: .28;
  cursor: not-allowed;
  pointer-events: none;
}
/* 翻書外框開口位置：調 top/left/right/bottom 對齊 Frame_bg.png */
.archiveJournalFrameContent{
  position: absolute;
  top: 4.9%;
  left: 11%;
  right: 11%;
  bottom: 22.6%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  z-index: 2;
  /* 開口空白不搶點擊，避免蓋住左右箭頭；實際書本再打開 pointer-events */
  pointer-events: none;
}
.archiveJournalBottomBar{
  position: absolute;
  left: 3.4%;
  bottom: 1.5%;
  width: 93.3%;
  height: 13.9%;
  z-index: 5;
}
.archiveJournalBottomBg{
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
  pointer-events: none;
}
.archiveJournalBottomControls{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.archiveJournalBottomControls > *{
  pointer-events: auto;
}
.archiveJournalSlider{
  position: absolute;
  transform: translateY(-50%);
  z-index: 2;
}
/* 軌道線使用 Bottom-label.png 底圖，此處僅保留透明點擊區 */
.archiveJournalSliderTrack{
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 24px;
  margin-top: -12px;
  background: transparent;
  border-radius: 0;
}
.archiveJournalSliderThumb{
  position: absolute;
  top: calc(50% + 5px);
  width: clamp(24px, 2.6vw, 34px);
  height: clamp(24px, 2.6vw, 34px);
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: grab;
  touch-action: none;
}
.archiveJournalSliderThumb:active{
  cursor: grabbing;
}
.archiveJournalSliderThumb img{
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}
.archiveJournalPageSlider{
  left: 1.8%;
  right: 2.6%;
  top: 24%;
  height: 20px;
  z-index: 2;
}
.archiveJournalZoomSlider{
  left: 42.2%;
  right: 41.9%;
  top: 63.5%;
  height: 20px;
  z-index: 2;
}
.archiveJournalPageLabel{
  position: absolute;
  left: 4.5%;
  bottom: 18%;
  width: 10.5%;
  height: 22%;
  z-index: 5;
  font-family: var(--mono);
  font-size: clamp(14.67px, 1.05vw, 18.67px);
  letter-spacing: 1.33px;
  color: #c9a96a;
  white-space: nowrap;
  user-select: none;
}
.archiveJournalFullscreenBtn{
  position: absolute;
  right: 2.3%;
  bottom: 19.3%;
  width: 2%;
  height: 28%;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 20;
}
.archiveJournalExpandedClose{
  display: none;
  position: absolute;
  top: clamp(10px, 1.6vw, 18px);
  right: clamp(10px, 1.6vw, 18px);
  z-index: 10060;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(201, 169, 106, 0.65);
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.82);
  color: #e8d2a5;
  font-size: 26.67px;
  line-height: 1;
  cursor: pointer;
}
.archiveJournalExpandedClose[hidden]{
  display: none !important;
}
.archiveJournalFrame--expanded .archiveJournalExpandedClose{
  display: block;
  position: fixed;
  top: 8px;
  right: 16px;
}
.archiveJournalFullscreenBtn:focus-visible{
  outline: 2px solid rgba(201, 169, 106, 0.85);
  outline-offset: 2px;
}
body.archiveJournalFrame-open{
  overflow: hidden;
}
.archiveJournalBackdrop{
  position: fixed;
  inset: 0;
  z-index: 10040;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(12, 12, 14, 0.88);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
body.archiveJournalFrame-open .archiveJournalBackdrop{
  opacity: 1;
  pointer-events: auto;
}
.archiveJournalFrame--expanded{
  --journal-expanded-pad: 0px;
  position: fixed;
  inset: 0;
  z-index: 10050;
  max-width: none !important;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 48px 0 96px;
  box-sizing: border-box;
  background: #1c1c1e;
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
}
.archiveJournalFrame--expanded .archiveJournalFrameStage{
  position: relative;
  width: 100%;
  height: auto;
  min-height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  overflow: visible;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.archiveJournalFrame--expanded .archiveJournalFrameBg{
  display: none;
}
.archiveJournalFrame--expanded .archiveJournalBottomBar{
  position: fixed;
  z-index: 10070;
  left: 50% !important;
  right: auto !important;
  bottom: 16px !important;
  width: min(93.3vw, 1026px) !important;
  height: auto !important;
  aspect-ratio: 1515 / 118;
  transform: translateX(-50%);
  pointer-events: auto;
}
.archiveJournalFrame--expanded .archiveJournalFullscreenBtn{
  width: 28px !important;
  height: 28px !important;
  min-width: 28px;
  min-height: 28px;
  aspect-ratio: 1;
}
.archiveJournalFrame--expanded .archiveJournalFrameContent,
.archiveJournalFrame--expanded .archiveStfBookShell{
  overflow: visible;
}
.archiveJournalFrame--expanded .archiveStfBookHost{
  overflow: hidden;
}
.archiveJournalFrame--expanded .archiveJournalFrameContent{
  position: relative;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100%;
  height: auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.archiveJournalFrame--expanded .archiveStfBookShell{
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  margin: 0;
  overflow: visible;
  pointer-events: auto;
}
.archiveJournalFrame--expanded .archiveStfBookHost.stf__parent{
  max-width: none;
  max-height: none;
  width: 100% !important;
  margin: 0 auto;
}
.archiveJournalFrame--expanded .archiveJournalArrowLayer,
.archiveJournalFrame--expanded .archiveJournalArrow{
  display: none !important;
}
.archiveJournalFrame--expanded .archiveJournalFrameContent .archiveTeachersViewer,
.archiveJournalFrame--expanded .archiveJournalFrameContent .archiveJournalWrap--stf,
.archiveJournalFrame--expanded .archiveJournalFrameContent .archiveStfBookShell{
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.archiveJournalFrame--expanded .archiveStfBookHost .stf__wrapper,
.archiveJournalFrame--expanded .archiveStfBookHost .stf__block{
  overflow: hidden !important;
}
.archiveJournalPageHit{
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28%;
  z-index: 10080;
  padding: 0;
  border: 0;
  margin: 0;
  background: transparent;
  pointer-events: auto;
  user-select: none;
}
.archiveJournalFrame--expanded .archiveJournalPageHit{
  display: block;
}
.archiveJournalFrame--expanded.archiveJournalFrame--zoomed .archiveJournalPageHit{
  display: none;
}
.archiveJournalPageHit--prev{
  left: 0;
  cursor: w-resize;
}
.archiveJournalPageHit--next{
  right: 0;
  cursor: e-resize;
}
.archiveJournalPageHit:disabled{
  cursor: default;
  pointer-events: none;
}
.archiveJournalFrameContent .archiveTeachersViewer{
  width: 100%;
  height: 100%;
  min-height: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.archiveJournalFrameContent .archiveIssuuToolbar{
  display: none;
}
.archiveJournalFrameContent .archiveJournalWrap--stf{
  width: 100%;
  height: 100%;
  max-height: 100%;
  flex: 1 1 auto;
  min-height: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.archiveJournalFrameContent .archiveFlipBook--issuu{
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  box-shadow: none;
  cursor: pointer;
  touch-action: manipulation;
  background: transparent;
}
.archiveJournalFrameContent .archiveFlipBook--issuu .flipPageImage{
  object-fit: contain;
}
.archiveJournalFrameContent .archiveFlipBook--issuu .flipPage{
  padding: 12px 10px 22px;
  overflow: hidden;
}
.archiveJournalFrameContent .archiveFlipBook--issuu .flipPage:has(.flipPageImage){
  padding: 0;
}
.archiveJournalFrameContent .bookPageNo{
  font-size: 12px;
  padding: 1px 5px;
  right: 6px;
  bottom: 6px;
}
.archiveJournalFrameContent .bookTitle{
  font-size: 17.33px;
}
.archiveJournalFrameContent .bookBody{
  font-size: 14.67px;
  line-height: 1.55;
}
.archiveJournalFrameContent .bookControls.archiveIssuuControls{
  display: none;
}
@media (max-width: 720px){
  .archiveJournalBottomBar{
    display: block;
    left: 2%;
    bottom: 1.5%;
    width: 96%;
    height: 15%;
    overflow: hidden;
  }
  .archiveJournalFrameContent{
    top: 5%;
    left: 9%;
    right: 9%;
    bottom: 18%;
  }
  .archiveJournalArrow{
    width: 28px;
    height: 40px;
  }
  .archiveJournalArrow img{
    width: 11px;
  }
  .archiveJournalArrow--prev{ left: 0.4%; }
  .archiveJournalArrow--next{ right: 0.4%; }
  .archiveJournalPageLabel{
    left: 3.5%;
    bottom: 28%;
    width: auto;
    max-width: 30%;
    height: auto;
    font-size: 11px;
    letter-spacing: 0.4px;
    line-height: 1;
  }
  .archiveJournalFullscreenBtn{
    right: 2.5%;
    bottom: 22%;
    width: 5%;
    height: 36%;
    min-width: 22px;
    min-height: 22px;
  }
  .archiveJournalSliderThumb{
    width: 20px;
    height: 20px;
    top: calc(50% + 3px);
  }
  .archiveTeachersCarouselBtn{
    width: 26px;
    height: 26px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .archiveTeachersCarouselNotebook{
    width: 36px;
    height: 46px;
  }
  .archiveTeachersCarouselItem--active .archiveTeachersCarouselNotebook{
    width: 46px;
    height: 58px;
  }
  .archiveTeachersCarouselItem{
    transform: scale(0.88);
    transition: transform 120ms ease, opacity 120ms ease;
  }
  .archiveTeachersCarouselItem--active{
    transform: scale(1.06);
  }
  .archiveTeachersCarouselAvatar{
    transition: none;
  }
  .archiveResearchPage--journal .archiveTeachersCarouselTrack{
    justify-content: flex-start;
    align-items: flex-end;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 16px 8px 8px;
  }
  .archiveResearchPage--journal .archiveTeachersCarouselItem{
    flex: 0 0 auto;
    min-width: 58px;
    max-width: none;
    transform: none;
    gap: 10px;
  }
  .archiveResearchPage--journal .archiveTeachersCarouselItem--active{
    transform: none;
  }
  .archiveResearchPage--journal .archiveTeachersCarouselNotebook{
    width: 42px;
    height: 54px;
  }
  .archiveResearchPage--journal .archiveTeachersCarouselItem--active .archiveTeachersCarouselNotebook{
    width: 54px;
    height: 68px;
  }
  .archiveResearchPage--journal .archiveTeachersCarouselName{
    font-size: 13px;
    letter-spacing: 0.14em;
  }
  .archiveTeachersPickerTitle,
  .archiveTeachersJournalTitle,
  .archiveResearchJournalTitle{
    font-size: 18px;
    margin-bottom: 10px;
  }
  .archiveResearchPageHeading.archivePageTitle,
  .archiveResearchPage--journal .archivePageTitle,
  .archiveTeachersPage .archivePageTitle{
    font-size: clamp(22px, 6vw, 28px);
    margin-bottom: 12px;
  }
  .archiveResearchJournalTeacherName{
    font-size: 16px;
    margin-top: 10px;
  }
  .archiveResearchJournalIntroTitle{
    font-size: 16px;
  }
  .archiveYearTab{
    font-size: 16px;
  }
}
.archiveJournalFrame--debug .archiveJournalFrameContent{
  outline: 2px dashed rgba(68, 170, 255, 0.85);
  outline-offset: -2px;
}
.archiveJournalFrame--debug .archiveJournalArrow{
  outline: 2px dashed rgba(255, 209, 102, 0.9);
}
.archiveJournalFrame--debug .archiveJournalPageSlider,
.archiveJournalFrame--debug .archiveJournalZoomSlider{
  outline: 1px dashed rgba(120, 220, 120, 0.8);
}
.archiveJournalFrame--debug .archiveJournalPageLabel{
  outline: 1px dashed rgba(255, 255, 255, 0.5);
}
.archiveJournalFrame--debug .archiveJournalFullscreenBtn{
  outline: 2px dashed rgba(255, 120, 120, 0.9);
}
.archiveJournalFrame--debug .archiveJournalBottomBar{
  outline: 2px dashed rgba(255, 255, 255, 0.35);
}
.archiveResearchJournalTeacherName{
  width: 100%;
  margin: 16px 0 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--type-title);
  font-weight: 700;
  letter-spacing: var(--font-tracking);
  color: #222;
}
@media (max-width: 900px){
  .archiveResearchJournalTeacherName{
    /* 比標題字級約小 8px，避免壓過翻書工具 */
    font-size: max(14px, calc(var(--type-title) - 8px));
    margin-top: 10px;
    font-weight: 600;
  }
}
.archiveResearchSectionDivider{
  width: 100%;
  max-width: min(1100px, 100%);
  border: none;
  border-top: 1px solid rgba(0, 0, 0, .22);
  margin: 28px auto;
}
.archiveResearchJournalIntro{
  width: 100%;
  max-width: min(900px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}
.archiveResearchJournalIntroTitle{
  margin: 0;
  text-align: left;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1.33px;
  color: #222;
}
.archiveResearchJournalVideo{
  width: 100%;
  max-width: none;
  margin: 0;
}
.archiveResearchJournalVideoFrame{
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
}
.archiveResearchJournalVideoPlayer{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}
.archiveResearchJournalVideoPlaceholder{
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background: linear-gradient(135deg, #5b4d8a 0%, #7a6aad 100%);
}
.archiveResearchPage--journal .archiveTeachersPicker{
  width: 100%;
  max-width: min(900px, 100%);
  margin-top: 8px;
  margin-bottom: 28px;
}
.archiveResearchPage--journal .archiveTeachersCarouselTrack{
  justify-content: space-evenly;
  overflow: hidden;
}
.archiveTeachersCarouselNotebook{
  width: 56px;
  height: 70px;
  object-fit: contain;
  background: transparent;
  transition: width 220ms ease, height 220ms ease;
}
.archiveTeachersCarouselItem--active .archiveTeachersCarouselNotebook{
  width: 72px;
  height: 88px;
}
.archiveResearchPage .archiveResearchIntro{
  max-width: 720px;
}
.archiveResearchLibrary{
  margin-top: 8px;
}
.archiveResearchBookGrid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
}
.archiveResearchBookCard{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: center;
  transition: transform .2s ease;
}
.archiveResearchBookCard:hover{
  transform: translateY(-4px);
}
.archiveResearchBookCard:focus-visible{
  outline: 2px solid #b82020;
  outline-offset: 4px;
  border-radius: 4px;
}
.archiveResearchBookCover{
  width: 100%;
  max-width: 160px;
  aspect-ratio: 3/4;
  border-radius: 4px 8px 8px 4px;
  overflow: hidden;
  box-shadow:
    4px 4px 0 rgba(0,0,0,.08),
    0 10px 28px rgba(0,0,0,.16);
  transition: box-shadow .2s ease;
}
.archiveResearchBookCard:hover .archiveResearchBookCover{
  box-shadow:
    6px 6px 0 rgba(0,0,0,.1),
    0 14px 32px rgba(0,0,0,.2);
}
.archiveResearchBookCover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.archiveResearchBookTitle{
  font-size: 18.67px;
  line-height: 1.5;
  letter-spacing: 1.33px;
  color: #333;
}
.archiveResearchBookshelf{
  width: 100%;
  max-width: min(900px, 100%);
  margin-top: 12px;
  padding-top: 0;
  border-top: 0;
}
.archiveResearchBookshelfTitle{
  margin: 0 0 8px;
  font-size: 26.67px;
  letter-spacing: 1.33px;
  color: #b82020;
}
.archiveResearchBookshelfCaption{
  margin: 0 0 20px;
  font-size: 18.67px;
  line-height: 1.7;
  color: #555;
}
.archiveResearchBookshelfStage{
  position: relative;
  width: 100%;
  margin: 0 auto;
}
.archiveResearchBookshelfImg{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}
.archiveResearchBookshelfYearTabs{
  position: absolute;
  top: 0;
  left: 1.2%;
  right: 1.2%;
  height: 13.5%;
  z-index: 4;
  display: flex;
  align-items: stretch;
  pointer-events: auto;
}
.archiveResearchBookshelfYearTab{
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: none;
  background: #d2d2d2;
  color: #333;
  font-size: clamp(14.67px, 1.25vw, 18.67px);
  font-weight: 700;
  letter-spacing: 1.33px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s ease, background .15s ease;
}
.archiveResearchBookshelfYearTab + .archiveResearchBookshelfYearTab{
  border-left: 1px solid rgba(0,0,0,.14);
}
.archiveResearchBookshelfYearTab:hover,
.archiveResearchBookshelfYearTab:focus-visible{
  color: #b82020;
  background: #e0e0e0;
  outline: none;
}
.archiveResearchBookshelfYearTab--active{
  color: #b82020;
  background: #e8e8e8;
}
.archiveResearchBookshelfHotspots{
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.archiveResearchBookshelfHotspot{
  position: absolute;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 2px;
  pointer-events: auto;
  transform-origin: center bottom;
  transition: background .15s ease, box-shadow .15s ease;
}
.archiveResearchBookshelfHotspot--linked:hover,
.archiveResearchBookshelfHotspot--linked:focus-visible{
  background: rgba(184,32,32,.14);
  box-shadow: inset 0 0 0 2px rgba(184,32,32,.45);
  outline: none;
}
.archiveResearchBookshelfHotspot:hover,
.archiveResearchBookshelfHotspot:focus-visible{
  background: rgba(184,32,32,.1);
  box-shadow: inset 0 0 0 1px rgba(184,32,32,.35);
  outline: none;
}
.archiveResearchBookshelfHotspot--debug,
.archiveResearchBookshelfStage--debug .archiveResearchBookshelfHotspot{
  background: rgba(184,32,32,.28);
  box-shadow: inset 0 0 0 1px rgba(184,32,32,.75);
}
.archiveResearchHotspotDebugBanner{
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 6px;
  background: #fff4f4;
  border: 1px solid rgba(184,32,32,.35);
  color: #8a2020;
  font-size: 17.33px;
  text-align: center;
}

.archiveModalOverlay{
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  transition: opacity .18s ease;
}
.archiveModalOverlay--open{
  opacity: 1;
}
.archiveModalOverlay--closing{
  opacity: 0;
}
.archiveModalBackdrop{
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}
.archiveModalPanel{
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  box-sizing: border-box;
  background: transparent url("../assets/images/PopUp.png") center / 100% 100% no-repeat;
  border-radius: 0;
  box-shadow: none;
  padding: 36px 28px 28px;
  color: #f3f3f3;
}
.archiveModalPanel--wide{
  width: min(720px, 100%);
}
.archiveModalPanel--flipbook{
  width: min(920px, 100%);
  max-height: min(92vh, 960px);
  padding: 36px 24px 20px;
  /* 寬幅翻書仍用公版外觀色系 */
  background-color: rgba(8, 8, 8, 0.92);
  background-image: none;
  border: 1px solid rgba(220, 220, 220, 0.75);
  border-radius: 28px;
}
.archiveModalClose{
  position: absolute;
  top: 12px;
  left: 14px;
  right: auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  transition: opacity .15s ease;
}
.archiveModalClose:hover{
  background: transparent;
  color: transparent;
  opacity: 0.82;
}
.archiveModalClose .sitePopupCloseIcon,
.archiveModalClose img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.archiveModalTitle{
  margin: 0 12px 16px 36px;
  font-size: 26.67px;
  letter-spacing: 1.33px;
  color: #e8b421;
  text-align: center;
}
.archiveModalBody{
  min-height: 0;
  color: #f0f0f0;
}
.archiveModalPanel--flipbook .archiveModalTitle{
  margin-bottom: 12px;
}
.archiveModalPanel--flipbook .archiveTeachersViewer{
  margin: 0;
}
.archiveModalPanel--flipbook .archiveJournalWrap--issuu,
.archiveModalPanel--flipbook .archiveJournalWrap--stf{
  padding: 20px 16px 14px;
}
.archiveResearchAccessDialog{
  padding: 8px 0 4px;
}
.archiveResearchAccessText{
  margin: 0;
  font-size: 21.33px;
  line-height: 1.85;
  color: #333;
}

@media (max-width: 900px){
  .archiveResearchBookGrid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }
}
@media (max-width: 560px){
  .archiveResearchBookGrid{
    gap: 20px 12px;
  }
  .archiveResearchBookCover{
    max-width: 130px;
  }
  .archiveModalPanel--flipbook{
    padding: 16px 12px 12px;
  }
}

/* ── 最新展演：圖文卡片列表 ── */
.innerContent--archivePerformances{
  width: 100%;
  max-width: none;
  padding: max(36px, calc(36 * var(--ui-scale))) max(24px, calc(32 * var(--ui-scale))) max(48px, calc(72 * var(--ui-scale)));
}
.archivePerformancesPage{
  max-width: min(96vw, 1180px);
  margin: 0 auto;
}
.archivePerformancesTitle{
  margin: 0 0 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0,0,0,.18);
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--type-display);
  font-weight: 900;
  letter-spacing: var(--font-tracking);
  color: #b82020;
}
.archivePerformancesList{
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
}
.archivePerformanceCard{
  margin: 0;
}
.archivePerformanceCardLink{
  display: block;
  text-decoration: none;
  color: inherit;
}
.archivePerformanceCardLink:hover .archivePerformanceCardImg{
  opacity: .92;
}
.archivePerformanceCardLink:focus-visible{
  outline: 2px solid #b82020;
  outline-offset: 4px;
}
.archivePerformanceCardMedia{
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #b8b4b0;
  overflow: hidden;
}
.archivePerformanceCardImg{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity .25s ease;
}
.archivePerformanceCardBody{
  padding-top: 20px;
}
.archivePerformanceCardTitle{
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: var(--type-title);
  font-weight: 700;
  letter-spacing: var(--font-tracking);
  color: #111;
}
.archivePerformanceCardMeta{
  margin: 0 0 4px;
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: 500;
  line-height: 1.6;
  color: #333;
}

/* ── 藝術家教師：三欄網格（固定不隨寬度改欄數） ── */
.archiveTeachersPage--grid .archiveTeachersYearSection{
  margin-top: 8px;
}
.archiveTeachersYearHeading{
  margin: 0 0 24px;
  font-size: 37.33px;
  font-weight: 700;
  letter-spacing: 1.33px;
  color: #222;
  text-align: center;
}
.archiveTeachersGrid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 28px;
  align-items: start;
}
.archiveTeachersGridCard{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 6px 12px;
  border: none;
  background: transparent;
  text-align: center;
  min-width: 0;
}
.archiveTeachersGridAvatar{
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid rgba(255,255,255,.9);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  background: #f5e6b8;
  flex-shrink: 0;
}
.archiveTeachersGridName{
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 22px;
  letter-spacing: 1.33px;
  color: #222;
  font-weight: 700;
}
.archiveTeachersGridNameEn{
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #555;
}
.archiveTeachersGridSummary{
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.archivePastWebsiteModalDialog{
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 4px 8px 0;
  max-width: 520px;
}
.archivePastWebsiteModalSection{
  text-align: left;
}
.archivePastWebsiteModalHeading{
  margin: 0 0 10px;
  font-size: 21.33px;
  letter-spacing: 1.33px;
  color: #e8b421;
  font-weight: 700;
}
.archivePastWebsiteModalBody{
  margin: 0;
  font-size: 20px;
  line-height: 1.85;
  color: #f0f0f0;
}
.archivePastWebsiteModalBody p{
  margin: 0 0 12px;
}
.archivePastWebsiteModalBody p:last-child{
  margin-bottom: 0;
}

@media (max-width: 900px){
  .archiveTeachersGrid{
    gap: 28px 14px;
  }
  .archiveTeachersGridAvatar{
    width: 96px;
    height: 96px;
  }
  .archiveTeachersGridName{
    font-size: 18px;
  }
  .archiveTeachersGridSummary{
    font-size: 13px;
    line-height: 1.55;
    text-align: left;
    align-self: stretch;
  }
  .archiveTeachersProfileBio{
    font-size: 15px;
    line-height: 1.7;
  }
  .archiveBibliographyItemTitle,
  .archiveBibliographyItem h3{
    font-size: 18px;
  }
  .archiveBibliographyItemDesc{
    font-size: 15px;
    line-height: 1.6;
  }
  .archiveIntroBody{
    font-size: 16px;
  }
  .archiveYearTabs{
    gap: 6px 10px;
    margin-bottom: 16px;
    justify-content: center;
  }
  .archiveYearTab{
    font-size: 17px;
  }
}
@media (max-width: 560px){
  .archiveTeachersYearHeading{
    font-size: 22px;
    margin-bottom: 14px;
  }
  .archiveTeachersGrid{
    gap: 22px 10px;
  }
  .archiveTeachersGridCard{
    gap: 8px;
    padding: 4px 2px 8px;
  }
  .archiveTeachersGridAvatar{
    width: 78px;
    height: 78px;
    border-width: 2px;
  }
  .archiveTeachersGridName{
    font-size: 15px;
    letter-spacing: 0.5px;
  }
  .archiveTeachersGridSummary{
    font-size: 11.5px;
    line-height: 1.5;
    text-align: left;
    align-self: stretch;
  }
  .archiveTeachersProfileBio{
    font-size: 14px;
  }
  .archiveBibliographyItemTitle,
  .archiveBibliographyItem h3{
    font-size: 16px;
  }
  .archiveBibliographyItemDesc{
    font-size: 14px;
  }
  .archivePerformanceCardBody{
    padding-top: 16px;
  }
}

