/* 📁 /css/header.css */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans TC", sans-serif;
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 72px;
  background: rgba(50, 245, 245, 0.5);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid rgba(50, 245, 245, 0.5);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  height: 100%;
  position: relative;
}

.nav-left .logo {
  height: 48px;
  width: auto;
}

.nav-list {
  display: flex;
  gap: 1rem;
  list-style: none;
  flex-grow: 1;
  justify-content: center;
  align-items: center;
  padding-top: 8px;
}

.nav-list li a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  display: inline-block;
  white-space: nowrap;
  transition: color 0.3s;
}

.nav-list li a:hover {
  color: #0ab7e7;
}

.nav-buttons {
  display: flex;
  gap: 0.5rem;
  order: 2; /* 預設桌機靠右 */
  margin-right: 0.5rem; /* ✅ 手機版與漢堡距離更近 */
}

.custom-btn {
  padding: 0.4rem 1rem;
  border: 1px solid #03ebeb;
  border-radius: 4px;
  background: rgba(1, 202, 175, 0.8);
  color: #101110;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.custom-btn:hover {
  background: #55ef83;
  color: #000;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  order: 3; /* 手機時顯示在最右側 */
}

/* 隱藏手機版按鈕（完全不顯示） */
.mobile-buttons {
  display: none !important;
}

@media (max-width: 768px) {
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .hamburger {
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    right: 0;
    width: 240px;
    background: #08e9f9;
    height: auto;
    padding: 1rem 0;
    z-index: 999;
    border-radius: 0 0 0 8px;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.4);
  }

  .nav-list.show {
    display: flex;
  }

  .nav-buttons {
    display: flex;
    order: 1; /* 手機時顯示在漢堡左邊 */
    margin-right: -60px; /* ✅ 調整與漢堡間距更靠近 */
  }
}
