/* ===== Reset & 全域設定 ===== */
* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Microsoft JhengHei', sans-serif;
  background-image: url('image/PPP2.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: #fff700; /* 螢光黃文字 */
}

/* ===== 主標題 ===== */
.main-title {
  text-align: center;
  color: #ff2d75; /* 桃紅色 */
  font-size: 36px;
  margin-top: 30px;
  text-shadow: 2px 2px 8px #000;
}

/* ===== 導覽列 ===== */
nav {
  background: linear-gradient(90deg, #00eaff, #ff00e0);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
}

nav a {
  color: #ffffff;
  padding: 12px 22px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: 0.3s ease;
  font-size: 1.1em;
}
nav:hover{background-color:#290c5f}

nav a:hover {
  background-color: #00ffcc;
  color: #000;
   border-radius: 8px;
}

/* ===== 頁首區塊 ===== */
header {
  background: rgba(255, 0, 255, 0.6);
  padding: 2em 1em;
  text-align: center;
  backdrop-filter: blur(6px);
}

header h1 {
  font-size: 2.8em;
  color: #00ffcc; /* 電光綠 */
  margin-bottom: 0.3em;
}

header p {
  font-size: 1.3em;
  color: #fff;
}

/* ===== 主內容區 ===== */
main {
  display: flex;
  flex-wrap: wrap;
  padding: 25px;
  gap: 20px;
}

/* 主文章 */
article {
  flex: 3;
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 12px;
  border: 2px dashed #ffcc00;
}

article h2 {
  font-size: 2em;
  margin-bottom: 1em;
  color: #ff00c8;
}

article a {
  display: inline-block;
  margin-top: 1em;
  padding: 12px 24px;
  background: #00ffcc;
  color: #000;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: 0.3s ease;
}

article a:hover {
  background: #00c2a8;
  color: #f10b0b;
  transform: scale(1.1);
}

/* 側邊欄 */
aside {
  flex: 1;
  background: linear-gradient(135deg, #fffb00, #ffa600);
  color: #000;
  padding: 20px;
  border-radius: 12px;
  font-size: 1.1em;
  font-weight: bold;
}

/* 跑馬燈 */
marquee {
  padding: 12px;
  background-color: #ffccff;
  color: #ff0080;
  font-weight: bold;
  font-size: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px #ff00ff;
}

/* 頁尾 */
footer {
  background-color: #ff0080;
  color: #e28c0b;
  text-align: right;
  padding: 1.5em;
  margin-top: 30px;
  font-size: 1em;
  border-top: 4px solid #00ffcc;
  text-shadow: 1px 1px #000;
} 
.box{
    width:300px;
    height:100px;
    background-color:gold;
    color:#000;

}
h4{
    color: #e0c10d;
    font-size: 25px;
    text-align: center;
}
ul{
    color: #e0c10d;
    font-size: 25px;
    text-align: center;
}
li:hover{
    color: #c9ae18;
    font-size: 30px;
    text-align: center;}


.hover-text {
  display: inline-block; /* 使文字可應用 transform */
  transition: transform 0.3s ease, color 0.3s ease;
}

.hover-text:hover {
  transform: scale(1.2);
  color: #ec1291;
  font-weight: bold;
}
.image-row figure {
  flex: 1;
  text-align: center;
  margin: 0;
  background-color: rgba(255,255,255,0.05); /* 可加淡背景區隔 */
  padding: 10px;
  border-radius: 10px;
  min-height: 400px; /* ⭐ 保證每個區塊一樣高（可調整） */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}


 .image-row {
  display: flex; /* 使用 Flexbox 佈局 */
  justify-content: space-between; /* 分散排列圖片 */
  gap: 20px; /* 設定圖片間距 */
  margin: 20px;
}

.image-row figcaption {
  margin-top: 10px;
  font-size: 16px;
  font-weight: bold;
  color: #ffb400;
}

.image-row p {
  font-size: 14px;
  color: #e90a0a;
  margin: 4px 0;
  line-height: 1.4}

  .dropdown {
  position: relative;
  display: inline-block;
}

/* 下拉內容預設隱藏 */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #00eaff;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 999;
  border-radius: 8px;
}

/* 下拉內容中的每個連結 */
.dropdown-content a {
  color: #fff;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-weight: bold;
}

/* 滑鼠移上 dropdown 時顯示內容 */
.dropdown:hover .dropdown-content {
  display: block;
}

/* hover 效果（可自訂） */
.dropdown-content a:hover {
  background-color: #00ffcc;
  color: #000;
}
.hover-text {
  display: inline-block;
  font-size: 24px;              /* 確保尺寸固定 */
  color: black;
  transition: transform 0.2s ease, color 0.2s ease;
}
.hover-text.hovered {
  transform: scale(1.2);
  color: #ec1291;
  font-weight: bold;
}



figure {
  display: flex;
  flex-direction: column; /* 垂直排列：圖片 → 標題 → 文字 */
  align-items: center;     /* 水平置中圖片與文字 */
  text-align: center;      /* 讓文字也置中 */
  width: 250px;
  margin: 10px;
}

figure img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 100%;
  margin-bottom: 10px;}