* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: 'Noto Sans TC', sans-serif;
  background: linear-gradient(to bottom right, #f0f9ff, #dff1ff);
  /* 美化背景 */
  color: #333;
}

/* === 設定 body 為垂直 Flex Container === */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  padding: 35px 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  z-index: 1000;
}

.logo {
  height: 60px;
  /* 根據 header 目前大小 */
  transform: scale(2.0);
  transform-origin: left center;
}

nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
  align-items: center;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: #007acc;
  font-weight: 500;
  font-size: 16px;
}

.nav-links a:hover {
  text-decoration: underline;
}


.nav-links li:hover .dropdown-content {
  display: block;
}

main {
  flex: 1;
  padding: 140px 40px 40px;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fafafa;
  padding: 20px 40px;
  text-align: center;
  font-size: 14px;
  color: #555;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

/* 整體背景加漸層＋柔光模糊效果 */
.about-wrapper {
  background: linear-gradient(to bottom right, #f0f9ff, #dff1ff);
  padding: 1px 20px 100px;
  display: flex;
  justify-content: center;
}

/* 白色卡片內容加陰影 + 圓角 + 輕邊框 */
.about-card {
  background-color: lab(100% 0.01 -0.01);
  max-width: 1200px;
  width: 100%;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e3e7ec;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 內部圖文排版 */
.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}

.about-left,
.about-right {
  flex: 1 1 460px;
}

/* 左側圖片樣式 */
.about-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* 右側文字區塊 */
.about-right p {
  font-size: 18px;
  line-height: 2;
  color: #333;
  letter-spacing: 0.3px;
  background: #fdfdfd;
  padding: 24px 28px;
  border-left: 5px solid #007acc;
  border-radius: 12px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.03);
}

/* page2 圖片置中區塊 */
.page2-container {
  margin-top: 50px;
  text-align: center;
}

.page2-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* 響應式調整 */
@media (max-width: 576px) {
  header {
    flex-wrap: nowrap;
    /* 不要上下換行 */
    padding: 16px 20px;
  }

  .logo {
    transform: scale(1.3);
    height: auto;
    max-height: 40px;
    flex-shrink: 0;
    object-fit: contain;
    /* 若需要避免變形 */
  }

  nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    overflow-x: auto;
    /* 超出時可左右滑 */
  }

  .nav-links {
    flex-wrap: nowrap;
    gap: 16px;
    justify-content: flex-end;
  }

  .nav-links a {
    font-size: 15px;
    white-space: nowrap;
    /* 防止文字自動換行 */
  }

  /* Main 主內容區塊縮小內距 */
  main {
    padding: 120px 20px 80px;
  }

  footer {
    padding: 16px;
    font-size: 13px;
    text-align: center;
    line-height: 1.6;
    word-break: break-word;
  }
}