/* ═══════════════════════════════════════
   v1 母版
   ═══════════════════════════════════════ */
.hdr {
  position: sticky;
  top: 0;
  z-index: 98;
  width: 100%;
  font-family: inherit;
}
.hdr--v1 {
  background: #ffffff;
  border-bottom: 1px solid #e8e8ec;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
/* ── 公告條（promo 時 toolbar 不顯示 LINE，避免重複） ── */
.hdr__promo {
  display: flex;
  justify-content: center;
  padding: 10px 16px;
  background: #f6f6f8;
  border-bottom: 1px solid #e0e0e6;
}
.hdr__promo .hdr-line {
  width: 100%;
  max-width: 480px;
  background-color: #000;
  color: #ffcb00;
  border: 2px solid #111111;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.hdr__promo .hdr-line__icon {
  fill: #ffcb00;
}
.hdr__promo .hdr-line__id {
  color: #ffcb00;
}
.hdr__promo .hdr-line .line-text {
  color: inherit;
}
/* ── 殼層：滿屏；僅一級導覽 .hdr-nav 限寬居中 ── */
.hdr__shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.hdr__toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 8px 16px 6px;
  box-sizing: border-box;
}
.hdr__brand {
  flex: 0 1 auto;
  min-width: 0;
}
.hdr__actions {
  flex: 0 0 auto;
  margin-left: auto;
}
.hdr__primary {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
}
.hdr__scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 117;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
body.hdr-subnav-open {
  overflow: hidden;
}
.hdr--panel-open {
  z-index: 100;
}
/* ── Logo ── */
.hdr-logo {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: #111111;
}
.hdr-logo__img {
  display: block;
  height: 30px;
  width: auto;
  max-width: min(160px, 46vw);
}
.hdr-logo__tagline {
  font-size: 11px;
  font-weight: 600;
  color: #5c5c5c;
  line-height: 1.2;
}
.hdr-logo--tone-adaptive .hdr-logo__img--light {
  display: block;
}
.hdr-logo--tone-adaptive .hdr-logo__img--dark {
  display: none;
}
/* ── LINE（grid：icon 左跨行，右 slogan + id） ── */
@keyframes hdr-line-ticker {
  0% {
    transform: translateY(0);
  }
  5% {
    transform: translateY(-12px);
  }
  55% {
    transform: translateY(-12px);
  }
  60% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}
.hdr-line {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 8px;
  row-gap: 2px;
  min-height: 46px;
  padding: 8px 18px;
  border-radius: 99px;
  overflow: hidden;
  text-decoration: none;
  font-weight: 700;
  background-color: #000;
  color: #ffcb00;
  transition: transform 0.2s ease;
}
.hdr-line:hover {
  transform: scale(1.04);
}
.hdr-line__icon {
  grid-row: 1 / span 2;
  grid-column: 1;
  width: 28px;
  height: 28px;
  fill: #ffcb00;
  align-self: center;
}
.hdr-line__text-box {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  height: 12px;
  overflow: hidden;
  margin: 0;
}
.hdr-line__text-box .line-text {
  display: block;
  font-size: 11px;
  line-height: 12px;
  height: 12px;
  white-space: nowrap;
  color: inherit;
  animation: hdr-line-ticker 5s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hdr-line__text-box .line-text {
    animation: none;
  }
}
.hdr-line__id {
  grid-column: 2;
  grid-row: 2;
  font-size: 1.15em;
  line-height: 1.1;
  color: #ffcb00;
  white-space: nowrap;
}
.hdr-line--promo {
  max-width: 100%;
}
.hdr-line--on-dark {
  background-color: #ffffff;
  color: #111111;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.hdr-line--on-dark .hdr-line__icon {
  fill: #06c755;
}
.hdr-line--on-dark__id {
  color: #111111;
}
.hdr-line--on-dark .line-text {
  color: #5c5c5c;
}
.hdr-line--outline {
  background-color: #ffffff;
  color: #111111;
  border: 2px solid #111111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.hdr-line--outline .hdr-line__icon {
  fill: #06c755;
}
.hdr-line--outline__id {
  color: #111111;
}
.hdr-line--outline .line-text {
  color: #5c5c5c;
}
.hdr-line--outline:hover {
  background-color: #f6f6f8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.hdr__accent {
  height: 3px;
  background: linear-gradient(90deg, #ffcb00 0%, #ee2d2e 100%);
}
/* ── 一級導覽（唯一限寬 1200px 並居中） ── */
.hdr-nav {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  /* 二級：僅 is-open 顯示（桌面不靠 :hover，避免亂彈） */
}
.hdr-nav__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hdr-nav__item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  list-style: none;
}
.hdr-nav__link,
.hdr-nav__trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  padding: 10px 6px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-family: inherit;
  font-size: clamp(12px, 3.2vw, 15px);
  font-weight: 600;
  line-height: 1.2;
  color: #111111;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.hdr-nav__link:hover,
