/* ===================================================================
   前台行動版全螢幕覆蓋選單 & 側邊面板樣式
   移植自 Nuxt default.vue <style> 區塊
   =================================================================== */

/* ========== 全螢幕手機覆蓋選單 ========== */
.mobile-fullscreen-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 15, 28, 0.97);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

/* 關閉按鈕 */
.mobile-overlay-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}
.mobile-overlay-close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  transform: rotate(90deg);
}

/* 選單容器 */
.mobile-overlay-nav {
  width: 100%;
  max-width: 400px;
  padding: 0 32px;
}
.mobile-overlay-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-overlay-list > li {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-overlay-list > li:last-child {
  border-bottom: none;
}

/* 主選單連結 */
.mobile-overlay-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}
.mobile-overlay-link:hover,
.mobile-overlay-link:focus {
  color: #fff;
  padding-left: 8px;
  text-decoration: none;
}
.mobile-overlay-link.sub-active {
  color: #d4a853;
}

/* 次選單箭頭 */
.mobile-sub-arrow {
  display: flex;
  align-items: center;
  opacity: 0.4;
  transition: all 0.3s ease;
}
.mobile-overlay-link.sub-active .mobile-sub-arrow {
  opacity: 1;
  color: #d4a853;
  transform: rotate(90deg);
}

/* 次選單列表 */
.mobile-overlay-sub {
  list-style: none;
  padding: 0 0 12px 0;
  margin: 0;
}
.mobile-overlay-sub li {
  padding: 0;
}
.mobile-overlay-sub-link {
  display: block;
  padding: 10px 0 10px 20px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  position: relative;
  transition: all 0.25s ease;
}
.mobile-overlay-sub-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: rgba(255,255,255,0.2);
  transition: all 0.25s ease;
}
.mobile-overlay-sub-link:hover {
  color: #fff;
  padding-left: 28px;
  text-decoration: none;
}
.mobile-overlay-sub-link:hover::before {
  width: 12px;
  background: #d4a853;
}

/* 底部聯絡資訊 */
.mobile-overlay-footer {
  margin-top: 48px;
}
.mobile-overlay-divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin-bottom: 24px;
}
.mobile-overlay-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-overlay-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.mobile-overlay-contact-item:hover {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
}
.mobile-overlay-contact-item span {
  font-size: 14px;
  opacity: 0.6;
}

/* ===== 動畫 ===== */
/* Overlay 淡入/淡出（Alpine.js transition 使用） */
.mobile-overlay-enter-active {
  transition: opacity 0.35s ease;
}
.mobile-overlay-leave-active {
  transition: opacity 0.25s ease;
}
.mobile-overlay-enter-from,
.mobile-overlay-leave-to {
  opacity: 0;
}

/* 選單項目逐項淡入 */
.mobile-menu-item-enter-active {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu-item-leave-active {
  transition: all 0.2s ease;
}
.mobile-menu-item-enter-from {
  opacity: 0;
  transform: translateY(20px);
}
.mobile-menu-item-leave-to {
  opacity: 0;
  transform: translateY(-10px);
}

/* 次選單滑入 */
.mobile-sub-slide-enter-active {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-sub-slide-leave-active {
  transition: all 0.2s ease;
}
.mobile-sub-slide-enter-from {
  opacity: 0;
  max-height: 0;
  transform: translateY(-8px);
}
.mobile-sub-slide-enter-to {
  max-height: 300px;
}
.mobile-sub-slide-leave-to {
  opacity: 0;
  max-height: 0;
}

/* ========== 整合式側邊面板：標籤 + 面板一體（Phase 3/4 啟用） ========== */
.floating-panel-wrapper {
  position: fixed;
  top: 0;
  right: -420px;
  height: 100vh;
  z-index: 50;
  display: flex;
  align-items: stretch;
  transition: right 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
}
.floating-panel-wrapper.panel-open {
  right: 0;
  pointer-events: auto;
}
.floating-sidebar {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: center;
  flex-shrink: 0;
}
/* 右側面板內容（淺色系） */
.floating-panel-body {
  width: 420px;
  height: 100%;
  background: #ffffff;
  color: #374151;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0,0,0,0.1);
  font-size: 14px;
}
.floating-panel-body h3,
.floating-panel-body h4 {
  font-size: 16px;
}
.floating-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 68px;
  padding: 14px 0;
  background: #f8f9fa;
  color: #4b5563;
  border: none;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  border-left: 1px solid #d1d5db;
  border-right: none;
  border-radius: 10px 0 0 10px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: -3px 3px 12px rgba(0,0,0,0.08);
  clip-path: inset(-20px 0 -20px -20px);
}
.floating-tab:hover,
.floating-tab-active {
  background: #ffffff;
  box-shadow: -5px 5px 18px rgba(0,0,0,0.12);
}
.floating-tab-active {
  border-left: 2px solid #d97706;
  margin-right: -1px;
  position: relative;
  z-index: 2;
}
.floating-tab-active .floating-tab-icon {
  background: #fef3c7;
  border-color: #d97706;
}
.floating-tab-active .floating-tab-label {
  color: #1f2937;
}
.floating-tab-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  margin-bottom: 6px;
  transition: all 0.2s ease;
}
.floating-tab:hover .floating-tab-icon {
  background: #fef3c7;
  border-color: #d97706;
}
.floating-tab-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #6b7280;
  transition: color 0.2s ease;
}
.floating-tab:hover .floating-tab-label {
  color: #1f2937;
}
.floating-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 9px;
  padding: 0 4px;
  border: 2px solid #f8f9fa;
}
.floating-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid #f8f9fa;
}
