/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

:root {
  --primary-color: #CCFF00;
  /* 匹克球亮螢光黃綠 */
  --secondary-color: #1A252C;
  /* 深灰藍/基調黑 */
  --accent-color: #E6B800;
  /* 金黃點綴 */
  --bg-light: #F8F9FA;
  --text-dark: #2C3E50;
  --text-light: #FFFFFF;
  --gray-muted: #7F8C8D;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Helvetica Neue', Arial, 'Noto Sans TC', sans-serif;
  color: var(--text-dark);
  background-color: #FFFFFF;
  overflow-x: hidden;
  line-height: 1.6;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}
img {
  width: 100%;
  height: auto;
  display: block;
}
/* UI 組件 */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}
.btn-primary {
  background-color: var(--primary-color);
  color: #000;
}
.btn-primary:hover {
  background-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-light);
}
.btn-secondary:hover {
  background-color: var(--primary-color);
  color: #000;
}
.btn-text {
  font-weight: 600;
  color: var(--secondary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 2px;
}
.btn-text:hover {
  color: var(--accent-color);
  padding-left: 5px;
}
.section {
  padding: 80px 0;
}
.bg-light {
  background-color: var(--bg-light);
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  border-left: 5px solid var(--primary-color);
  padding-left: 15px;
}
.section-header h2 {
  font-size: 2rem;
  color: var(--secondary-color);
}
.more-link {
    font-weight: 600;
    color: var(--gray-muted);
    
    /* ─── 新增：圓角線框與基礎外觀 ─── */
    display: inline-flex;
    align-items: center;
    gap: 8px;                      /* 文字與箭頭圖標的間距 */
    padding: 6px 18px;             /* 上下與左右內襯，調整按鈕大小 */
    border: 2px solid #EAEAEA;     /* 預設的精緻淺灰線框 */
    border-radius: 20px;           /* 導圓角（膠囊狀） */
    background-color: transparent; /* 預設背景透明 */
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;     /* 讓 hover 效果平滑轉變 */
}

/* ─── 新增：Hover 滑過後的動態特效 ─── */
.more-link:hover {
    color: #11181E;                /* 滑過後文字變深色（或用 var(--secondary-color)） */
    background-color: #CCFF00;     /* 滑過後填滿滿版底色（你的匹克球主色 var(--primary-color)） */
    border-color: #CCFF00;         /* 線框顏色同步轉變，消除突兀邊界 */
    transform: translateY(-2px);   /* 微微向上懸浮，增加動態操控感 */
    box-shadow: 0 4px 12px rgba(204, 255, 0, 0.2); /* 淡淡的主色發光陰影 */
}

/* 如果你在 HTML 有放箭頭圖標，滑過時讓箭頭往右微動，細節感滿分 */
.more-link:hover i {
    transform: translateX(3px);
    transition: transform 0.3s ease;
}
/* ==========================================================================
   HEADER & TOP BAR
   ========================================================================== */

.top-bar {
  background-color: #11181E;
  color: #A0AAB2;
  font-size: 0.85rem;
  height: 40px;
  line-height: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* 文字上下輪播機 */

.news-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}
.news-ticker i {
  color: var(--primary-color);
}
.ticker-wrapper {
  height: 40px;
  overflow: hidden;
}
.ticker-list {
  list-style: none;
  animation: tickerUp 9s infinite;
}
.ticker-list li {
  height: 40px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
@keyframes tickerUp {
  0%, 30% {
    transform: translateY(0);
  }
  33%, 63% {
    transform: translateY(-40px);
  }
  66%, 96% {
    transform: translateY(-80px);
  }
  100% {
    transform: translateY(0);
  }
}
.top-meta {
  display: flex;
  gap: 20px;
}
.auth-links a {
  margin-left: 15px;
}
.auth-links a:hover {
  color: var(--text-light);
}
.lang-selector select {
  background: transparent;
  color: #A0AAB2;
  border: none;
  outline: none;
  cursor: pointer;
}
/* 主要導航 (含隨滾輪滑動黏性效果 Fixed) */

.main-header {
  background-color: rgba(26, 37, 44, 0.95);
  color: var(--text-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
/* 當頁面滾動時，調整 Header 高度或不透明度 */

.main-header.scrolled {
  background-color: rgba(17, 24, 30, 0.98);
  padding: 5px 0;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
}
.logo i {
  color: var(--primary-color);
}
.logo {
    display: flex;
    align-items: center;    /* 讓圖片與文字垂直居中對齊 */
    text-decoration: none;  /* 移除超連結底線 */
    gap: 10px;              /* 圖片與文字之間的距離 */
}

.logoimg img {
    height: 65px;           /* 限制 Logo 圖片高度，避免圖片太大撐開導覽列 */
    width: auto;
    display: block;
}
.nav-list {
  display: flex;
  list-style: none;
  gap: 5px;
}
.nav-list>li {
  position: relative;
}
.nav-list>li>a {
  display: block;
  padding: 30px 18px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.5px;
}
.nav-list>li:hover>a {
  color: var(--primary-color);
}
/* 下拉選單樣式設計 */

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #11181E;
  width: 220px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-top: 3px solid var(--primary-color);
}
.dropdown li a {
  display: block;
  padding: 14px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: #CCCCCC;
}
.dropdown li a:hover {
  background-color: rgba(204, 255, 0, 0.1);
  color: var(--primary-color);
  padding-left: 25px;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-toggle, .mobile-close {
  display: none;
}
/* =================================
   HERO VIDEO & IMAGE SLIDER
   =================================*/




/* ====內容======================================================================*/

/* ==========================================================================
   1. 基礎設定與變數 (前綴 contact- 確保絕不衝突)
   ========================================================================== */
:root {
  --contact-bg: #ffffff;
  --contact-text-dark: #333333;
  --contact-text-muted: #888888;
  --contact-border: #cccccc;
  --contact-required-red: #d93838;
  
  /* 原圖高質感莫蘭迪藍金色調 */
  --contact-primary-blue: #5b7a8c; 
  --contact-primary-hover: #486273;
  --contact-gold-text: #bca280;
  
  --contact-radius-sm: 4px;
  --contact-transition: all 0.25s ease-in-out;
}

.contact-header {
  margin-bottom: 40px;
}

.contact-header__title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
  padding-left: 20px;
  color: var(--news-text-black);
}

.contact-header__title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 36px;
  background-color: var(--news-accent-lime);
  border-radius: 2px;
}
.contact-header__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 36px;
    background-color: #c8e600;
    border-radius: 2px;
}

/* ==========================================================================
   2. 麵包屑與主要排版架構
   ========================================================================== */
.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--contact-bg);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.contact-breadcrumb {
  font-size: 14px;
  color: var(--contact-text-dark);
  margin-bottom: 35px;
  border-bottom: 1px solid #eeeeee;
  padding-bottom: 15px;
}