.hdr-nav__trigger:hover {
  color: #ee2d2e;
  background: #f6f6f8;
}
.hdr-nav__link.is-active,
.hdr-nav__trigger.is-active {
  color: #ee2d2e;
  font-weight: 700;
}
.hdr-nav__caret {
  width: 9px;
  height: 9px;
  fill: currentColor;
  flex-shrink: 0;
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}
.hdr-nav__item.is-open .hdr-nav__caret {
  transform: rotate(-90deg);
}
.hdr-nav__panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  max-width: min(92vw, 420px);
  margin-top: 0;
  padding: 14px 14px 12px;
  background-color: #ffffff;
  border: 1px solid #e0e0e6;
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.14);
  z-index: 120;
}
.hdr-nav__item--drop::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}
.hdr-nav__item--drop.is-open .hdr-nav__panel {
  display: block;
}
.hdr-nav__panel-title {
  display: none;
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #111111;
}
.hdr-nav__panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, max-content));
  justify-content: start;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: min(50vh, 360px);
  overflow-y: auto;
}
.hdr-nav__panel-link {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid #ececf0;
  background: #f6f6f8;
  font-size: 13px;
  font-weight: 500;
  color: #111111;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.hdr-nav__panel-link:hover,
.hdr-nav__panel-link.is-active {
  color: #ee2d2e;
  border-color: #ee2d2e;
  background: #fff5f5;
}
/* ── 桌面：v1 預設殼層 Logo | 導覽 | LINE 單行（勿套用到其他 layout） ── */
@media screen and (min-width: 1025px) {
  .hdr__shell:not(.hdr__shell--bar-split):not(.hdr__shell--stack):not(.hdr__shell--split):not(.hdr__shell--band):not(.hdr__shell--inset) {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 24px;
    min-height: 68px;
    padding: 4px 16px;
  }
  .hdr__shell:not(.hdr__shell--bar-split):not(.hdr__shell--stack):not(.hdr__shell--split):not(.hdr__shell--band):not(.hdr__shell--inset) .hdr__toolbar {
    display: contents;
  }
  .hdr__shell:not(.hdr__shell--bar-split):not(.hdr__shell--stack):not(.hdr__shell--split):not(.hdr__shell--band):not(.hdr__shell--inset) .hdr__brand {
    grid-column: 1;
    padding: 0;
  }
  .hdr__shell:not(.hdr__shell--bar-split):not(.hdr__shell--stack):not(.hdr__shell--split):not(.hdr__shell--band):not(.hdr__shell--inset) .hdr__primary {
    grid-column: 2;
    display: flex;
    justify-content: center;
    padding: 0;
    width: auto;
    min-width: 0;
  }
  .hdr__shell:not(.hdr__shell--bar-split):not(.hdr__shell--stack):not(.hdr__shell--split):not(.hdr__shell--band):not(.hdr__shell--inset) .hdr__actions {
    grid-column: 3;
    margin-left: 0;
  }
  .hdr__shell:not(.hdr__shell--bar-split):not(.hdr__shell--stack):not(.hdr__shell--split):not(.hdr__shell--band):not(.hdr__shell--inset) .hdr-nav__list {
    justify-content: center;
    gap: 8px;
  }
  .hdr__shell:not(.hdr__shell--bar-split):not(.hdr__shell--stack):not(.hdr__shell--split):not(.hdr__shell--band):not(.hdr__shell--inset) .hdr-nav__item {
    flex: 0 1 auto;
  }
  .hdr__shell:not(.hdr__shell--bar-split):not(.hdr__shell--stack):not(.hdr__shell--split):not(.hdr__shell--band):not(.hdr__shell--inset) .hdr-nav__link,
  .hdr__shell:not(.hdr__shell--bar-split):not(.hdr__shell--stack):not(.hdr__shell--split):not(.hdr__shell--band):not(.hdr__shell--inset) .hdr-nav__trigger {
    width: auto;
    padding: 10px 14px;
    font-size: 15px;
  }
  .hdr__shell:not(.hdr__shell--bar-split):not(.hdr__shell--stack):not(.hdr__shell--split):not(.hdr__shell--band):not(.hdr__shell--inset) .hdr-nav__panel {
    left: 0;
    transform: none;
  }
  .hdr__shell:not(.hdr__shell--bar-split):not(.hdr__shell--stack):not(.hdr__shell--split):not(.hdr__shell--band):not(.hdr__shell--inset) .hdr-nav__item--drop:last-child .hdr__shell:not(.hdr__shell--bar-split):not(.hdr__shell--stack):not(.hdr__shell--split):not(.hdr__shell--band):not(.hdr__shell--inset) .hdr-nav__panel,
  .hdr__shell:not(.hdr__shell--bar-split):not(.hdr__shell--stack):not(.hdr__shell--split):not(.hdr__shell--band):not(.hdr__shell--inset) .hdr-nav__item--drop:nth-last-child(2) .hdr__shell:not(.hdr__shell--bar-split):not(.hdr__shell--stack):not(.hdr__shell--split):not(.hdr__shell--band):not(.hdr__shell--inset) .hdr-nav__panel {
    left: auto;
    right: 0;
  }
  .hdr-logo__tagline {
    display: block;
  }
}
/* ── 手機：v1 預設 toolbar + 一級各一行，二級底部 sheet ── */
@media screen and (max-width: 1024px) {
  .hdr__shell:not(.hdr__shell--bar-split):not(.hdr__shell--stack):not(.hdr__shell--split):not(.hdr__shell--band) {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 0;
  }
  .hdr__shell:not(.hdr__shell--bar-split):not(.hdr__shell--stack):not(.hdr__shell--split):not(.hdr__shell--band) .hdr__toolbar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .hdr__shell:not(.hdr__shell--bar-split):not(.hdr__shell--stack):not(.hdr__shell--split):not(.hdr__shell--band) .hdr__primary {
    padding-left: 12px;
    padding-right: 12px;
  }
  .hdr__shell:not(.hdr__shell--bar-split):not(.hdr__shell--stack):not(.hdr__shell--split):not(.hdr__shell--band) .hdr__toolbar {
    flex-wrap: nowrap;
    padding: 8px 0 6px;
  }
  .hdr__shell:not(.hdr__shell--bar-split):not(.hdr__shell--stack):not(.hdr__shell--split):not(.hdr__shell--band) .hdr__primary {
    display: flex;
    align-items: center;
    padding: 0;
    border-top: 1px solid #ececf0;
  }
  .hdr-logo__img {
    height: 26px;
    max-width: min(140px, 40vw);
  }
  .hdr-logo__tagline {
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .hdr-nav {
    width: 100%;
  }
  .hdr-nav__list {
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    width: 100%;
    height: 44px;
    margin: 0;
  }
  .hdr-nav__item {
    display: flex;
    align-items: center;
    height: 100%;
  }
  .hdr-nav__link,
  .hdr-nav__trigger {
    height: 100%;
    min-height: 0;
    padding: 0 4px;
    line-height: 1;
    box-sizing: border-box;
  }
  .hdr-nav__panel-title {
    display: block;
  }
  .hdr-nav__panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    transform: none;
    display: block;
    visibility: hidden;
    pointer-events: none;
    min-width: 0;
    max-width: none;
    max-height: min(70vh, 460px);
    margin: 0;
    padding: 10px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    border-radius: 16px 16px 0 0;
    border-bottom: 0;
    box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(105%);
    transition: transform 0.28s ease, visibility 0.28s;
  }
  .hdr-nav__panel::after {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    margin: 2px auto 12px;
    border-radius: 99px;
    background: #d4d4d8;
  }
  .hdr-nav__item--drop::before {
    display: none;
  }
  .hdr-nav__item--drop.is-open .hdr-nav__panel {
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .hdr-nav__panel-grid {
    grid-template-columns: repeat(2, minmax(max-content, 1fr));
    justify-content: stretch;
    max-height: none;
  }
  .hdr-nav__panel-link {
    padding: 11px 12px;
    overflow: visible;
    text-overflow: clip;
  }
  .hdr__scrim:not([hidden]) {
    display: block;
  }
  .hdr-line {
    min-height: 42px;
    padding: 6px 14px;
  }
  .hdr__shell--bar-split {
    padding: 10px 12px 0;
  }
  .hdr__shell--bar-split .hdr__primary {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .hdr__shell--bar-split .hdr-nav__list {
    height: 44px;
  }
  .hdr__shell--band .hdr__toolbar {
    padding: 8px 12px 6px;
  }
  .hdr__shell--stack {
    padding: 0 12px;
  }
  .hdr__frame {
    margin: 6px 8px 4px;
  }
  .hdr--v4 .hdr__glass .hdr__shell--inset {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 8px 12px;
  }
  .hdr--v4 .hdr__glass .hdr__primary {
    border-top: 1px solid #ececf0;
  }
  /* 手機二級：居中彈層（v5） */
  .hdr[data-hdr-mobile-panel="modal"] .hdr-nav__panel {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    width: min(92vw, 400px);
    max-height: min(75vh, 480px);
    border-radius: 16px;
    transform: translate(-50%, -50%) scale(0.96);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.28s;
  }
  .hdr[data-hdr-mobile-panel="modal"] .hdr-nav__panel::after {
    display: none;
  }
  .hdr[data-hdr-mobile-panel="modal"] .hdr-nav__item--drop.is-open .hdr-nav__panel {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  /* 手機二級：錨在按鈕下（v9） */
  .hdr[data-hdr-mobile-panel="anchor"] .hdr-nav__panel {
    position: absolute;
    left: 0;
    right: auto;
    bottom: auto;
    top: calc(100% + 4px);
    width: min(92vw, 340px);
    max-height: min(60vh, 380px);
    border-radius: 12px;
    transform: none;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }
  .hdr[data-hdr-mobile-panel="anchor"] .hdr-nav__item--drop:last-child .hdr-nav__panel,
  .hdr[data-hdr-mobile-panel="anchor"] .hdr-nav__item--drop:nth-last-child(2) .hdr-nav__panel {
    left: auto;
    right: 0;
  }
  .hdr[data-hdr-mobile-panel="anchor"] .hdr-nav__item--drop.is-open .hdr-nav__panel {
    opacity: 1;
    transform: none;
    visibility: visible;
  }
  .hdr[data-hdr-mobile-panel="anchor"] .hdr-nav__panel-grid {
    grid-template-columns: repeat(2, minmax(max-content, 1fr));
  }
}
/* ═══════════════════════════════════════
   佈局殼層（bar-split / band / framed / stack / split / glass / aside）
   ═══════════════════════════════════════ */
/* v2：Logo+LINE 上排，導覽全寬下排 */
.hdr__shell--bar-split {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  grid-template-areas: "brand . actions" "nav nav nav";
  align-items: center;
  column-gap: 12px;
  row-gap: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px 16px 0;
  box-sizing: border-box;
}
.hdr__shell--bar-split .hdr__brand {
  grid-area: brand;
  min-width: 0;
}
.hdr__shell--bar-split .hdr__actions {
  grid-area: actions;
  margin-left: 0;
}
.hdr__shell--bar-split .hdr__primary {
  grid-area: nav;
  width: 100%;
  padding: 0 16px;
  border-top: 1px solid #e8e8ec;
  background: #ffffff;
}
.hdr__shell--bar-split .hdr-nav__list {
  justify-content: space-between;
}
/* v7：導覽獨立色帶 */
.hdr__shell--band {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  padding: 0;
}
.hdr__shell--band .hdr__toolbar {
  padding: 8px 16px 6px;
}
.hdr__shell--band .hdr__nav-band {
  width: 100%;
  padding: 8px 12px 10px;
  background: linear-gradient(180deg, #fff5f5 0%, #fef2f2 100%);
  border-top: 1px solid #fecaca;
  border-bottom: 2px solid #ee2d2e;
  box-sizing: border-box;
}
.hdr__shell--band .hdr__primary {
  width: 100%;
  border-top: 0;
}
/* v5：外框 */
.hdr__frame {
  margin: 8px 12px 6px;
  padding: 4px;
  border: 3px solid #111111;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.12);
}
.hdr__frame .hdr__shell {
  padding: 0 8px;
}
.hdr__shell--stack {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
}
.hdr__toolbar--logo,
.hdr__toolbar--line {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 0;
}
.hdr__toolbar--line {
  padding-top: 0;
  padding-bottom: 8px;
}
.hdr__actions--solo {
  margin-left: 0;
}
.hdr__shell--split .hdr__toolbar--split {
  background: #f6f6f8;
  margin: 0;
  padding: 10px 16px;
  border-bottom: 1px solid #e0e0e6;
}
.hdr__glass {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 16px;
  box-sizing: border-box;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.14);
}
.hdr__shell--inset {
  max-width: none;
  padding-left: 12px;
  padding-right: 12px;
}
.hdr__toolbar--solo {
  justify-content: center;
  min-height: 48px;
  padding: 8px 0;
}
@media screen and (min-width: 1025px) {
  .hdr__shell--bar-split {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    grid-template-areas: "brand nav actions";
    column-gap: 28px;
    min-height: 76px;
    padding: 0 16px;
    background: #ffffff;
  }
  .hdr__shell--bar-split .hdr__primary {
    border-top: 0;
    background: transparent;
  }
  .hdr__shell--bar-split .hdr-nav__list {
    justify-content: center;
    gap: 8px;
  }
  .hdr__shell--bar-split .hdr-nav__item {
    flex: 0 1 auto;
  }
  .hdr__shell--bar-split .hdr-nav__link,
  .hdr__shell--bar-split .hdr-nav__trigger {
    width: auto;
    padding: 10px 14px;
    font-size: 15px;
  }
  .hdr__shell--band .hdr__toolbar {
    display: flex;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: 16px;
    padding-right: 16px;
  }
  .hdr__shell--band .hdr__nav-band {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
  .hdr__shell--band .hdr-nav__list {
    justify-content: center;
    gap: 10px;
  }
  .hdr__shell--band .hdr-nav__item {
    flex: 0 1 auto;
  }
  .hdr--v2.hdr--v2 .hdr-logo--tone-adaptive .hdr-logo__img--light {
    display: none;
  }
  .hdr--v2.hdr--v2 .hdr-logo--tone-adaptive .hdr-logo__img--dark {
    display: block;
  }
  .hdr--v2.hdr--v2 .hdr-logo--tone-adaptive .hdr-logo__tagline {
    color: #5c5c5c;
  }
  .hdr__shell--stack {
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .hdr__shell--stack .hdr__toolbar--logo,
  .hdr__shell--stack .hdr__toolbar--line {
    width: 100%;
  }
  .hdr__shell--stack .hdr__primary {
    width: 100%;
    border-top: 1px solid #ececf0;
    padding-top: 4px;
  }
  .hdr__shell--split {
    display: block;
    padding-top: 0;
    padding-bottom: 0;
  }
  .hdr__shell--split .hdr__toolbar--split {
    margin: 0;
    border-radius: 0;
  }
  .hdr__shell--split .hdr__primary {
    min-height: 68px;
    display: flex;
    align-items: center;
  }
  .hdr--v4 .hdr__glass .hdr__shell {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 20px;
    min-height: 56px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .hdr--v4 .hdr__glass .hdr__toolbar {
    display: contents;
  }
  .hdr--v4 .hdr__glass .hdr__brand {
    grid-column: 1;
  }
  .hdr--v4 .hdr__glass .hdr__primary {
    grid-column: 2;
  }
  .hdr--v4 .hdr__glass .hdr__actions {
    grid-column: 3;
  }
}
/* ── 預覽條 ── */
.header-preview-bar {
  position: sticky;
  top: 0;
  z-index: 201;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 8px 12px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 13px;
  border-bottom: 2px solid #ee2d2e;
}
.theme-preview-stack .header-preview-bar {
  position: relative;
  top: auto;
  z-index: auto;
}
.header-preview-bar__title {
  margin: 0;
  font-weight: 700;
  color: #fff;
}
.header-preview-bar__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.header-preview-bar__link {
  padding: 4px 10px;
  border-radius: 6px;
  background: #1e293b;
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
}
.header-preview-bar__link.is-active {
  background: #ee2d2e;
  color: #fff;
}
.header-preview-bar__hint {
  font-size: 12px;
  color: #94a3b8;
}
.hdr--v3 {
  background: #ffffff;
  border-bottom: 0;
}
.hdr--v3 .hdr__shell--split .hdr__toolbar--split {
  background: #e8eaef;
  border-bottom: 2px solid #c5c9d4;
  margin: 0;
  padding: 12px 20px;
}
.hdr--v3 .hdr__shell--split .hdr__primary {
  background: #ffffff;
  min-height: 52px;
  display: flex;
  align-items: center;
}
.hdr--v3 .hdr-nav__link,
.hdr--v3 .hdr-nav__trigger {
  text-transform: none;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
}
.hdr--v3 .hdr-nav__link:hover,
.hdr--v3 .hdr-nav__trigger:hover,
.hdr--v3 .hdr-nav__link.is-active,
.hdr--v3 .hdr-nav__trigger.is-active {
  border-bottom-color: #ee2d2e;
  background: transparent;
  color: #ee2d2e;
}
@media screen and (min-width: 1025px) {
  .hdr--v3 .hdr__shell--split {
    display: block;
    padding: 0;
  }
  .hdr--v3 .hdr-nav__list {
    justify-content: center;
    gap: 24px;
  }
}
