/* 原有的 LINE 按鈕樣式 (使用 LINE 官方綠色) */
.sticky-line-button {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 1000;
  background-color: #06c755; /* LINE 的官方綠色 */
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: all 0.3s ease;
}

.sticky-line-button:hover {
  background-color: #05a546;
  transform: scale(1.1);
  box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.3);
}

/* 新增的蔬食推薦按鈕樣式 (使用紅蘿蔔主題配色) */
.sticky-vegan-button {
  position: fixed;
  right: 25px;
  bottom: 100px;
  z-index: 1000;
  background-color: #fd7e14; /* 亮橘色，適合紅蘿蔔圖示 */
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: all 0.3s ease;
}

.sticky-vegan-button:hover {
  background-color: #e8730e; /* 滑鼠移過時，變成稍微深一點的橘色 */
  transform: scale(1.1);
  box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.3);
}

.sticky-quote-button {
  position: fixed;
  right: 25px;
  bottom: 175px;
  z-index: 1000;
  background-color: #4a5568; /* 深灰藍，書本感 */
  color: #f7fafc; /* 米白字體 */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transition: all 0.3s ease;
}

.sticky-quote-button:hover {
  background-color: #2c5282; /* 滑鼠移過時變深藍 */
  transform: scale(1.1);
  box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.35);
}

/* 新增的 YouTube 按鈕樣式 */
.sticky-youtube-button {
  position: fixed;
  right: 25px;
  bottom: 250px; /* 依照你的間距規律：175px + 75px = 250px */
  z-index: 1000;
  background-color: #FF0000; /* YouTube 官方紅 */
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 32px; /* 跟 LINE/Carrot 按鈕一致的大小 */
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: all 0.3s ease;
}

.sticky-youtube-button:hover {
  background-color: #cc0000; /* 滑鼠移過時變深紅 */
  transform: scale(1.1);
  box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.3);
}

/* 容器定位在右下角 */
.fab-container {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px; /* 按鈕之間的間距 (原本 75px - 60px = 15px) */
}

/* 隱藏的按鈕群組容器 */
.fab-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* 彈跳效果動畫 */
  
  /* 預設狀態：張開 (這裡不需要特別寫隱藏樣式) */
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto; 
}

/* 共用的按鈕樣式 (圓形、陰影等) */
.fab-btn, .fab-trigger {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  border: none; /* 移除 button 預設邊框 */
  cursor: pointer;
}

/* 各別按鈕的顏色 */
.btn-youtube { background-color: #FF0000; font-size: 32px; }
.btn-quote   { background-color: #4a5568; }
.btn-vegan   { background-color: #fd7e14; font-size: 32px; }
.btn-line    { background-color: #06c755; font-size: 32px; }

/* 主開關按鈕樣式 (深色) */
.fab-trigger {
  background-color: #333; /* 你可以改成喜歡的顏色 */
  font-size: 24px;
  z-index: 1001; /* 確保它在最上層 */
}

/* Hover 效果 */
.fab-btn:hover, .fab-trigger:hover {
  transform: scale(1.1);
  box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.3);
}

/* === 收納狀態 (由 JavaScript 控制) === */
.fab-container.is-closed .fab-actions {
  opacity: 0;
  transform: translateY(20px); /* 往下沉一點點 */
  pointer-events: none; /* 隱藏時不能點擊 */
}

.fab-container.is-closed .fab-trigger {
  background-color: #007bff; /* 收起來時，按鈕變藍色 (可選) */
  transform: rotate(180deg); /* 旋轉動畫 */
}