﻿/* 共用快速返回選單按鈕，三個活動皆可使用。 */
.tea2026-page .tea-menu-back {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid #d8dfc6;
  border-radius: 10px;
  background: #194d37;
  color: #fffef0;
  box-shadow: 0 4px 16px #194d3733;
  font: 700 16px/1.3 "Microsoft JhengHei", sans-serif;
  text-decoration: none;
  transition: background .18s, box-shadow .18s;
}
.tea2026-page .tea-menu-back:hover {
  background: #2c654a;
  color: #fffef0;
  box-shadow: 0 6px 20px #194d3740;
}
.tea2026-page .tea-menu-back:focus-visible {
  outline: 3px solid #b29948;
  outline-offset: 3px;
}
.tea2026-page .tea-menu-back > span:first-child {
  font-size: 23px;
  line-height: 1;
}
.tea2026-page #activity-menu {scroll-margin-top: 16px;}
/* 頁尾留出空間，避免固定按鈕遮住最後的文字。 */
.tea2026-page .tea-footer {padding-bottom: calc(90px + env(safe-area-inset-bottom));}
@media (max-width: 800px) {
  .tea2026-page .tea-menu-back {
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(10px + env(safe-area-inset-bottom));
    flex-direction: column;
    gap: 3px;
    min-height: 0;
    padding: 8px 10px;
    border-radius: 8px;
  }

  .tea2026-page .tea-menu-back > span:first-child {
    font-size: 22px;
  }

  .tea2026-page .tea-menu-back-label {
    font-size: 12px;
    line-height: 1.2;
  }
}
