/* 基本樣式 */
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #FF8C42; /* 橙王色 */
  color: #333;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  position: relative; /* 讓 footer 可以相對於 body 定位 */
}

.container {
  text-align: center;
  max-width: 800px;
  width: 100%;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #fff; /* 標題文字改為白色 */
}

.categories {
  margin-bottom: 20px;
}

.category-btn {
  background-color: #333; /* 深灰色 */
  border: none;
  padding: 10px 20px;
  margin: 0 5px;
  cursor: pointer;
  font-size: 1rem;
  color: #fff; /* 文字改為白色 */
  transition: background-color 0.3s ease;
}

.category-btn.active {
  background-color: #555; /* 更深的灰色 */
}

.gallery {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 500px; /* 調整為更高的值 */
  border: 1px solid #ddd;
  background-color: #fff; /* 畫廊背景為白色 */
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
  height: 125%;
}

.slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: top;
}

.slide img {
  width: 100%;
  height: 70%; /* 調整圖片高度比例 */
  object-fit: cover;
}

.caption {
  text-align: center;
  margin-top: 10px;
  font-size: 1rem;
  color: #333;
  background-color: rgba(255, 255, 255, 0.8); /* 半透明白色背景 */
  padding: 10px;
  border-radius: 5px;
  width: 80%; /* 文字區域寬度 */
}

.controls {
  margin-top: 20px;
}

.controls button {
  background-color: #333; /* 深灰色 */
  color: #fff;
  border: none;
  padding: 10px 20px;
  margin: 0 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.controls button:hover {
  background-color: #555; /* 更深的灰色 */
}

/* Footer 樣式 */
footer {
  position: absolute; /* 固定在頁面底部 */
  bottom: 0; /* 貼合底部 */
  left: 0; /* 貼合左側 */
  right: 0; /* 貼合右側 */
  display: flex;
  flex-direction: column; /* 垂直排列 */
  align-items: center; /* 水平居中 */
  justify-content: center; /* 垂直居中 */
  text-align: center;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.8); /* 半透明白色背景 */
  border-radius: 5px;
}

footer .logo {
  width: 120px; /* 商標圖案大小 */
  height: auto;
  margin-bottom: 10px;
}

footer p {
  font-size: 0.6rem;
  color: #333;
  margin: 0;
}