.contact-breadcrumb__link {
  color: var(--contact-text-dark);
  text-decoration: none;
  transition: var(--contact-transition);
}

.contact-breadcrumb__link:hover {
  color: var(--contact-primary-blue);
}

.contact-breadcrumb__separator {
  margin: 0 6px;
  color: var(--contact-text-muted);
}

.contact-breadcrumb__current {
  font-weight: 500;
}

/* 雙欄主架構 */
.contact-wrapper {
  display: table;
  width: 100%;
}

.contact-main {
  display: table-cell;
  width: 68%;
  padding-right: 5%;
}

.contact-sidebar {
  display: table-cell;
  width: 32%;
  border-left: 1px solid #eeeeee;
  padding-left: 5%;
  vertical-align: top;
}

/* ==========================================================================
   3. 表單欄位元件與客製化美化
   ========================================================================== */
.contact-form__row {
  display: table;
  width: 100%;
  table-layout: fixed;
  margin-bottom: 5px;
}

.contact-form__group {
  display: table-cell;
  padding-right: 15px;
  padding-bottom: 18px;
  vertical-align: top;
}

.contact-form__row .contact-form__group:last-child {
  padding-right: 0;
}

.contact-form__group--full {
  display: block;
  width: 100%;
  padding-right: 0;
}

