/* 麵包屑導航樣式 */
.breadcrumb-nav {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 2px solid rgba(255, 193, 7, 0.2);
  padding: 1.5rem 0;
  box-shadow: 0 2px 10px rgba(255, 193, 7, 0.1);
  position: relative;
}

.breadcrumb-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #FFC107 0%, #FF8F00 100%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.breadcrumb {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  position: relative;
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin: 0 0.8rem;
  color: #FFC107;
  font-size: 1.2rem;
  font-weight: bold;
  opacity: 0.7;
}

.breadcrumb a {
  color: #6c757d;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  position: relative;
  font-weight: 500;
}

.breadcrumb a:hover {
  color: #FFC107;
  background: rgba(255, 193, 7, 0.1);
  transform: translateY(-1px);
}

.breadcrumb a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #FFC107;
  transition: width 0.3s ease;
}

.breadcrumb a:hover::before {
  width: 80%;
}

.breadcrumb li:last-child a {
  color: #FFC107;
  font-weight: 600;
  background: rgba(255, 193, 7, 0.1);
  border-radius: 6px;
  padding: 0.5rem 1rem;
}

/* 響應式麵包屑 */
@media (max-width: 768px) {
  .breadcrumb-nav {
    padding: 1rem 0;
  }
  
  .breadcrumb {
    font-size: 0.9rem;
  }
  
  .breadcrumb li:not(:last-child)::after {
    margin: 0 0.5rem;
    font-size: 1rem;
  }
  
  .breadcrumb a {
    padding: 0.4rem 0.6rem;
  }
}

@media (max-width: 480px) {
  .breadcrumb {
    font-size: 0.85rem;
  }
  
  .breadcrumb li:not(:last-child)::after {
    margin: 0 0.3rem;
  }
  
  .breadcrumb a {
    padding: 0.3rem 0.5rem;
  }
}

/* 頁面橫幅區域樣式 */
.page-banner {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: linear-gradient(135deg, #FFC107 0%, #FF8F00 100%);
}

.banner-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.banner-container:hover .banner-image {
  transform: scale(1.05);
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.8) 0%, rgba(255, 143, 0, 0.6) 50%, rgba(255, 111, 0, 0.4) 100%);
  background-image: 
    url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='golden-pattern' x='0' y='0' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='25' cy='25' r='8' fill='rgba(255,255,255,0.1)'/%3E%3Ccircle cx='75' cy='75' r='6' fill='rgba(255,255,255,0.08)'/%3E%3Cpath d='M10 50 Q25 25 40 50 T70 50' stroke='rgba(255,255,255,0.06)' stroke-width='2' fill='none'/%3E%3Cpath d='M60 20 Q75 5 90 20 T120 20' stroke='rgba(255,255,255,0.04)' stroke-width='1.5' fill='none'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23golden-pattern)'/%3E%3C/svg%3E"),
    linear-gradient(135deg, rgba(255, 193, 7, 0.8) 0%, rgba(255, 143, 0, 0.6) 50%, rgba(255, 111, 0, 0.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.banner-content {
  text-align: center;
  color: white;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.banner-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
}

.banner-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 默認橫幅圖片樣式 */
.default-banner {
  width: 100%;
  height: 400px;
  position: relative;
  background: linear-gradient(135deg, #FFC107 0%, #FF8F00 50%, #FF6F00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.banner-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60%);
  background-size: 200px 200px, 300px 300px, 100px 100px;
  animation: patternMove 20s linear infinite;
}

.banner-icon {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.banner-icon i {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: iconFloat 3s ease-in-out infinite;
}

.banner-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: iconGlow 4s ease-in-out infinite;
}

@keyframes patternMove {
  0% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(-20px) translateY(-10px); }
  100% { transform: translateX(0) translateY(0); }
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes iconGlow {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

/* 響應式默認橫幅 */
@media (max-width: 768px) {
  .default-banner {
    height: 300px;
  }
  
  .banner-icon i {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .default-banner {
    height: 250px;
  }
  
  .banner-icon i {
    font-size: 2.5rem;
  }
}

/* 頁面元信息樣式 */
.page-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6c757d;
  font-size: 0.9rem;
}

.meta-item i {
  color: #FFC107;
  font-size: 1rem;
}

/* 圖片展示區域 */
.image-gallery {
  margin: 3rem 0;
}

.gallery-container {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 主圖片區域 */
.main-image-section {
  margin-bottom: 2rem;
}

.main-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.main-image {
  width: 100%;
  height: 500px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.main-image:hover {
  transform: scale(1.02);
}

/* 圖片控制按鈕 */
.image-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
}

.control-btn {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.control-btn:hover {
  background: #FFC107;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.control-btn:active {
  transform: scale(0.95);
}

/* 縮略圖區域 */
.thumbnail-section {
  margin-top: 2rem;
}

.thumbnail-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  max-width: 100%;
  overflow-x: auto;
}

.thumbnail-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  aspect-ratio: 1;
}

.thumbnail-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.thumbnail-item.active {
  border: 3px solid #FFC107;
  transform: scale(1.05);
}

.thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.thumbnail-item:hover .thumbnail-image {
  transform: scale(1.1);
}

.thumbnail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 193, 7, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.thumbnail-item:hover .thumbnail-overlay {
  opacity: 1;
}

.thumbnail-overlay i {
  color: white;
  font-size: 1.5rem;
}

/* 圖片描述區域 */
.image-description {
  margin: 3rem 0;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.description-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #FFC107;
}

.description-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

/* 相關圖片區域 */
.related-images {
  margin: 3rem 0;
}

.related-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.related-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #FFC107 0%, #FF8F00 100%);
  border-radius: 2px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .main-image {
    height: 300px;
  }
  
  .control-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .thumbnail-container {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
  }
  
  .page-meta {
    gap: 1rem;
  }
  
  .meta-item {
    font-size: 0.8rem;
  }
  
  .gallery-container {
    padding: 1rem;
  }
  
  .image-description {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .main-image {
    height: 250px;
  }
  
  .control-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .thumbnail-container {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  }
  
  .description-title {
    font-size: 1.3rem;
  }
  
  .description-text {
    font-size: 1rem;
  }
}

/* 動畫效果 */
.main-image-wrapper {
  animation: slideInUp 0.8s ease-out;
}

.thumbnail-item {
  animation: fadeInScale 0.6s ease-out;
}

.thumbnail-item:nth-child(1) { animation-delay: 0.1s; }
.thumbnail-item:nth-child(2) { animation-delay: 0.2s; }
.thumbnail-item:nth-child(3) { animation-delay: 0.3s; }
.thumbnail-item:nth-child(4) { animation-delay: 0.4s; }
.thumbnail-item:nth-child(5) { animation-delay: 0.5s; }
.thumbnail-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 載入狀態 */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading .main-image {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* 全屏查看模式 */
.fullscreen-mode {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.fullscreen-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
}

.fullscreen-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.fullscreen-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 頁面標題區域樣式 */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 3px solid #FFC107;
  position: relative;
}

.page-header::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #FFC107 0%, #FF8F00 100%);
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
  position: relative;
}

.page-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  font-weight: 300;
  margin: 0;
}

/* 主要內容區域樣式 */
.main-content {
  padding: 4rem 0;
  background: white;
}

/* 響應式頁面標題 */
@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
  
  .main-content {
    padding: 2rem 0;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.5rem;
  }
  
  .page-subtitle {
    font-size: 0.9rem;
  }
} 