/* ----------- 整體背景與文字設定（整體風格） ----------- */
body {
  font-family: 'Georgia', serif; /* 復古風格字體 */
  background-color: #f9f2e7; /* 淡米色背景 */
  color: #5e4635; /* 咖啡色文字 */
  margin: 0;
  padding: 0;
}

/* ----------- 頁首區（圖片＋標題） ----------- */
header {
  position: relative;
  text-align: center;
  margin-bottom: 20px;
}

/* 封面圖片樣式 */
.cover-image, .cover {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 12px;
  filter: sepia(0.3) brightness(0.95) contrast(1.1); /* 做舊效果 */
  border-bottom: 5px solid #b99f7c;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* 圖片中間的標題（封面大字） */
.title-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: 'Noto Serif TC', 'Georgia', serif;
  font-weight: 700; 
  transform: translate(-50%, -50%);
  background-color: rgba(255, 244, 230, 0.8);
  padding: 16px 32px;
  border: 3px double #7b5e43;
  font-size: 2em;
  color: #5e4635;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

/* ----------- 主要內容區塊 ----------- */
main {
  max-width: 750px;
  margin: 30px auto;
  padding: 20px 30px;
  background-color: #f9eddc;
  border-radius: 12px;
  border: 2px dashed #b99f7c;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: justify; /* 文字對齊兩側 */
}

/* ----------- 所有圖片的共用樣式 ----------- */
img {
  border-radius: 10px;
  transition: transform 0.3s ease;
  max-width: 100%;
}

/* 滑鼠滑過圖片時的放大效果 */
img:hover {
  transform: scale(1.05);
}

/* ----------- 動畫效果設定 ----------- */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 要加動畫的元素加上 .animated */
.animated {
  animation: fadeInUp 1s ease-out forwards;
    width: 300px;          /* 固定寬度 */
  height: 200px;         /* 固定高度 */
  object-fit: cover;     /* 確保圖片會填滿而不變形 */
  border-radius: 8px;
  margin: 10px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ----------- 導覽列樣式 ----------- */
.nav-icons {
  
  text-align: center;
  padding: 12px 0;
  
  
  
}

/* 導覽列中的按鈕 */
.nav-icons a {
  display: inline-block;
  background-color: #f3e3c3;
  color: #5e4635;
  margin: 0 10px;
  padding: 8px 18px;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #b99f7c;
  border-radius: 20px;
  transition: all 0.3s ease;
  
}


/* 滑過導覽列按鈕時的變化 */
.nav-icons a:hover {
  background-color: #e2c6a0;
  color: #3d2d21;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

/* ----------- 相關連結區塊 ----------- */
.related-links {
  margin: 40px auto;
  max-width: 600px;
  background: #fff8e6;
  border: 2px solid #d2b48c;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding: 20px;
}

/* 相關連結標題 */
.related-links h3 {
  text-align: center;
  color: #7b5e43;
  margin-bottom: 16px;
}

/* 相關連結列表取消點列表樣式 */
.related-links ul {
  list-style: none;
  padding: 0;
}

/* 每一個連結的項目 */
.related-links li {
  margin: 10px 0;
  padding-left: 24px;
  position: relative;
}

/* 每個連結前面的圖示符號 */
.related-links li::before {
  content: "🔗";
  position: absolute;
  left: 0;
  top: 2px;
}

/* 連結文字本身 */
.related-links a {
  color: #5e4635;
  text-decoration: none;
  border-bottom: 1px dashed #b99f7c;
  transition: color 0.3s;
}

/* 滑過連結時的效果 */
.related-links a:hover {
  color: #a0522d;
}

/* ----------- 頁尾 ----------- */
footer {
  text-align: center;
  padding: 10px;
  font-size: 0.9em;
  color: #888;
}
@import url('https://fonts.googleapis.com/css2?family=ZCOOL+KuaiLe&display=swap');

.welcome-box {
  max-width: 800px;
  margin: 40px auto 20px;
  background-color: #fff8e6;
  border: 3px double #b99f7c;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  
}

.welcome-box h1 {
  font-size: 2.2em;
  color: #a0522d;
  margin-bottom: 12px;
}

.welcome-box p {
  font-family: 'Georgia', serif;
  font-size: 1.1em;
  color: #5e4635;
}





