/* 頁面橫幅區域樣式 */
.page-banner {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 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;
}

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

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

/* 麵包屑導航樣式 */
.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;
}

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

.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;
}

.title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.title-link:hover {
  color: #FFC107;
}

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

/* 頁面內容樣式 */
.page-content {
  margin-bottom: 3rem;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.content-text {
  font-size: 1.1rem;
  color: #555;
  text-align: justify;
  margin: 0;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  border-left: 4px solid #FFC107;
}

.content-text::before {
  content: """;
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: #FFC107;
  opacity: 0.3;
  font-family: serif;
}

/* 裝飾元素樣式 */
.decorative-element {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem 0;
}

.decor-icon {
  width: 40px;
  height: 40px;
  opacity: 0.6;
  animation: bounce 2s infinite;
  transition: opacity 0.3s ease;
}

.decor-icon:hover {
  opacity: 1;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* 響應式設計 */
@media (max-width: 768px) {
  .page-banner {
    height: 300px;
  }
  
  .banner-title {
    font-size: 2rem;
  }
  
  .banner-subtitle {
    font-size: 1rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .content-text {
    font-size: 1rem;
    padding: 1.5rem;
  }
  
  .main-content {
    padding: 2rem 0;
  }
  
  .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) {
  .page-banner {
    height: 250px;
  }
  
  .banner-title {
    font-size: 1.5rem;
  }
  
  .page-title {
    font-size: 1.5rem;
  }
  
  .content-text {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .breadcrumb {
    font-size: 0.85rem;
  }
  
  .breadcrumb li:not(:last-child)::after {
    margin: 0 0.3rem;
  }
  
  .breadcrumb a {
    padding: 0.3rem 0.5rem;
  }
}

/* 動畫效果 */
.wow.bounceIn {
  animation-duration: 1s;
  animation-fill-mode: both;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 額外的視覺增強 */
.page-header:hover .page-title {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

.content-wrapper:hover .content-text {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
}

/* 打印樣式 */
@media print {
  .page-banner {
    height: auto;
    page-break-inside: avoid;
  }
  
  .banner-overlay {
    position: static;
    background: none;
  }
  
  .banner-title,
  .banner-subtitle {
    color: black;
    text-shadow: none;
  }
  
  .breadcrumb-nav {
    display: none;
  }
  
  .decorative-element {
    display: none;
  }
}

/* 默認橫幅圖片樣式 */
.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;
  }
} 