/* WHPI map portal — original styles, not copied from TCCS */
:root {
  --gold: #C4A15A;
  --gold-deep: #B8874A;
  --gold-soft: #E8D3A8;
  --ink: #1C1916;
  --ink-soft: #4A433C;
  --cream: #FBF7F1;
  --cream-deep: #F3E6D4;
  --bar: #F4E8D8;
  --bar-border: #E5D3B8;
  --paper: #FFFFFF;
  --dropdown: rgba(62, 42, 24, 0.94);
  --dropdown-line: rgba(255, 255, 255, 0.22);
  --dropdown-hover: rgba(255, 255, 255, 0.10);
  --shadow: 0 8px 28px rgba(80, 52, 20, 0.12);
  --radius: 16px;
  --header-h: 76px;
  --font: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
  --serif: "Noto Serif TC", "Noto Sans TC", serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3 { font-weight: 700; line-height: 1.3; }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

/* ===== Portal ===== */
body.is-portal {
  background-color: #FFFBF8;
  background-image: url("../img/waves.svg"), radial-gradient(70% 150% ellipse at bottom right, rgba(200, 161, 90, 0.28) 0, rgba(200, 161, 90, 0) 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: 100% 100%, 100% 100%;
  background-size: min(920px, 72vw) auto, 100% 100%;
  background-attachment: fixed, fixed;
}

.portal-header {
  position: relative;
  z-index: 30;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  padding: 0px;
}

.portal-header-inner {
  max-width: none;
  margin: 0;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 4px;
  box-shadow: 0 1px 8px rgba(80, 52, 20, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 0 1 auto;
}
.brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-portal img {
  width: auto;
  height: 80px;
  max-height: 80px;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-zh {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.brand-en {
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-buttons {
  display: flex;
      flex-wrap: unset;
  gap: 12px 40px;
  margin-left: auto;
  justify-content: flex-end;
}

.portal-btn {
  --btn-color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn-color);
  color: #fff;
  padding: 10px 26px 10px 18px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border: none;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s ease;
  white-space: nowrap;
}
.portal-btn::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 18px 18px;
  border-color: transparent transparent #fff;
  transition: transform 0.2s ease;
  pointer-events: none;
}
.portal-btn:hover,
.portal-btn:focus-visible {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  outline: none;
}
.portal-btn:hover::after,
.portal-btn:focus-visible::after {
  transform: translate(5px, 0);
}
.portal-btn-arrow {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.portal-lang { flex-shrink: 0; }

.portal-main {
  flex: 1;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 4px 0 0;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.portal-col-left {
  min-width: 0;
}

.portal-col-right {
  min-width: 0;
  padding: 12px 22px 48px;
  background: rgba(255, 255, 255, 0.28);
}

.col-heading {
  margin: 0;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--accent, var(--gold-deep)) 26%, #fff);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 0;
  border-left: 4px solid var(--accent, var(--gold-deep));
}
.col-heading-plain {
  background: transparent;
  color: var(--ink);
  padding: 16px 8px 10px;
  font-family: var(--serif);
  font-size: 26px;
  text-align: center;
  letter-spacing: 0.06em;
  border: 0;
}

.banner-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.banner-stack .col-heading-plain {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.banner-card {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  min-height: 210px;
  box-shadow: var(--shadow);
  background: #2a2218;
  color: #fff;
}
.banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transform: scale(1);
  transition: transform 0.5s ease;
}
.banner-card:hover img { transform: scale(1.05); }
.banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 16px 18px;
  background: linear-gradient(180deg, rgba(28, 18, 8, 0.12) 20%, rgba(28, 18, 8, 0.78) 100%);
  text-align: left;
}
.banner-title {
  font-family: var(--serif);
  font-size: clamp(15px, 1.55vw, 18px);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.4;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}
.banner-cta {
  display: inline-block;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.link-panel {
  --accent: var(--gold-deep);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  margin-bottom: 22px;
  border: 0;
}
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { border-bottom: 1px solid #EDE3D4; }
.link-list li:last-child { border-bottom: 0; }
.link-list a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  transition: background 0.15s ease, padding-left 0.15s ease;
}
.link-list a:hover,
.link-list a:focus-visible {
  background: #FBF4EA;
  padding-left: 22px;
  outline: none;
}
.link-title { font-weight: 600; color: #2A5A9A; font-size: 15px; }
.link-list a:hover .link-title { color: var(--gold-deep); }
.link-text { font-size: 13px; color: var(--ink-soft); }



/* ===== Concept slides: one large image per theme (TCCS-inspired motion, original CSS) ===== */
.concept-block {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 120px);
}
.concept-board {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  width: 100%;
  height: calc(100vh - 120px);
  min-height: 720px;
  overflow: hidden;
  background: #16120e;
  container-type: size;
}
.concept-slide {
  position: relative;
  flex: 1 1 0;
  flex-grow: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  cursor: pointer;
  color: #f1f1f1;
  transition: flex-grow 1000ms ease;
}
.concept-slide.is-open,
.concept-board.is-hoverable .concept-slide:hover {
  flex-grow: 3;
}
.concept-slide.is-starter {
  animation: conceptPanelIntro 3s ease 1;
}
.concept-board.has-interacted .concept-slide.is-starter,
.concept-board.is-hoverable:hover .concept-slide.is-starter {
  animation: none;
}
@keyframes conceptPanelIntro {
  0% { flex-grow: 1; }
  50% { flex-grow: 3; }
  100% { flex-grow: 1; }
}
.concept-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}
.concept-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25));
  pointer-events: none;
}
.concept-title {
  position: absolute;
  left: 50%;
  top: 40%;
  z-index: 2;
  margin: 0;
  width: 90%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  color: #f1f1f1;
  font-family: var(--font);
  font-size: clamp(24px, 6cqw, 64px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transition: all 1000ms ease;
  pointer-events: none;
}
.concept-slide.is-open .concept-title,
.concept-board.is-hoverable .concept-slide:hover .concept-title {
  top: 35%;
  transform: translate(-50%, -50%) scale(1.5);
}
.concept-slide.is-starter .concept-title {
  animation: conceptTitleIntro 3s ease 1;
}
.concept-board.has-interacted .concept-slide.is-starter .concept-title,
.concept-board.is-hoverable:hover .concept-slide.is-starter .concept-title {
  animation: none;
}
@keyframes conceptTitleIntro {
  0% { top: 40%; transform: translate(-50%, -50%) scale(1); }
  50% { top: 35%; transform: translate(-50%, -50%) scale(1.5); }
  100% { top: 40%; transform: translate(-50%, -50%) scale(1); }
}
.concept-about {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 42.5%;
  max-width: 920px;
  transform: translateX(-50%);
  opacity: 0;
  color: #f1f1f1;
  padding: 0 3%;
  border: 25px solid #f1f1f1;
  border-radius: 10px;
  line-height: 1.3;
  text-align: center;
  transition: all 1000ms ease;
  pointer-events: none;
  box-sizing: border-box;
}
.concept-slide.is-open .concept-about,
.concept-board.is-hoverable .concept-slide:hover .concept-about {
  opacity: 1;
  width: 85%;
  padding: 3%;
  border-width: 1px;
  pointer-events: auto;
}
.concept-slide.is-starter .concept-about {
  animation: conceptAboutIntro 3s ease 1;
}
.concept-board.has-interacted .concept-slide.is-starter .concept-about,
.concept-board.is-hoverable:hover .concept-slide.is-starter .concept-about {
  animation: none;
}
@keyframes conceptAboutIntro {
  0% { opacity: 0; width: 42.5%; padding: 0 3%; border-width: 25px; }
  35%, 55% { opacity: 1; width: 85%; padding: 3%; border-width: 1px; }
  100% { opacity: 0; width: 42.5%; padding: 0 3%; border-width: 25px; }
}
.concept-about a,
.concept-about p {
  display: block;
  margin: 0;
  color: #f1f1f1;
  text-decoration: none;
}
.concept-about a p,
.concept-about > p {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: clamp(16px, 2.4cqw, 28px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}
.concept-about a:hover,
.concept-about a:focus-visible {
  outline: none;
  box-shadow: inset 100vw 0 0 0 rgba(184, 135, 74, 0.8);
  border-radius: 8px;
}
.concept-slide:focus-visible {
  outline: 3px solid #E8D3A8;
  outline-offset: -3px;
}

@media (max-width: 1279px) {
  .concept-block,
  .concept-board {
    height: min(86vh, 860px);
    min-height: 560px;
  }
  .concept-title { font-size: clamp(22px, 8cqw, 44px); }
  .concept-about a p,
  .concept-about > p { font-size: clamp(14px, 3.6cqw, 20px); }
}

@media (prefers-reduced-motion: reduce) {
  .concept-slide,
  .concept-slide img,
  .concept-title,
  .concept-about { transition: none !important; animation: none !important; }
}

/* ===== Homepage menu accordion (風琴包) ===== */
.menu-accordion {
  --accent: var(--gold-deep);
  background: #FFFDF8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #E6D8C4;
}
.acc-list,
.acc-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}
.acc-item { border-bottom: 1px solid #E8DCC8; }
.acc-list > .acc-item:last-child { border-bottom: 0; }

.acc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  text-align: left;
  background: #FFF9F1;
  border: 0;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  padding: 13px 14px 13px 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}
.acc-head:hover,
.acc-head:focus-visible {
  background: #F6EBDA;
  color: var(--gold-deep);
  outline: none;
}
.acc-item.is-open > .acc-head {
  background: #F3E4CF;
  color: #5A3D22;
}

.acc-fold {
  width: 16px;
  align-self: stretch;
  flex-shrink: 0;
  min-height: 44px;
  background: repeating-linear-gradient(
    135deg,
    #C4A15A 0 3px,
    #F3E6D4 3px 5px,
    #B8874A 5px 7px,
    #E8D3A8 7px 9px
  );
  box-shadow: inset -2px 0 0 rgba(80, 52, 20, 0.14);
}
.acc-label {
  flex: 1;
  line-height: 1.4;
  min-width: 0;
}
.acc-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  opacity: 0.7;
  margin: 0 6px 4px 0;
  flex-shrink: 0;
}
.acc-item.is-open > .acc-head .acc-chevron {
  transform: rotate(225deg);
  margin-bottom: 0;
}

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.36s ease;
}
.acc-item.is-open > .acc-panel {
  grid-template-rows: 1fr;
}
.acc-panel-inner {
  overflow: hidden;
  min-height: 0;
}
.acc-sub {
  background:
    linear-gradient(180deg, rgba(80, 52, 20, 0.08), transparent 10px),
    repeating-linear-gradient(
      180deg,
      #F7F0E6 0 11px,
      #F3E9DA 11px 12px
    );
  border-top: 1px dashed #DCC9AE;
  box-shadow: inset 8px 0 0 0 rgba(184, 135, 74, 0.18);
}
.acc-sub > .acc-item { border-bottom: 1px solid #EADDCB; }
.acc-sub > .acc-item:last-child { border-bottom: 0; }
.acc-level-2 > .acc-head,
.acc-level-3 > .acc-head {
  background: transparent;
  font-weight: 500;
  font-size: 14.5px;
  padding-top: 11px;
  padding-bottom: 11px;
}
.acc-level-2 > .acc-head .acc-fold,
.acc-level-3 > .acc-head .acc-fold { min-height: 38px; width: 12px; opacity: 0.85; }
.acc-level-3 > .acc-head { padding-left: 10px; font-size: 14px; }
.acc-overview > .acc-head .acc-label { font-weight: 600; color: #6A4B1F; }

@media (prefers-reduced-motion: reduce) {
  .acc-panel,
  .acc-chevron { transition: none !important; }
}

/* ===== Inner header / menu ===== */
body.is-inner { background: #F7F4EF; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bar);
  border-bottom: 1px solid var(--bar-border);
  box-shadow: 0 2px 10px rgba(80, 52, 20, 0.06);
}

.inner-bar {
  max-width: 1360px;
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 16px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-inner img { width: 58px; height: 58px; }
.brand-inner .brand-zh { font-size: 14px; }
.brand-inner .brand-en { font-size: 10px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav { flex: 1; min-width: 0; }
.nav-root,
.nav-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-root {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0;
}

.nav-level-1 { position: relative; flex: 0 1 auto; }

.nav-row {
  display: flex;
  align-items: center;
  min-height: inherit;
}

.nav-level-1 > .nav-row {
  min-height: var(--header-h);
  padding: 0 2px 0 6px;
}

.nav-level-1 > .nav-row > .nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--header-h);
  padding: 8px 2px 8px 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  line-height: 1.2;
}
.nav-level-1 > .nav-row > .nav-link .nav-label {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 7.4em;
}
.nav-level-1.is-active > .nav-row > .nav-link,
.nav-level-1:hover > .nav-row > .nav-link,
.nav-level-1:hover > .nav-row > .nav-caret,
.nav-level-1:focus-within > .nav-row > .nav-link,
.nav-level-1:focus-within > .nav-row > .nav-caret {
  color: var(--gold-deep);
}

.nav-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-chevron {
  width: 8px;
  height: 8px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  flex-shrink: 0;
  opacity: 0.7;
}
.chevron-down { transform: rotate(45deg) translateY(-1px); }
.chevron-right { transform: rotate(-45deg); }

.nav-sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--dropdown);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  border-radius: 0 0 6px 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 60;
  padding: 4px 0;
}
.nav-item.has-children:hover > .nav-sub,
.nav-item.has-children:focus-within > .nav-sub,
.nav-item.has-children.is-open > .nav-sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.nav-level-2,
.nav-level-3 { position: relative; }