/* 標籤樣式 */
.contact-label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 10px;
  color: #333;
}

.contact-label--required::before {
  content: '* ';
  color: var(--contact-required-red);
  font-weight: bold;
}

.contact-label__inline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.contact-label__inline-row .contact-label {
  margin-bottom: 0;
}

/* 輸入框主體樣式 */
.contact-input, .contact-select, .contact-textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--contact-border);
  border-radius: var(--contact-radius-sm);
  background-color: #fff;
  outline: none;
  transition: var(--contact-transition);
  color: var(--contact-text-dark);
}

.contact-input:focus, .contact-select:focus, .contact-textarea:focus {
  border-color: var(--contact-primary-blue);
  box-shadow: 0 0 0 3px rgba(91, 122, 140, 0.12);
}

/* 錯誤提示外觀 */
.contact-input--error, .contact-select--error, .contact-textarea--error {
  border-color: var(--contact-required-red) !important;
  background-color: #fffafb;
}

.contact-textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-help-text {
  display: block;
  font-size: 12px;
  color: var(--contact-text-muted);
  margin-top: 6px;
}

.contact-error-message {
  font-size: 12px;
  color: var(--contact-required-red);
  margin-top: 5px;
  min-height: 16px;
  font-weight: 500;
}

/* 客製化 Select 下拉箭頭升級 */
.contact-select__wrapper {
  position: relative;
  width: 100%;
}

.contact-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 35px;
}

.contact-select__wrapper::after {
  content: '▼';
  font-size: 10px;
  color: #888;
  position: absolute;
  right: 15px;
  top: 15px;
  pointer-events: none;
}

/* ==========================================================================
   4. 客製化單選框 (Radio 美化)
   ========================================================================== */
.contact-radio__group {
  display: flex;
  gap: 15px;
}

.contact-radio__label {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  font-size: 14px;
}

.contact-radio__label input {
  position: absolute;
  opacity: 0;
}

.contact-radio__custom {
  width: 16px;
  height: 16px;
  border: 1px solid var(--contact-border);
  border-radius: 50%;
  margin-right: 6px;
  display: inline-block;
  position: relative;
  transition: var(--contact-transition);
}

.contact-radio__label input:checked ~ .contact-radio__custom {
  border-color: var(--contact-primary-blue);
}

.contact-radio__custom::after {
  content: '';
  position: absolute;
  display: none;
  top: 4px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--contact-primary-blue);
}

.contact-radio__label input:checked ~ .contact-radio__custom::after {
  display: block;
}

/* ==========================================================================
   5. 側邊店家資訊設計
   ========================================================================== */
.contact-info__block {
  margin-bottom: 40px;
}

.contact-info__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: #111;
}

.contact-info__text {
  font-size: 14px;
  color: #444;
  margin-bottom: 8px;
}

.contact-info__link {
  color: var(--contact-gold-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--contact-transition);
}

.contact-info__link:hover {
  border-bottom-color: var(--contact-gold-text);
}

.contact-info__block--coming .contact-info__title {
  color: #222;
}

.contact-info__status {
  font-size: 14px;
  color: var(--contact-text-muted);
}

/* ==========================================================================
   6. 帶箭頭高質感送出按鈕
   ========================================================================== */
.contact-form__actions {
  margin-top: 10px;
}

.contact-btn-submit {
  background-color: var(--contact-primary-blue);
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--contact-radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 30px; /* 拉開字與箭頭圓圈的精緻感距離 */
  transition: var(--contact-transition);
  letter-spacing: 1px;
}

.contact-btn-submit:hover {
  background-color: var(--contact-primary-hover);
}

.contact-btn-submit__icon {
  background-color: rgba(255, 255, 255, 0.25);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  transition: var(--contact-transition);
}

