/* 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;
}
/* ═══ v4 雜誌封面（呼應 v4 毛玻璃淺底） ═══ */
.ftr--v4 {
  background: linear-gradient(180deg, #e8eef4 0%, #f5f8fb 100%);
}
.ftr--v4 .ftr-v4__masthead {
  padding: 48px clamp(16px, 4vw, 40px) 32px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.ftr--v4 .ftr-v4__eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5c5c5c;
}
.ftr--v4 .ftr-v4__headline {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  color: #111111;
}
.ftr--v4 .ftr-v4__columns {
  display: grid;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px clamp(16px, 4vw, 40px) 40px;
}
@media screen and (min-width: 1025px) {
  .ftr--v4 .ftr-v4__columns {
    grid-template-columns: 0.8fr 1.4fr 1fr;
    align-items: start;
  }
}
.ftr--v4 .ftr-v4__col--cta {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}
.ftr--v4 .ftr-v4__rule {
  padding: 16px clamp(16px, 4vw, 40px) 24px;
  text-align: center;
  border-top: 1px dashed #c5c9d4;
}