.nav-sub .nav-row {
  border-bottom: 1px solid var(--dropdown-line);
  color: #fff;
}
.nav-sub li:last-child > .nav-row { border-bottom: 0; }
.nav-sub .nav-link {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 11px 12px 11px 18px;
  color: inherit;
  font-size: 14px;
  line-height: 1.4;
}
.nav-sub .nav-caret { width: 36px; height: 42px; color: inherit; }
.nav-sub .nav-row:hover,
.nav-sub .nav-item:hover > .nav-row,
.nav-sub .nav-item:focus-within > .nav-row,
.nav-sub .nav-item.is-active > .nav-row {
  background: var(--dropdown-hover);
  color: #F6E2B3;
}
.nav-sub .nav-label { max-width: none; }

.nav-level-2 > .nav-sub {
  top: 0;
  left: 100%;
  border-radius: 0 6px 6px 0;
  min-width: 280px;
}
.nav-sub.fly-left { left: auto; right: 100%; border-radius: 6px 0 0 6px; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: 6px;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(80, 56, 24, 0.18);
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.lang-btn.is-active,
.lang-btn:hover {
  background: #3E2A18;
  color: #fff;
  border-color: #3E2A18;
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 8, 0.35);
  z-index: 40;
}

/* ===== Inner page ===== */
.page-main { flex: 1; }
.page-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 72px;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--gold-deep); }
.page-article {
  background: var(--paper);
  border-radius: 16px;
  padding: 36px 40px;
  box-shadow: var(--shadow);
}
.page-article h1 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 30px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold-soft);
}
.page-body { font-size: 16px; color: var(--ink-soft); }
.page-body p { margin: 0 0 1em; }