.contact-btn-submit:hover .contact-btn-submit__icon {
  transform: translateX(2px) translateY(-2px);
  background-color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   7. RWD 斷點最佳化排版 (支援手機與平板)
   ========================================================================== */
@media (max-width: 992px) {
  /* 平板以下：雙欄改上下堆疊 */
  .contact-wrapper {
    display: block;
  }
  .contact-main {
    display: block;
    width: 100%;
    padding-right: 0;
    margin-bottom: 50px;
  }
  .contact-sidebar {
    display: block;
    width: 100%;
    border-left: none;
    border-top: 1px solid #eeeeee;
    padding-left: 0;
    padding-top: 40px;
  }
}

@media (max-width: 576px) {
  /* 手機規格優化 */
  .contact-container {
    padding: 15px;
  }
  .contact-form__row {
    display: block;
  }
  .contact-form__group {
    display: block;
    width: 100%;
    padding-right: 0;
  }
  .contact-btn-submit {
    width: 100%;
    justify-content: space-between; /* 手機版拉滿且分居兩側 */
  }
}

/*浮動聯絡工具列 */
/* 自訂變數 */
:root {
  --color-line: #06C755;
  --color-fb: #0084FF;
  --color-phone: #FF3B30;
  --color-top: #333333;
  --btn-size: 50px;
  --transition-speed: 0.3s;
}

/* 容器定位 */
.floating-contact-wrapper {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.contact-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 行動端切換按鈕（預設隱藏） */
.contact-toggle {
  display: none;
  width: var(--btn-size);
  height: var(--btn-size);
  border-radius: 50%;
  background: #111;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  align-items: center;
  justify-content: center;
}

.contact-toggle .icon-close {
  display: none;
}

/* 按鈕基礎樣式 */
.contact-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--btn-size);
  height: var(--btn-size);
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  outline: none;
  background-color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-speed) cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow var(--transition-speed) ease,
              background-color var(--transition-speed) ease;
}

/* 各平臺主題色 */
.contact-btn.line { background-color: var(--color-line); }
.contact-btn.fb { background-color: var(--color-fb); }
.contact-btn.phone { background-color: var(--color-phone); }
.contact-btn.top { background-color: var(--color-top); }

