/* 設計系統變數 */
:root {
  --primary-color: #FFDBAE;
  --secondary-color: #f4bb6e;
  --background-color: #f7f3e5;
  --accent-color-1: #B3E0F3;
  --accent-color-2: #4A90B8;
  --text-color: #333;
  --border-color: #e0e0e0;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --radius: 8px;
  --header-height: 100px;
  --nav-height: 60px;
}

/* 基礎樣式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Microsoft JhengHei', 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header 樣式 */
.header {
  background-color: #fba755;
  height: var(--header-height);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
}

.header-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--black);
  text-decoration: none;
  font-size: 40px;
  font-weight: 900;
  height: 100%;
  /* 粗體 */
  font-family: 'Helvetica Neue', 'Helvetica';
}

.logo-highlight {
  font-weight: 900;
  /* 新增右下角陰影 */
  text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.5);
}

.logo-highlight .letter-p { color: #E73C42; }
.logo-highlight .letter-i { color: #F7BF38; }
.logo-highlight .letter-s { color: #399E8C; }
.logo-highlight .letter-a { color: #4188B6; }

.logo-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  margin-right: 15px;
  object-fit: cover;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  right: 20px;
}

/* 隱藏 Google 翻譯自帶的 UI，並避免其影響版面 */
.skiptranslate,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
iframe.goog-te-menu-frame,
.goog-te-gadget-icon,
.goog-logo-link {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

.goog-te-combo { /* 給下拉選單最小寬度，避免換行 */
  min-width: 80px !important;
}

/* 若 Google 翻譯插入 inline style 影響 nav，給 nav-content 強制換行保護 */
.nav-content {
  display: flex !important;
  /* 預設不換行，但允許內容收縮 (min-width:0) 以避免因長字串造成溢出 */
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

/* 確保 language-switch 不會被翻譯元素或 banner 推到下一行 */
.language-switch { white-space: nowrap; }

/* 響應式：當寬度較小時允許 nav 換行並減小按鈕間距以避免超出 */
@media (max-width: 900px) {
  .nav-content {
    flex-wrap: wrap !important;
    padding: 6px 10px;
  }
  .nav-link {
    padding: 0 12px;
    font-size: 16px;
  }
}

/* 介於桌面與平板之間，針對長英文標題做微調 */
@media (max-width: 1100px) and (min-width: 901px) {
  .nav-link {
    font-size: 18px;
    padding: 6px 14px;
    max-width: 220px;
  }
  .nav-content { padding: 8px 12px; }
}

@media (max-width: 600px) {
  .nav-content { justify-content: flex-start; }
  .nav-list { flex-wrap: wrap; gap: 6px; }
  .nav-link { padding: 6px 10px; font-size: 15px; }
}

/* 極窄裝置時，讓 nav-link 更緊湊並允許多行顯示 */
@media (max-width: 420px) {
  .nav-link {
    font-size: 14px;
    padding: 4px 8px;
    max-width: 160px;
  }
  .nav-content { border-radius: 20px; }
}

.lang-btn {
  background: var(--white);
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  color: var(--primary-color);
  font-weight: 600;
  transition: all 0.3s;
}

.lang-btn:hover {
  background-color: var(--accent-color-1);
  color: var(--text-color);
}

.lang-btn.active {
  background-color: var(--accent-color-1);
  color: var(--text-color);
}

.google-translate-btn {
  background: var(--primary-color);
  color: var(--white);
  border: 2px solid var(--primary-color);
}

.google-translate-btn:hover {
  background: var(--white);
  color: var(--primary-color);
}

/* 導航樣式 */
.navigation {
  background-color: transparent;
  height: var(--nav-height);
  display: flex;
  justify-content: center;
  padding: 0;
  margin-top: 20px;
}

.nav-content {
  background-color: var(--accent-color-1);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-width: 1150px;
  width: 100%;
  margin: 0 auto;
  border-radius: 25px;
}

.nav-list {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  width: 100%;
  justify-content: center;
}

.nav-item {
  position: relative;
  /* 允許 nav 項目在必要時縮小，但不會強制拉長整列 */
  flex: 0 1 auto;
  min-width: 0;
}

.nav-link {
  display: inline-block;
  /* 減少左右 padding，允許多行換行以容納長英文文字 */
  padding: 6px 18px;
  /* 改用較彈性的行高，避免因固定高度溢位 */
  line-height: 1.2;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 900;
  font-size: 20px;
  transition: background-color 0.3s;
  white-space: normal; /* 允許換行 */
  text-align: center;
  overflow-wrap: break-word;
  max-width: 260px; /* 限制每個項目的寬度，過長文本會換行 */
}

.nav-link:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* 桌面版常見網站按鈕特殊樣式 */
.nav-item[data-nav="common-sites"] {
  background-color: var(--accent-color-1); /* 淺藍色背景 */
  border-radius: 6px;
}

.nav-item[data-nav="common-sites"] .nav-link {
  color: var(--accent-color-2); /* 深藍色文字 */
}

.nav-item[data-nav="common-sites"]:hover .nav-link {
  background-color: var(--accent-color-1);
  color: var(--accent-color-2);
}

/* 下拉選單樣式 */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white); /* 白色背景 */
  min-width: 200px;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  z-index: 1000;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-category {
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

.dropdown-category:last-child {
  border-bottom: none;
}

.dropdown-title {
  padding: 8px 16px;
  font-weight: bold;
  color: var(--accent-color-2); /* 深藍色標題 */
  font-size: 14px;
}

.dropdown-link {
  display: block;
  padding: 8px 16px;
  color: var(--text-color); /* 深色文字 */
  text-decoration: none;
  transition: background-color 0.3s;
}

.dropdown-link:hover {
  background-color: var(--background-color); /* 淺色hover背景 */
  color: var(--accent-color-2); /* hover時使用深藍色文字 */
}

/* 快訊跑馬燈樣式 */
.ticker-section {
    padding: 30px 0 0;
}

.ticker-container {
    height: 55px;
    overflow: hidden;
    padding: 0;
    margin: 0 auto;
    max-width: 1150px;
}

.ticker-container:hover .ticker-content {
    animation-play-state: paused;
}

.ticker-wrapper {
    background-color: var(--accent-color-1);
    border-radius: 25px;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
    box-shadow: var(--shadow);
    position: relative;
}

.ticker-label {
  background-color: var(--primary-color);
  color: var(--black);
  padding: 10px 20px;
  font-weight: 900;
  font-size: 20px;
  border-radius: 25px;
  margin-right: 20px;
  margin-left: 0;
  flex-shrink: 0;
  box-shadow: 5px 0px 4px rgba(0,0,0,0.2);
  position: absolute;
  left: 0;
  top: 50%;
  height: 100%;
  transform: translateY(-50%);
  z-index: 1;
}

.ticker-scroll {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  margin-left: 100px;
  padding-right: 25px;
}

.ticker-content {
  display: flex;
  animation: scroll 60s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.ticker-content:hover {
  animation-play-state: paused;
}

.ticker-item {
  padding-right: 100px;
  color: var(--text-color);
  font-weight: 600;
  font-size: 20px;
  flex-shrink: 0;
}


@keyframes scroll {
  0% { 
    transform: translateX(100%); 
  }
  100% { 
    transform: translateX(-100%); 
  }
}

/* 圖片輪播樣式 */
.carousel-container {
  position: relative;
  max-width: 1400px;
  margin: 20px auto;
  padding: 0 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background-color: var(--background-color);
}

.carousel-wrapper {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: var(--background-color);
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
  padding: 20px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.carousel-nav:hover {
  background-color: var(--white);
}

.carousel-prev {
  left: 15px;
}

.carousel-next {
  right: 15px;
}

.carousel-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-indicator.active {
  background-color: var(--accent-color-2);
}

/* 主要內容區域 */
.main-content {
  padding: 20px 0;
}

.content-section {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  margin-bottom: 40px;
}

.section-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 30px;
  background-color: var(--secondary-color);
  margin-right: 15px;
}

.content-table {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
}

.content-header {
  display: flex;
  background-color: var(--accent-color-1);
  font-weight: bold;
  font-size: 16px;
  color: var(--text-color);
}

.header-date {
  flex: 0 0 150px;
  padding: 15px 20px;
  border-right: 1px solid var(--border-color);
  text-align: center;
}

.header-title {
  flex: 1;
  padding: 15px 20px;
}

.content-list {
  background-color: var(--white);
}

.content-item {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s;
  cursor: pointer;
}

.content-item:hover {
  background-color: var(--background-color);
}

.content-item:last-child {
  border-bottom: none;
}

.content-date {
  flex: 0 0 150px;
  padding: 15px 20px;
  border-right: 1px solid var(--border-color);
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-title {
  flex: 1;
  padding: 15px 20px;
  color: var(--text-color);
  font-size: 16px;
  display: flex;
  align-items: center;
}

/* 分頁樣式 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  gap: 5px;
}

.pagination-btn {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  background-color: var(--white);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  min-width: 40px;
  text-align: center;
}

.pagination-btn:hover {
  background-color: var(--accent-color-1);
  border-color: var(--accent-color-2);
}

.pagination-btn.active {
  background-color: var(--accent-color-2);
  color: var(--white);
  border-color: var(--accent-color-2);
}

.pagination-btn.disabled {
  background-color: #f5f5f5;
  color: #ccc;
  cursor: not-allowed;
  border-color: #e0e0e0;
}

.pagination-btn.disabled:hover {
  background-color: #f5f5f5;
  border-color: #e0e0e0;
}

/* FAQ 頁面樣式 */
.faq-section {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  margin-bottom: 40px;
}

.faq-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.filter-btn {
  padding: 8px 20px;
  border: 2px solid var(--border-color);
  background-color: var(--white);
  color: var(--text-color);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  font-size: 14px;
}

.filter-btn:hover {
  background-color: var(--accent-color-1);
  border-color: var(--accent-color-2);
}

.filter-btn.active {
  background-color: var(--accent-color-2);
  color: var(--white);
  border-color: var(--accent-color-2);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.faq-question {
  padding: 20px;
  background-color: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-color);
  transition: background-color 0.3s;
}

.faq-question:hover {
  background-color: var(--background-color);
}

.faq-question.active {
  background-color: var(--accent-color-1);
  color: var(--text-color);
}

.faq-toggle {
  font-size: 24px;
  color: var(--accent-color-2);
  transition: transform 0.3s;
  font-weight: bold;
}

.faq-toggle.active {
  transform: rotate(45deg);
}

.faq-answer {
  background-color: var(--background-color);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
}

.faq-answer.active {
  padding: 20px;
  /* max-height 將由JavaScript動態設定 */
}

.faq-answer-content {
  color: var(--text-color);
  line-height: 1.8;
  white-space: pre-line;
}

.faq-category {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 10px;
}

/* 活動照片展示樣式 */
.photo-filters {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.filter-label {
  font-weight: 600;
  color: var(--text-color);
  font-size: 16px;
}

.year-select {
  padding: 8px 15px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--white);
  color: var(--text-color);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 120px;
}

.year-select:hover {
  border-color: var(--accent-color-2);
}

.year-select:focus {
  outline: none;
  border-color: var(--accent-color-2);
  box-shadow: 0 0 0 3px rgba(74, 144, 184, 0.1);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.photo-item {
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
}

.photo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.photo-cover {
  width: 100%;
  height: 200px;
  background-color: var(--background-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  font-size: 48px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.photo-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-cover-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--secondary-color);
}

.photo-cover-icon {
  font-size: 48px;
}

.photo-cover-text {
  font-size: 14px;
  font-weight: 600;
}

.photo-info {
  padding: 20px;
}

.photo-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 8px;
  line-height: 1.4;
}

.photo-date {
  font-size: 14px;
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 12px;
}

.photo-description {
  font-size: 14px;
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 15px;
}

.photo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: var(--accent-color-1);
  color: var(--accent-color-2);
  text-decoration: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}

.photo-link:hover {
  background-color: var(--accent-color-2);
  color: var(--white);
  transform: translateY(-1px);
}

.photo-link-icon {
  font-size: 16px;
}

/* 模態視窗樣式 */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  animation: fadeIn 0.3s;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  margin: 20px;
  animation: slideIn 0.3s;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-color);
  background: none;
  border: none;
}

.modal-close:hover {
  color: var(--primary-color);
}

.modal-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-color);
}

.modal-date {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 20px;
}

.modal-text {
  margin-bottom: 20px;
  line-height: 1.8;
}

.modal-details {
  background-color: var(--background-color);
  padding: 15px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.modal-details ul {
  list-style-position: inside;
  padding-left: 0;
}

.modal-details li {
  margin-bottom: 8px;
}

.modal-images {
  margin-bottom: 20px;
}

.modal-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.modal-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-links-section, .modal-files-section {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 15px;
  background-color: #fafafa;
}

.modal-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-section-title i {
  color: var(--accent-color-2);
}

.modal-buttons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.modal-link-button {
  background-color: #e3f2fd;
  color: #1976d2;
  border: 1px solid #bbdefb;
}

.modal-link-button:hover {
  background-color: #1976d2;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.modal-file-button {
  background-color: #f3e5f5;
  color: #7b1fa2;
  border: 1px solid #ce93d8;
}

.modal-file-button:hover {
  background-color: #7b1fa2;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(123, 31, 162, 0.3);
}

.modal-button i {
  font-size: 12px;
}

/* 舊的 modal-link 樣式保留給向後兼容 */
.modal-link {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--accent-color-1);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 20px;
  transition: background-color 0.3s;
}

.modal-link:hover {
  background-color: var(--accent-color-2);
  color: var(--white);
}

/* Footer 樣式 */
.footer {
  background-color: var(--text-color);
  color: var(--white);
  padding: 40px 0;
  margin-top: 60px;
  text-align: center;
}


/* 動畫效果 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 行動版導航容器預設隱藏 */
.mobile-nav-content {
  display: none;
}

/* 響應式設計 */
@media (max-width: 768px) {
  /* 桌面版導航容器：隱藏 */
  .nav-content {
    display: none !important;
  }
  
  /* 行動版導航容器：顯示 */
  .mobile-nav-content {
    display: block !important;
  }
  
  .header-content {
    padding: 0 15px;
  }
  
  .logo {
    font-size: 24px;
  }
  
  .logo-image {
    width: 40px;
    height: 40px;
    margin-right: 10px;
  }
  
  .language-switch {
    position: static;
    margin-left: auto;
  }
  
  .lang-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .ticker-section {
    padding: 0px 0 0;
  }
  
  .ticker-container {
    height: 45px;
    margin: 15px 10px 0;
    max-width: calc(100vw - 20px);
  }
  
  .ticker-wrapper {
    padding: 0 1px;
    border-radius: 20px;
  }
  
  .ticker-label {
    font-size: 14px;
    padding: 6px 12px;
    margin-right: 8px;
  }
  
  .ticker-item {
    font-size: 14px;
    padding-right: 50px;
  }
  
  .navigation {
    position: relative;
    margin-top: 15px;
    height: 50px;
    justify-content: flex-end; /* 讓內容靠右對齊 */
    padding-right: 0;  /* 移除右側padding */
  }
  
  /* 行動版導航容器樣式 */
  .mobile-nav-content {
    position: relative;
    height: 100%;
  }
  
  .mobile-menu-btn {
    display: block;
    position: absolute;
    right: 10px;  /* 更靠右 */
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--accent-color-1);
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-color);
    font-weight: 900;
    font-size: 16px;
    z-index: 1001;
    cursor: pointer;
  }
  
  /* 行動版選單樣式 */
  .mobile-nav-list {
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 10px;  /* 對應按鈕位置 */
    width: 200px;
    background-color: var(--accent-color-1);
    display: none !important;
    box-shadow: var(--shadow);
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 5px;
    list-style: none;
    padding: 0;
    margin-left: 0;
  }
  
  .mobile-nav-list.show {
    display: flex !important;
  }
  
  .mobile-nav-list .nav-item {
    width: 100%;
  }
  
  .mobile-nav-list .nav-link {
    padding: 5px 20px;  /* 減少垂直間距 */
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 16px;  /* 稍微減小字體 */
    color: var(--text-color);
    font-weight: 900;
    display: block;
    width: 100%;
  }
  
  .mobile-nav-list .nav-link:hover {
    background-color: var(--accent-color-1);
    color: var(--text-color);
  }
  
  /* 行動版常見網站按鈕特殊樣式 */
  .mobile-nav-list .nav-item[data-nav="mobile-common-sites"] {
    background-color: var(--accent-color-1); /* 使用淺藍色背景 */
    border-radius: 6px;
  }
  
  .mobile-nav-list .nav-item[data-nav="mobile-common-sites"] .nav-link {
    border-bottom: none;
    margin: 0; /* 移除margin，因為已經套用到父層 */
    color: var(--accent-color-2); /* 深藍色文字 */
  }
  
  .mobile-nav-list .nav-item[data-nav="mobile-common-sites"]:hover .nav-link {
    background-color: var(--accent-color-1);
    color: var(--accent-color-2);
  }
  
  .mobile-nav-list .nav-item:last-child .nav-link {
    border-bottom: none;
  }
  
  /* 行動版下拉選單樣式 */
  .mobile-nav-list .dropdown {
    position: static;
    opacity: 0;
    visibility: hidden;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    background-color: var(--white);  /* 白色背景 */
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .mobile-nav-list .dropdown.show {
    opacity: 1;
    visibility: visible;
    max-height: 300px;  /* 允許展開的最大高度 */
  }
  
  .mobile-nav-list .dropdown-category {
    padding: 5px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }
  
  .mobile-nav-list .dropdown-title {
    padding: 4px 20px;
    font-size: 12px;
    font-weight: bold;
    color: var(--accent-color-2); /* 深藍色標題 */
  }
  
  .mobile-nav-list .dropdown-link {
    padding: 6px 25px;
    font-size: 14px;
    color: var(--text-color);  /* 深色文字 */
    border-bottom: none;
  }
  
  .mobile-nav-list .dropdown-link:hover {
    background-color: var(--background-color); /* 淺色hover背景 */
    color: var(--accent-color-2); /* hover時使用深藍色文字 */
  }
  
  .carousel-container {
    margin: 15px;
    padding: 0;
    border-radius: 8px;
  }
  
  .carousel-wrapper {
    height: 200px;
  }
  
  .carousel-nav {
    width: 35px;
    height: 35px;
  }
  
  .carousel-prev {
    left: 10px;
  }
  
  .carousel-next {
    right: 10px;
  }
  
  .main-content {
    padding: 15px 0;
  }
  
  .content-section {
    margin: 0 15px 30px;
    padding: 20px;
  }
  
  .section-title {
    font-size: 20px;
  }
  
  .section-title::before {
    width: 3px;
    height: 20px;
    margin-right: 10px;
  }
  
  .content-header {
    font-size: 14px;
  }
  
  .header-date {
    flex: 0 0 100px;
    padding: 10px 15px;
  }
  
  .header-title {
    padding: 10px 15px;
  }
  
  .content-date {
    flex: 0 0 100px;
    padding: 12px 15px;
    font-size: 12px;
  }
  
  .content-title {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .pagination {
    margin-top: 20px;
    gap: 3px;
  }
  
  .pagination-btn {
    padding: 6px 10px;
    font-size: 12px;
    min-width: 32px;
  }
  
  /* FAQ 響應式樣式 */
  .faq-section {
    margin: 0 15px 30px;
    padding: 20px;
  }
  
  .faq-filters {
    gap: 8px;
    margin-bottom: 20px;
  }
  
  .filter-btn {
    padding: 6px 15px;
    font-size: 12px;
  }
  
  .faq-question {
    padding: 15px;
    font-size: 14px;
  }
  
  .faq-toggle {
    font-size: 20px;
  }
  
  .faq-answer.active {
    padding: 15px;
    /* max-height 將由JavaScript動態設定 */
  }
  
  .faq-category {
    font-size: 10px;
    padding: 2px 8px;
    margin-left: 5px;
  }

  /* 活動照片響應式樣式 */
  .photo-filters {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .filter-label {
    font-size: 14px;
  }
  
  .year-select {
    width: 100%;
    max-width: 200px;
    font-size: 14px;
  }
  
  .photo-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .photo-cover {
    height: 180px;
  }
  
  .photo-cover-icon {
    font-size: 36px;
  }
  
  .photo-cover-text {
    font-size: 12px;
  }
  
  .photo-info {
    padding: 15px;
  }
  
  .photo-title {
    font-size: 16px;
  }
  
  .photo-date {
    font-size: 12px;
  }
  
  .photo-description {
    font-size: 13px;
  }
  
  .photo-link {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .news-title {
    font-size: 14px;
  }
  
  .news-date {
    font-size: 12px;
  }
  
  .more-btn {
    padding: 6px 12px;
    font-size: 14px;
  }
  
  .modal-content {
    margin: 10px;
    padding: 20px;
    max-height: 90vh;
  }
  
  .footer {
    padding: 30px 0;
    margin-top: 40px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
    padding: 0 15px;
  }
  
  .footer-section h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }
  
  .footer-section p {
    font-size: 14px;
    margin-bottom: 6px;
  }
}
