/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  color: #000;
  
}
/* ===== HERO ===== */
/* Hero Title */
.hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 150px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  font-size: 6rem;
  font-weight: bold;
  background: #fff;
  z-index: 1000;
  transition: transform 0.3s ease;
  text-align: center;
}
.hero a{
  text-decoration: none;
  color: #000;
}
/* RWD - 平板 */
@media (max-width: 1024px) {
  .hero {
    height: 110px;
    font-size: 4.5rem;
    padding-bottom: 15px;
  }
}

/* RWD - 手機 */
@media (max-width: 767px) {
  .hero {
    height: 90px;
    font-size: 3rem;
    padding-bottom: 15px;
  }
}

/* RWD - 小手機 */
@media (max-width: 480px) {
  .hero {
    height: 100px;
    font-size: 2.2rem;
    padding-bottom: 25px;
  }
}

.hero.hide {
  transform: translateY(-100%);
}

/* ===== NavBar ===== */
/* Navbar 基本樣式 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  font-size: 2rem;
  z-index: 999;
}

.navbar-left {
  font-weight: bold;
  font-size: 2.5rem;
}
.navbar-left a {
  text-decoration: none;
  color: #000;
}

.desktop-menu {
  display: flex;
  gap: 30px;
}

.desktop-menu a {
  text-decoration: none;
  color: #000;
  font-size: 1.8rem;
  font-weight: 200;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 200;
  color: #000;
}

@media (max-width: 768px) {
  .navbar-left { font-size: 2rem; }
  .menu-toggle { display: block; font-size: 1.8rem; }
  .desktop-menu { display: none; }
}

@media (max-width: 480px) {
  .navbar-left { font-size: 1.3rem; }
  .menu-toggle { display: block; font-size: 1.3rem; }
  .desktop-menu { display: none; }
}

/* ===== 手機版 MENU===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  flex-direction: column;
  z-index: 1000;

  display: flex;
  justify-content: flex-start;
  align-items: center;

  /* 整體隱藏 */
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

/* CLOSE 按鈕固定在頂部 */
.mobile-menu .close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  text-decoration: none;
  color: #000;
}

.mobile-menu .close-btn img {
  width: 30px;
  height: 30px;
}

/* 選單內容 */
.mobile-menu .menu-content {
  margin-top: 80px; /* 避開 Close 按鈕 */
  display: flex;
  flex-direction: column;
  align-items: center;

  /* 初始滑入位置 */
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.mobile-menu.show {
  transform: translateY(0); /* 整個選單滑入 */
}

.mobile-menu.show .menu-content {
  transform: translateY(0); /* 內容滑入 */
}

.mobile-menu a {
  padding: 20px;
  text-decoration: none;
  color: #000;
  font-size: 2rem;
  font-weight: 200;
  text-align: center;
}

/* ===== 作品展示格 ===== */
/* Gallery */
.gallery {
  margin-top: 150px; /* Hero + Navbar 空間 */
  padding: 40px;
  display: grid;
  grid-gap: 20px;
  justify-content: center;
}

/* RWD Grid */
@media (min-width: 1025px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 120px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 90px;
  }
}

@media (max-width: 767px) {
  .gallery {
    grid-template-columns: repeat(1, 1fr);
    margin-top: 50px;
  }
}

/* Gallery Item - 固定長寬比例 */
.gallery-item {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #f2f2f2;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 內容圖片 */
.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}

/* ===== Footer ===== */
footer {
  position: fixed;
  bottom: -100px; /* 初始隱藏 */
  left: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.15); /* 更透亮 */
  backdrop-filter: blur(10px); /* 毛玻璃模糊效果 */
  -webkit-backdrop-filter: blur(10px); /* Safari 支援 */
  box-shadow: none;
  z-index: 999;
  transition: bottom 0.6s ease, opacity 0.6s ease;
  opacity: 0;
}



/* Footer 出現狀態 */
footer.show {
  bottom: 0;
  opacity: 1;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  text-decoration: none;
}

/* ===== 手機版 ===== */
@media (max-width: 768px) {
  footer {
    flex-direction: column-reverse;
    align-items: flex-start;
    padding: 15px 20px;
    gap: 10px;
  }
  .social-icons {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  footer {
    font-size: 0.9rem;
  }
}

/* ===== Back to Top ===== */
/* Back to Top 按鈕 */
#backToTop {
  position: fixed;
  bottom: 55px;
  right: 40px;
  width: 50px;
  height: 90px;
  text-align: center;
  line-height: 50px;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.3s ease;
  z-index: 999;
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#backToTop:hover {
  transform: translateY(-5px);
}

#backToTop img {
  width: 50px;   /* 放大寬度，可調整成想要的尺寸 */
  height: auto;  /* 保持原圖比例 */
  display: block;
}