/* Hover 互動動畫 */
.contact-btn:hover {
  transform: scale(1.12) translateX(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.contact-btn:active {
  transform: scale(0.95);
}

/* Tooltip 提示文字 */
.tooltip {
  position: absolute;
  right: calc(100% + 12px);
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: opacity var(--transition-speed) ease,
              transform var(--transition-speed) ease,
              visibility var(--transition-speed) ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Tooltip 小箭頭 */
.tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(18, 18, 18, 0.85);
}

.contact-btn:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* RWD 響應式佈局 (768px 以下) */
@media (max-width: 768px) {
  .floating-contact-wrapper {
    top: auto;
    bottom: 90px;
    right: 17px;
    transform: none;
  }

  .contact-toggle {
    display: flex;
    position: relative;
    z-index: 2;
  }

  .contact-menu {
    position: absolute;
    bottom: 0;
    right: 0;
    margin-bottom: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  /* 展開狀態 */
  .floating-contact-wrapper.active .contact-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-65px) scale(1);
  }

  .floating-contact-wrapper.active .icon-chat { display: none; }
  .floating-contact-wrapper.active .icon-close { display: block; }

  /* 行動端隱藏 Tooltip */
  .tooltip {
    display: none;
  }
}

/* ====內容======================================================================*/






/* =================================
   商品卡片基礎樣式與滑入特效 (Hover Effects)
   =================================*/

/* 1. 卡片主體：設定預設轉場動畫 */
.product-card {
    background-color: #ffffff;
    border: 1px solid #EAEAEA;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* 核心：讓所有屬性改變時都有絲滑的 0.4 秒轉場 */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s ease;
}

/* 2. 圖片容器：防止圖片放大時溢出邊框 */
.prod-img {
    background-color: #fcfcfc;
    padding: 20px;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* 超出範圍自動隱藏 */
}

/* 3. 圖片主體：設定轉場動畫 */
.prod-img img {
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

/* 4. 前往詳情按鈕：預設基礎外觀 */
.btn-shop {
    display: block;
    background-color: var(--secondary-color, #1A252C);
    color: #ffffff;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* A. 卡片本體：微幅上浮、陰影變立體、邊框變色 */
.product-card:hover {
    transform: translateY(-8px); /* 向上浮動 8px */
    border-color: var(--primary-color, #CCFF00); /* 邊框亮起 */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); /* 高級感深邃陰影 */
}

/* B. 內部圖片：微微放大 5% 且讓顏色更鮮明 */
.product-card:hover .prod-img img {
    transform: scale(1.05);
    filter: brightness(1.05); /* 稍微提升亮度 */
}

/* C. 底部按鈕：隨著滑入卡片同步變色，不需等滑鼠精準瞄準按鈕 */
.product-card:hover .btn-shop {
    background-color: var(--primary-color, #CCFF00);
    color: #11181E; /* 字體轉為深色 */
    box-shadow: 0 4px 12px rgba(204, 255, 0, 0.2);
}

/* 微調包覆加入購物車按鈕的容器，給它一點內襯間距 */
.prod-action {
    padding: 0 20px 20px 20px;
}
.prod-img {
  background-color: #fcfcfc;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}
.prod-img img {
  max-height: 100%;
  object-fit: contain;
}
.prod-details {
  padding: 20px;
  text-align: center;
}
.prod-details h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.price {
  color: #E74C3C;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 15px;
}
.btn-shop {
  display: block;
  background-color: var(--secondary-color);
  color: #fff;
  padding: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  text-align: center;
}
.btn-shop:hover {
  background-color: var(--primary-color);
  color: #000;
}
/* 5. 中間橫向滿版輪播圖 (高300-400px) */

.mid-banner-slider {
  height: 350px;
  position: relative;
  overflow: hidden;
}
/* ==========================================================================
   主 Banner 輪播長條切換按鈕
   ========================================================================== */
.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2); /* 微微的深色襯底，確保亮色圖也看得清 */
    padding: 8px 15px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.dot {
    width: 28px;               /* 長條寬度 */
    height: 6px;               /* 長條高度 */
    background-color: rgba(255, 255, 255, 0.4); /* 未選中時的淺灰白半透明 */
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

/* 懸停時稍微變亮 */
.dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

/* 當前點選/啟用狀態 */
.dot.active {
    background-color: #FFFFFF; /* 純白亮色 */
    width: 35px;               /* 啟用時稍微拉長，增加動態設計感 */
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}
.mid-track {
  height: 100%;
  width: 100%;
  position: relative;
}
.mid-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mid-slide.active {
  opacity: 1;
}
.mid-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.mid-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}
.mid-content h3 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 1px;
}
/* ==========================================================================
   FOOTER
   ========================================================================== */

.main-footer {
  background-color: #11181E;
  color: #CBD5E1;
  padding: 70px 0 0 0;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
}
.main-footer h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}
.main-footer h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}
.footer-about p {
  margin-bottom: 20px;
  line-height: 1.7;
  color: #94A3B8;
}
.footer-about .btn-text {
  color: #fff;
}
/* 商城小圖 4x2 與點擊效果 */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.gallery-item {
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-smooth);
}
.gallery-item:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
}
.gallery-item.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
}
.gallery-toast {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--primary-color);
  min-height: 1.2em;
}
/* 聯絡與社群 */

