/* 導覽列與頂部橫幅樣式 */

/* 頂部橫幅 */
.top-banner {
  width: 100%;
  background-color: var(--color-primary);
  color: var(--color-dark);
  text-align: center;
  font-size: 0.9rem;
  padding: 0.5rem 2.5rem 0.5rem 0.5rem; /* 留出空間給關閉按鈕 */
  position: relative;
}
.top-banner a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.top-banner .banner-close {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--color-dark);
}

/* 導覽列基礎樣式 */
.nav-header {
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-accent3);
  text-decoration: none;
}

/* 導覽選單 */
.nav-menu {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 260px;
}
.nav-menu.open {
  display: block;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}
.nav-list li {
  margin-right: 1rem;
}
.nav-list li:last-child {
  margin-right: 0;
}
.nav-list li a {
  text-decoration: none;
  color: var(--color-dark);
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.2s;
}
.nav-list li a:hover {
  color: var(--color-accent1);
}

/* 社群圖示 */
.social-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: visible;
  flex: 0 0 auto;
}
.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex: 0 0 auto;
  color: var(--color-accent3);
  background-color: transparent;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}
.social-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
/* 各平台 hover 顏色 */
.social-icon.facebook:hover {
  background-color: #1877F2;
  color: #fff;
}
.social-icon.instagram:hover {
  background-color: #F58529;
  color: #fff;
}
.social-icon.pinterest:hover {
  background-color: #E60023;
  color: #fff;
}

/* 漢堡按鈕 */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background-color: var(--color-dark);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

/* 行動裝置 RWD */
@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    display: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  .nav-list {
    flex-direction: column;
  }
  .nav-list li {
    margin: 0;
    border-bottom: 1px solid var(--color-secondary);
  }
  .nav-list li a {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
  }
  /* Mobile 仍保留社群圖示，避免遺失 Pinterest 等 icon */
  .social-icons {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
}