/* ==========================================================================
   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
   =================================*/


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

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

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

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

/* ==========================================================================
   1. 重置與全域變數 (CSS Variables)
   ========================================================================== */
:root {

  --accent-color: #1a4971;        /* 亮點藍 */
  --bg-color: #f8f9fa;            /* 純淨極淺灰背景 */
  --surface-color: #ffffff;       /* 卡片純白背景 */
  --text-main: #2b2b2b;           /* 主要文字 */
  --text-muted: #6c757d;          /* 次要文字 */
  --border-color: #e9ecef;        /* 邊框顏色 */
  
  --font-serif: 'Noto Serif TC', serif;
  --font-sans: 'Outfit', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --box-shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.05);
  --box-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
}


/* ==========================================================================
   2. Hero Banner 區塊
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, #b2d526 0%, #536c4a 100%);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--secondary-color);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero-divider {
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* ==========================================================================
   3. 主要容器與 Grid 佈局 (RWD)
   ========================================================================== */
.main-container {
  max-width: 1200px;
  margin: -40px auto 60px;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.president-section {
  background: var(--surface-color);
  border-radius: 16px;
  padding: 60px 40px;
  box-shadow: var(--box-shadow-subtle);
}

.president-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 60px;
  align-items: start;
}

/* ==========================================================================
   4. 理事長照片卡片樣式
   ========================================================================== */
.president-image-wrapper {
  position: sticky;
  top: 40px;
}

.image-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  aspect-ratio: 4 / 5;
}

.president-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

.image-frame:hover .president-img {
  transform: scale(1.03);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(13, 37, 63, 0.4) 0%, transparent 40%);
  pointer-events: none;
}

.president-card-info {
  margin-top: 20px;
  text-align: center;
}

.president-name {
  font-size: 1.6rem;
  color: #000;
  font-weight: 700;
}

.president-title {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 6px;
}

.president-org {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   5. 理事長文案細節樣式
   ========================================================================== */
.intro-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--secondary-color);
  background-color: rgba(197, 155, 39, 0.08);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.section-tagline {
  font-size: 1.75rem;
  color: #000;
  line-height: 1.4;
  margin-bottom: 30px;
  font-weight: 700;
}

.text-body p {
  font-size: 1.05rem;
  margin-bottom: 24px;
  color: #333333;
  text-align: justify;
}

.lead-paragraph {
  font-size: 1.15rem !important;
  color: #829d60 !important;
  border-left: 3px solid var(--secondary-color);
  padding-left: 16px;
}

/* 金句卡片 (Blockquote) */
.quote-card {
  background-color: #fdfbf7;
  border: 1px solid rgba(197, 155, 39, 0.25);
  border-radius: 12px;
  padding: 30px;
  margin: 36px 0;
  position: relative;
}

.quote-icon {
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--secondary-color);
  opacity: 0.3;
  position: absolute;
  top: 10px;
  left: 20px;
}

.quote-text {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  font-weight: 600;
  color: #3a3a3a;
  line-height: 1.8;
  font-style: italic;
}

.signature-block {
  margin-top: 40px;
  text-align: right;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.signature-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.signature-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #3a3a3a;
  margin-top: 4px;
}

/* ==========================================================================
   6. Footer
   ========================================================================== */
.site-footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

/* ==========================================================================
   7. JavaScript 動畫效果 class
   ========================================================================== */
/* 理事長卡片下方的協會活動合照 */
.group-photo {
  margin: 40px 0 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--box-shadow-subtle);
  background: var(--surface-color);
}
.group-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.js-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   8. 響應式斷點 (RWD)
   ========================================================================== */
@media (max-width: 992px) {
  .president-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .president-image-wrapper {
    position: static;
    max-width: 400px;
    margin: 0 auto;
  }

  .president-section {
    padding: 40px 24px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .section-tagline {
    font-size: 1.4rem;
  }

  .text-body p {
    font-size: 1rem;
  }

  .quote-card {
    padding: 20px;
  }
}

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






/* =================================
   商品卡片基礎樣式與滑入特效 (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;
    }
}