/* Footer v1～v10：大版面結構差異 + 配色呼應 header vN */
.ftr {
  width: 100%;
  margin-top: auto;
  box-sizing: border-box;
}
/* ── 共用元件 ── */
.ftr-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-decoration: none;
  color: #111111;
}
.ftr-brand__img {
  display: block;
  height: auto;
  width: auto;
  max-width: 100%;
}
.ftr-brand__tagline {
  font-size: 12px;
  font-weight: 500;
  color: #5c5c5c;
}
.ftr-brand--tone-light {
  color: #fff;
}
.ftr-brand--tone-light .ftr-brand__tagline {
  color: rgba(255, 255, 255, 0.65);
}
.ftr-nav--stack .ftr-nav__label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5c5c5c;
}
.ftr-nav--stack .ftr-nav__list {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ftr-nav--stack .ftr-nav__link {
  display: block;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.ftr-nav--tiles .ftr-nav__tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ftr-nav--tiles .ftr-nav__tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 88px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f6f6f8;
  border: 1px solid #e8e8ec;
  font-size: 15px;
  font-weight: 700;
  color: #111111;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ftr-nav--tiles .ftr-nav__tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.ftr-nav--tiles .ftr-nav__tile.is-active {
  border-color: #ee2d2e;
  background: rgba(238, 45, 46, 0.08);
  color: #ee2d2e;
}
.ftr-nav--tiles .ftr-nav__tile-k {
  font-size: 11px;
  font-weight: 800;
  color: #5c5c5c;
  letter-spacing: 0.08em;
}
.ftr-nav:not(.ftr-nav--stack):not(.ftr-nav--tiles) .ftr-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ftr-nav:not(.ftr-nav--stack):not(.ftr-nav--tiles) .ftr-nav__link {
  font-size: 15px;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}
.ftr-nav:not(.ftr-nav--stack):not(.ftr-nav--tiles) .ftr-nav__link:hover,
.ftr-nav:not(.ftr-nav--stack):not(.ftr-nav--tiles) .ftr-nav__link.is-active {
  color: #ee2d2e;
}
.ftr-line-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.ftr-line-panel--stack {
  flex-direction: column;
  align-items: stretch;
}
.ftr-line-panel--wide .ftr-line-panel__cta .hdr-line {
  width: 100%;
  max-width: none;
}
.ftr-line-panel--compact {
  gap: 12px;
}
.ftr-line-panel--compact .ftr-line-panel__qr img {
  width: 88px;
  height: 88px;
}
.ftr-line-panel--cta-only .ftr-line-panel__cta {
  width: 100%;
}
.ftr-line-panel__qr {
  margin: 0;
  text-align: center;
}
.ftr-line-panel__qr img {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 12px;
  border: 4px solid #ffcb00;
  background: #fff;
}
.ftr-line-panel__qr figcaption {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #5c5c5c;
}
.ftr-line-panel__cta .hdr-line {
  max-width: 100%;
}
.ftr-copy {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #5c5c5c;
}
/* 預覽條 */
.theme-preview-stack .footer-preview-bar,
.footer-preview-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 8px 12px;
  background: #1e3a5f;
  color: #bfdbfe;
  font-size: 13px;
  border-bottom: 2px solid #60a5fa;
}
.footer-preview-bar__title {
  margin: 0;
  font-weight: 700;
  color: #fff;
}
.footer-preview-bar__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.footer-preview-bar__link {
  padding: 4px 10px;
  border-radius: 6px;
  background: #2d4a6f;
  color: #e0f2fe;
  text-decoration: none;
  font-weight: 600;
}
.footer-preview-bar__link.is-active {
  background: #60a5fa;
  color: #0f172a;
}
/* ═══ v8 Logo 舞台 + 時間軸（呼應 v8 置中） ═══ */
.ftr--v8 {
  padding: 48px clamp(16px, 4vw, 40px) 28px;
  background: #ffffff;
  text-align: center;
  border-top: 1px solid #e8e8ec;
}
.ftr--v8 .ftr-v8__logo-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  text-decoration: none;
  color: #111111;
}
.ftr--v8 .ftr-v8__logo-mark img {
  width: min(220px, 70vw);
  height: auto;
}
.ftr--v8 .ftr-v8__logo-tag {
  font-size: 16px;
  font-weight: 600;
  color: #5c5c5c;
}
.ftr--v8 .ftr-v8__timeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 4px;
  max-width: 720px;
  margin: 0 auto 28px;
}
.ftr--v8 .ftr-v8__stop {
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  color: #111111;
  text-decoration: none;
  border-radius: 8px;
}
.ftr--v8 .ftr-v8__stop.is-active {
  background: #ffcb00;
  box-shadow: 0 4px 12px rgba(255, 203, 0, 0.4);
}
.ftr--v8 .ftr-v8__rail {
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e8e8ec, transparent);
}
@media screen and (max-width: 1024px) {
  .ftr--v8 .ftr-v8__rail {
    display: none;
  }
}
.ftr--v8 .ftr-v8__action {
  max-width: 520px;
  margin: 0 auto;
}
.ftr--v8 .ftr-v8__copy {
  margin-top: 24px;
}