.site-footer {
  margin-top: auto;
  background: #2B2118;
  color: #E8DCC8;
  padding: 28px 24px;
  text-align: center;
}
.footer-name { margin: 0 0 6px; font-weight: 600; letter-spacing: 0.08em; }
.footer-note { margin: 0; font-size: 12px; opacity: 0.75; }


@media (max-width: 1440px) {
  .brand-inner .brand-zh { font-size: 13px; }
  .brand-inner .brand-en { display: none; }
}
@media (max-width: 1360px) {
  .brand-inner .brand-text { display: none; }
}
/* ===== Responsive: keep 1280 usable ===== */
@media (max-width: 1279px) {
  .brand-inner .brand-text { display: none; }
  .nav-toggle { display: flex; }
  .lang-switch { order: 2; margin-left: 0; margin-right: 4px; }
  .nav-toggle { order: 3; }

  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: #FBF7F1;
    overflow-y: auto;
    z-index: 45;
    padding: 8px 0 40px;
    flex: none;
  }
  .main-nav.is-open { display: block; }
  .nav-backdrop.is-open { display: block; }

  .nav-root {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }
  .nav-level-1 > .nav-row {
    min-height: 48px;
    padding: 0;
    border-bottom: 1px solid #E8DCC8;
  }
  .nav-level-1 > .nav-row > .nav-link {
    justify-content: flex-start;
    min-height: 48px;
    padding: 12px 8px 12px 20px;
    font-size: 16px;
    text-align: left;
    flex: 1;
  }
  .nav-level-1 > .nav-row > .nav-link .nav-label { max-width: none; -webkit-line-clamp: unset; }
  .nav-level-1 > .nav-row > .nav-caret { width: 48px; height: 48px; }
  .nav-sub,
  .nav-level-2 > .nav-sub {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transform: none;
    display: none;
    min-width: 0;
    background: #3E2A18;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }
  .nav-item.is-open > .nav-sub {
    display: block;
    pointer-events: auto;
  }
  .nav-sub .nav-link { padding: 12px 8px 12px 32px; font-size: 15px; }
  .nav-level-3 > .nav-row > .nav-link { padding-left: 46px; }
  .chevron-down, .chevron-right { transform: rotate(45deg); }
  .nav-item.is-open > .nav-row > .nav-caret .nav-chevron { transform: rotate(225deg); }
  .nav-sub.fly-left { left: auto; right: auto; }

  .portal-header-inner { flex-wrap: wrap; padding: 12px 16px; }
  .portal-buttons { width: 100%; margin-left: 0; justify-content: flex-start; gap: 12px 16px; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-col-right { padding: 16px 16px 40px; background: transparent; }
  .banner-stack { grid-template-columns: 1fr; }
  .banner-card { min-height: 200px; }
  .brand-zh { white-space: normal; }
  .page-article { padding: 24px 20px; }
}

@media (min-width: 1280px) {
  /* Desktop hover menus only */
  .nav-toggle { display: none !important; }
}
html[lang="en"] .nav-level-1 > .nav-row {
  padding: 0 0 0 2px;
}
html[lang="en"] .nav-level-1 > .nav-row > .nav-link {
  font-size: 12px;
  padding: 6px 1px 6px 2px;
}
html[lang="en"] .nav-level-1 > .nav-row > .nav-link .nav-label {
  max-width: 9.2em;
  overflow-wrap: anywhere;
}
html[lang="en"] .nav-caret { width: 14px; }

/* 英文字較長：不再截取／省略，全部自動换行顯示 */
html[lang="en"] .portal-buttons { flex-wrap: wrap; justify-content: flex-end; gap: 8px 14px; }
html[lang="en"] .portal-btn {
  white-space: normal;
  line-height: 1.25;
  font-size: 14px;
  padding: 8px 22px 8px 14px;
  max-width: 200px;
}
html[lang="en"] .portal-btn-label,
html[lang="en"] .acc-label,
html[lang="en"] .link-title,
html[lang="en"] .banner-title,
html[lang="en"] .concept-title {
  overflow-wrap: anywhere;
  word-break: break-word;
}
html[lang="en"] .nav-level-1 > .nav-row > .nav-link {
  font-size: 11px;
  line-height: 1.15;
  padding: 4px 2px;
  white-space: normal;
}
html[lang="en"] .nav-level-1 > .nav-row > .nav-link .nav-label {
  display: block;
  max-width: none;
  -webkit-line-clamp: unset;
  overflow: visible;
  overflow-wrap: anywhere;
}
/* 品牌副標及大圖標題一律不省略、不單行截斷 */
html[lang="en"] .brand-zh,
html[lang="en"] .brand-en {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
html[lang="en"] .concept-title {
  overflow: visible;
  line-height: 1.25;
}

@media (max-width: 640px) {
  .brand-portal .brand-text { display: none; }
  .portal-btn { font-size: 14px; padding: 8px 22px 8px 14px; }
  .portal-btn::after { border-width: 0 0 14px 14px; }
  .banner-title { letter-spacing: 0.08em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 700px) {
  .banner-stack { grid-template-columns: 1fr; }
}
