#activity-1 {
  padding: 124px 0 70px 0;
}
.tabs-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  justify-content: center;
}
.animal-tabs {
  display: flex;
  overflow-x: hidden;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  flex: 1;
  justify-content: center;
} /* 隱藏滾動條 */
.animal-tabs::-webkit-scrollbar {
  display: none;
}
.animal-tabs {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.icon-item {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  margin: 0 5px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  filter: grayscale(1) opacity(0.5);
  transition: all 0.3s ease;
}
.icon-item img {
  transition: all 0.3s ease;
  width: 60px;
  height: 60px;
  vertical-align: middle;
}
.icon-item.active img {
  width: 80px;
  height: 80px;
  filter: none;
}
.icon-item.active {
  background: #fff; /* box-shadow: 0 0 0 2px #222 inset; */
  filter: none;
  transform: none; /* ← 重點：取消 scale 放大 */
  width: 80px;
  height: 80px;
} /* animal-Arrow buttons */
.animal-arrow {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #999;
  width: 40px;
  height: 40px;
  transition: color 0.2s ease;
}
.animal-arrow:hover {
  color: #000;
}
.animal-arrow img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.animal-arrow.animal-left {
  margin-right: 8px;
}
.animal-arrow.animal-right {
  margin-left: 8px;
} /* 內容區 */
.panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
  gap: 36px;
  margin-top: 48px;
}
.figure img {
  width: 100%;
  object-fit: cover;
}
.badge {
  background: #f1f1f1;
  padding: 2px 8px;
  margin-right: 4px;
  border-radius: 8px;
  font-size: 12px;
}
.figure {
  position: relative;
  text-align: center;
}
.info-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  background: rgba(255, 255, 255, 1);
  border-radius: 10px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center; /* 垂直置中 */
  justify-content: space-between;
  text-align: left;
  gap: 10px;
  line-height: 1; /* 🔹 行高固定，避免被字體撐高 */
} /* 🔹 文字佔滿左側 */
.info-btn .text {
  flex: 1;
  color: #000;
  display: flex;
  align-items: center;
  transform: translateY(1px);
} /* 🔹 icon靠右 */
.info-btn .icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
} /* 🔹 hover 效果 */
.info-btn:hover {
  background: #f0f4ed; /* color: #fff; */
}
.info-btn:hover .icon {
  /* filter: brightness(0) invert(1); */ /* hover 時圖示變白 */
} /* Popup 視窗 */
body.popup-open {
  overflow: hidden;
} /* 彈窗外層 */
.animal-popup {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}
.popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
} /* 彈窗主體 */
.popup-wrapper {
  position: relative;
  z-index: 1000;
  width: 90%;
  top: 1.5rem;
  max-width: 1000px;
  max-height: 80vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
} /* 標題、關閉按鈕 */
.popup-content {
  position: relative;
  padding: 0 32px;
}
.popup-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
} /* 圖片 */
.popup-img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
} /* 可滾動內容 */
.popup-scroll {
  overflow-y: auto;
  padding: 10px 30px 30px;
  max-height: 70vh;
}
.popup-section {
  margin-bottom: 20px;
}
.popup-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
} /* 固定彈窗標題區塊 */
.pop-title-fix {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee; /* 加上底線視覺分隔 */
} /* 標題與關閉按鈕內的字 */
.pop-title-fix h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}
.pop-title-fix .popup-close {
  position: static; /* 清除原本的 absolute 設定 */
  font-size: 28px;
  line-height: 1;
}
.popup-figure img {
  width: 100%;
  margin-bottom: 20px;
}
.popup-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.popup-col h3 {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid #1d1d1f;
}
.popup-full {
  margin-bottom: 48px;
} /* 表格樣式 */
.popup-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d8d8d9; /* 外框線 */
  font-size: 15px;
}
.popup-table th,
.popup-table td {
  border: 1px solid #d8d8d9; /* 內框線 */
  padding: 10px 12px;
  text-align: left;
  line-height: 1.6;
  vertical-align: middle; /* ✅ 垂直置中 */
}
.popup-table tr:first-child th {
  border-top: 1px solid #ebebec;
  border-left: 1px solid #ebebec;
}
.popup-table tr:last-child th {
  border-bottom: 1px solid #ebebec;
  border-left: 1px solid #ebebec;
} /* 左側灰底 */
.popup-table th {
  width: 140px;
  background: #ebebec;
  font-weight: 600;
  text-align: center;
  vertical-align: middle; /* ✅ 確保左欄文字也置中 */
} /* 右側 meta 區塊 */
.meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 25px 10px;
  color: #000;
} /* 小標 */
.meta-subtitle {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 5px;
  letter-spacing: 1px;
} /* 主標 */
.meta-title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 24px;
  letter-spacing: 1px;
} /* 簡介 */
.meta-feature {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 24px;
} /* badges */
.meta .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.meta .badge {
  background: #fff;
  border: 2px solid #f0f4ed;
  color: #000;
  padding: 11px 8px 9px 8px;
  border-radius: 15px;
  font-size: 14px;
} /* 受脅原因 */
.meta-threat {
  background: #f1f4f0;
  border-radius: 10px;
  padding: 20px 20px;
  margin-bottom: 24px;
}
.meta-block-title {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 12px;
}
img.icon-danger {
  width: 20px;
  vertical-align: sub;
  margin-right: 8px;
} /* 商品資訊 */
.meta-product-box {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.meta-product-img {
  width: 150px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f8f8f8;
}
.meta-product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
img.meta-img-position {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 80px;
}
.meta-product-name {
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: 900;
}
.meta-product-price {
  font-size: 13px;
  margin-bottom: 12px;
}
.meta-product-price strong {
  font-size: 22px;
  font-weight: 700;
}
.meta-product-btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 14px;
  background: #f0f4ed;
  color: #000;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
  width: 200px;
}
.meta-product-btn:hover {
  background: #e0e8d8;
} /* badges 區塊 */
.meta-badges {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  margin-bottom: 24px;
}
.badge {
  flex: 1; /* ⬅️ 平分左右寬度 */
  display: flex;
  align-items: center; /* ⬅️ 垂直置中 */
  justify-content: center; /* ⬅️ 水平置中 */
  border: 1.5px solid #e0e5d9;
  border-radius: 30px;
  background: #fff;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6; /* 統一字高 */
  text-align: center;
  white-space: nowrap;
} /* 左側 badge */
.badge-left {
  color: #000;
} /* 紅色狀態文字 */
.badge-status {
  color: #7f0019;
  margin-left: 4px;
} /* 右側 badge */
.badge-right {
  color: #7f0019;
  border: 1.5px solid #e0e5d9;
  background: #fff;
}
@media (max-width: 768px) {
  .meta-badges {
    flex-direction: column;
    align-items: flex-start;
  }
  .badge {
    width: 100%;
  }
  .panel {
    grid-template-columns: 1fr;
  }
  .animal-tabs {
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .popup-row {
    grid-template-columns: 1fr; /* 手機改為單欄顯示 */
  }
  .meta {
    padding: 0;
  }
  .meta-product-btn {
    width: 100%;
  }
  .meta-product-name {
    font-size: 15px;
  }
  .info-btn {
    padding: 12px 16px;
  }
  .icon-item {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
  }
  .icon-item img {
    width: 60px;
    height: 60px;
  } /* .meta-product-box { flex-direction: column; align-items: flex-start; } .meta-product-img { width: 100%; } */
}
