/* 基本樣式 */
body {
  font-family: "Microsoft JhengHei", sans-serif;
  background: #f0f2f5;
  margin: 0;
  padding: 0;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* 導航欄樣式 */
header {
  background: #004080;
  color: white;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-sizing: border-box;
}

nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* 主要內容區域 */
section {
  background: white;
  margin: 20px auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  max-width: 1200px;
  width: 100%;
  box-sizing: border-box;
}

/* 標題樣式 */
h1, h2 {
  color: #004080;
  margin: 0 0 20px 0;
}

/* 連結樣式 */
a {
  color: #004080;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #0050a0;
}

/* 圖片樣式 */
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* 卡片樣式 */
.card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 列表樣式 */
ul, ol {
  padding-left: 20px;
}

li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* 按鈕樣式 */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #004080;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #0050a0;
  transform: translateY(-2px);
}

/* 響應式設計 */
/* 電腦版樣式 (預設) */
@media screen and (min-width: 1025px) {
  section {
    padding: 30px;
  }

  .grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* 平板版樣式 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  section {
    margin: 15px;
    padding: 20px;
  }

  .grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

/* 手機版樣式 */
@media screen and (max-width: 768px) {
  body {
    padding: 0 10px;
  }

  header {
    padding: 10px;
  }

  nav {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  nav a {
    width: 100%;
    text-align: center;
    padding: 10px;
  }

  section {
    margin: 10px 0;
    padding: 15px;
  }

  .grid-container {
    display: block;
  }

  .card {
    margin-bottom: 15px;
  }

  h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.5em;
  }
}

/* 動畫效果 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 特殊元素樣式 */
.profile-photo {
  max-width: 180px;
  max-height: 180px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  margin: 15px 0 25px auto;
  box-shadow: 0 0 8px rgba(0,0,0,0.15);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.social-links a {
  color: #004080;
  font-size: 1.5em;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: #0050a0;
  transform: translateY(-3px);
} 