.contact-info {
  list-style: none;
  margin-bottom: 25px;
}
.contact-info li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-info i {
  color: var(--primary-color);
}
.social-icons {
  display: flex;
  gap: 15px;
}
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #1E293B;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 1.1rem;
}
.social-btn:hover {
  transform: translateY(-3px);
}
.social-btn.facebook:hover {
  background-color: #1877F2;
}
.social-btn.instagram:hover {
  background-color: #E1306C;
}
.social-btn.line:hover {
  background-color: #06C755;
}
.footer-bottom {
  background-color: #000;
  padding: 25px 0;
  text-align: center;
  font-size: 0.8rem;
  color: #64748B;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}
/* ==========================================================================
   SCROLL REVEAL ANIMATION (頁面滾輪特效)
   ========================================================================== */

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
/* ==========================================================================
   RESPONSIVE DESIGN (RWD 斷點設定)
   ========================================================================== */

@media (max-width: 1024px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(26, 37, 44, 0.98);
    /* 黑灰色滿版背景 */
    z-index: 2000;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 100px 40px;
    overflow-y: auto;
  }
  .nav-menu.active {
    right: 0;
  }
  .nav-list {
    flex-direction: column;
    gap: 20px;
  }
  .nav-list>li>a {
    padding: 10px 0;
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .dropdown {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border-left: 2px solid var(--primary-color);
    border-top: none;
    margin-top: 10px;
    display: none;
    /* 透過 JS 摺疊控制 */
  }
  .has-dropdown.open .dropdown {
    display: block;
  }
  .mobile-toggle {
    display: block;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
  }
  .mobile-close {
    display: block;
    position: absolute;
    top: 25px;
    right: 25px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
  }
  .courts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* 手機與平板精選商品自動呈現 2 排 */
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
@media (max-width: 768px) {
  .top-bar {
    display: none;
    /* 手機版隱藏超頂部資訊欄，維持畫面乾淨 */
  }
  .slide-content h2 {
    font-size: 2rem;
  }
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .intro-image {
    order: 2;
  }
}

/* ==========================================================================
   手機版選單新增：會員功能區塊
   ========================================================================== */
/* 預設在桌機版隱藏 */
.mobile-auth {
    display: none;
}

/* 僅在手機與平板版 (1024px以下) 啟用 */
@media (max-width: 1024px) {
    .mobile-auth {
        display: block;
        margin-top: 30px; /* 與上方聯絡我們保持間距 */
        padding-bottom: 40px;
    }

    /* 精緻分隔線：帶有一點點透明度，不突兀 */
    .mobile-divider {
        border: none;
        height: 1px;
        background: linear-gradient(to right, rgba(255,255,255,0.05), rgba(255,255,255,0.2), rgba(255,255,255,0.05));
        margin-bottom: 30px;
    }

    /* 按鈕排版：橫向並排 */
    .mobile-auth-buttons {
        display: flex;
        gap: 15px;
    }

    /* 手機選單專用按鈕基礎樣式 */
    .btn-mob-auth {
        flex: 1;
        text-align: center;
        padding: 12px 0;
        border-radius: 6px;
        font-weight: 600;
        font-size: 0.95rem;
        transition: all 0.3s ease;
    }

    /* 登入按鈕：深色調搭配白字，低調專業 */
    .login-btn {
        background-color: rgba(255, 255, 255, 0.08);
        color: #FFFFFF;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    .login-btn:hover {
        background-color: rgba(255, 255, 255, 0.15);
    }

    /* 註冊按鈕：亮眼匹克球黃綠色，導引點擊 */
    .register-btn {
        background-color: #CCFF00; /* 原設定的 var(--primary-color) */
        color: #11181E;
    }
    .register-btn:hover {
        background-color: #FFFFFF;
        transform: translateY(-2px);
    }
}

/* ==========================================================================
   BACK TO TOP (回到頂部按鈕)
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(26, 37, 44, 0.8); /* 深色基調，帶 80% 透明 */
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 999;
    backdrop-filter: blur(5px); /* 高級感毛玻璃特效 */
    
    /* 預設隱藏並往下沉一點，做淡入動畫準備 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 當滾動超過指定高度，JS 會幫忙加上這個 class */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 滑鼠移上去時的互動特效 */
.back-to-top:hover {
    background-color: #CCFF00; /* 變成匹克球主色黃綠色 */
    color: #11181E;            /* 文字轉深色 */
    border-color: #CCFF00;
    transform: translateY(-5px); /* 向上微浮 */
    box-shadow: 0 8px 20px rgba(204, 255, 0, 0.3); /* 漂亮的發光陰影 */
}

/* 手機版適度調整大小與位置，避免擋到資訊 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}
/* 從 LINE 圖示跳到 #contactForm 時，避開固定在上方的頁首 */
#contactForm {
  scroll-margin-top: 120px;
}
