/* 全域樣式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", sans-serif;
  background-color: #edf4ff;
  background-image: radial-gradient(circle at 10px 10px, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html {
  scrollbar-width: none;
}

::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

/* 背景影片 */
/* .bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
} */

/* Header 樣式 */
.page-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #000000;
  padding: 15px 25px;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-container {
  max-width: 1900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-section {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.company-logo {
  height: auto;
  max-height: 40px;
  width: auto;
  flex-shrink: 0;
}

.story-logo {
  height: auto;
  max-height: 40px;
  width: auto;
  padding-left: 20px;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #cccccc;
}

.nav-link.active {
  font-weight: bold;
}

/* 漢堡選單按鈕 */
.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* 主要內容區域 */
.page-content {
  flex: 1;
  margin-top: 80px;
  padding-bottom: 80px;
}

/* 首頁樣式 */
.home-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

.home-header {
  text-align: center;
  margin-bottom: 60px;
}

.home-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
  text-align: center;
}

.home-subtitle {
  font-size: 2rem;
  color: #3a3939;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.category-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative; /* ← 加這行! */
}

.category-content {
  padding: 24px;
}

.category-title {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #333;
}

.category-description {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

/* 分類頁面樣式 */
.category-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

.category-header {
  text-align: center;
  margin-bottom: 50px;
}

.category-page-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}
.menu-item-title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  font-size: 16px;
  font-weight: 600;
  color: white;
  text-align: center;
  padding: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}
/* 選項卡片樣式 */
.menu-item {
  background: white;
  border-radius: 8px; /*16px*/
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden; /*visible*/
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.menu-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.menu-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

/* Tooltip 樣式 */
.menu-item::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 100;
}

.menu-item::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.menu-item:hover::after,
.menu-item:hover::before {
  opacity: 1;
}

/* Footer 樣式 */
.page-footer {
  background-color: #000000;
  color: white;
  text-align: center;
  padding: 24px 20px;
  margin-top: auto;
}

.footer-text {
  font-size: 14px;
}

/* 隱藏類別 */
.hidden {
  display: none !important;
}

/* 版權聲明連結 */
.copyright-link {
  color: #ffffff;
  text-decoration: underline;
  margin-left: 10px;
  cursor: pointer;
}

.copyright-link:hover {
  color: #cccccc;
}

/* 版權聲明滑出面板 */
.copyright-panel {
  position: fixed;
  bottom: -400px;
  left: 0;
  width: 100%;
  background-color: #f5f1e8;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  transition: bottom 0.4s ease;
}

.copyright-panel.active {
  bottom: 0;
}

.panel-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 40px;
  position: relative;
}

.panel-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 36px;
  color: #666;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
}

.panel-close:hover {
  color: #000;
}

.panel-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

.panel-body {
  line-height: 1.8;
  color: #333;
}

.panel-body p {
  margin-bottom: 15px;
  text-align: left;
}

.copyright-footer {
  text-align: center;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 0;
}
/* ==================== 🔒 鎖定功能樣式 ==================== */

/* 圖片容器 */
.menu-item-image-container {
  position: relative;
  width: 100%;
}

/* 被鎖定的選單項目 */
.menu-item.locked {
  cursor: not-allowed;
}

.menu-item.locked:hover {
  transform: none; /* 鎖定時不要有懸停效果 */
}

/* 被鎖定的圖片加上半透明遮罩 */
.menu-item.locked .menu-item-image-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7); /* 白色半透明遮罩 */
  border-radius: 16px; /* 配合你的圖片圓角 */
  z-index: 1;
}

/* 鎖頭圖示 */
.lock-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 64px;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
/* 🔒 首頁分類卡片鎖定樣式 */
.category-card.locked {
  cursor: not-allowed;
  opacity: 0.7;
}

.category-card.locked:hover {
  transform: none; /* 鎖定時不要有懸停效果 */
}

/* 首頁分類的半透明遮罩 */
.category-card.locked .category-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 1;
}

/* 首頁鎖頭圖示 */
.lock-icon-home {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 80px;
  z-index: 2;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* 響應式設計 */
@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* 顯示漢堡選單按鈕 */
  .menu-toggle {
    display: flex;
  }

  /* 導航選單響應式 */
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 70px);
    background-color: #000000;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 20px;
    gap: 20px;
    transition: right 0.3s ease;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    font-size: 18px;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #333;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .home-title {
    font-size: 2rem;
  }

  .home-subtitle {
    font-size: 1rem;
  }
  .lock-icon {
    font-size: 48px;
  }
  .lock-icon-home {
    font-size: 60px;
  }
}