/* ===== FAQ ===== */
.faq-container {
  max-width: 1200px;
  width: 100%;
  margin: 100px auto; /* 上下留白 100px */
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* 垂直居中 */
  align-items: center;
  box-sizing: border-box;
}

.faq-wrapper {
  width: 100%;
  border-bottom: 1px solid #e0e0d6;
  margin-bottom: 20px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1rem;
  padding: 15px 0;
  cursor: pointer;
}

.faq-toggle-icon {
  width: 25px;
  height: 25px;
  transition: transform 0.3s ease;
}

/* 展開時旋轉圖示 */
.faq-wrapper.active .faq-toggle-icon {
  transform: rotate(45deg);
}

/* FAQ 答案 */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 25px;
  padding: 0 0;
}

.faq-answer p {
  margin: 0;
}

/* 展開答案 */
.faq-wrapper.active .faq-answer {
  padding: 55px 0;
  max-height: 1000px; /* 夠大以容納內容，可根據需要調整 */
}

/* 連結樣式 */
a {
  color: #171719;
  text-decoration: underline;
}

/* ===== 作品頁面===== */

.works-gallery {
  margin: 120px 40px;
  display: grid;
  grid-gap: 20px;
  justify-content: start;
}

/* RWD Grid */
@media (min-width: 1025px) {
  .works-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .works-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .works-gallery {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* 每個作品卡片 */
.works-gallery-item {
  width: 100%;
  overflow: hidden;
}

/* 照片比例固定 */
.works-gallery-item a {
  display: block;
  width: 100%;
  padding-top: 100%; /* 正方形 */
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 圖片 */
.works-gallery-item img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}

/* Hover 效果只作用於圖片 */
.works-gallery-item a:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.works-gallery-item a:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* 作品資訊（獨立於圖片） */
.works-info {
  padding: 8px 0;
  text-align: left; /* 靠左 */
}

.works-info .year {
  font-weight: 700;
  color: #000;
}

.works-info .title {
  margin: 2px 0;
  color: #000;
}

.works-info .material {
  font-size: 14px;
  color: #000;
}

/* ===== Info ===== */
.info-section {
  display: flex;
  justify-content: center;   
  align-items: center;       
  padding: 100px 20px;
  padding-top: 200px;
  min-height: calc(100vh - 200px);
  font-family: 'Montserrat', sans-serif;
  color: #000;
  box-sizing: border-box;
}

.info-container {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  align-items: center;  /* 垂直對齊置中 */
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.info-photo {
  flex: 1 1 300px;
  max-width: 400px;
}

.info-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.info-content {
  flex: 2 1 400px;
}

.artist-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.artist-name-en {
  font-size: 1.3rem;
  font-weight: 400;
  color: #000;
  margin-bottom: 20px;
}

.artist-bio {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 50px;
}

.artist-contact p {
  font-size: 0.95rem;
  margin: 5px 0;
}

.artist-contact strong {
  font-weight: 500;
}

/* ===== Info ===== */
.info-section {
  display: flex;
  justify-content: center;   
  align-items: center;       
  padding: 120px 20px;          /* 基本上下安全距離 */
  padding-top: 200px;           /* 額外避開 fixed navbar */
  min-height: calc(100vh - 240px); /* 扣掉上下安全距離 */
  font-family: 'Montserrat', sans-serif;
  color: #000;
  box-sizing: border-box;
}

.info-container {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.info-photo {
  flex: 1 1 300px;
  max-width: 400px;
}

.info-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.info-content {
  flex: 2 1 400px;
}

.artist-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.artist-name-en {
  font-size: 1.3rem;
  font-weight: 400;
  color: #000;
  margin-bottom: 20px;
}

.artist-bio {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 50px;
}

.artist-contact p {
  font-size: 0.95rem;
  margin: 5px 0;
}

.artist-contact strong {
  font-weight: 500;
}

/* ===== 平板 (<=1200px) ===== */
@media screen and (max-width: 1200px) {
  .info-section {
    padding: 100px 20px;
    padding-top: 160px; /* 避開 navbar */
    min-height: calc(100vh - 200px);
  }

  .info-container {
    flex-direction: row; /* 保持左圖右文 */
    gap: 40px;
  }

  .info-photo {
    max-width: 300px;
  }

  .artist-name {
    font-size: 1.8rem;
  }

  .artist-bio {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

/* ===== 手機 (<=900px) ===== */
@media screen and (max-width: 900px) {
  .info-section {
    padding: 80px 20px;
    padding-top: 140px; /* 手機版同樣避開 navbar */
    min-height: calc(100vh - 160px);
    text-align: center;
  }

  .info-container {
    flex-direction: column;
    gap: 40px;
  }

  .info-photo,
  .info-content {
    max-width: 100%;
  }

  .artist-name {
    font-size: 1.6rem;
  }

  .artist-name-en {
    font-size: 1.1rem;
  }

  .artist-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 40px;
  }
}