/* navbar.css - 導覽列樣式 */
:root {
  --accent: #003366;
  --purple: #6a1b9a;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 20px;                     /* 高度 */
  background: rgba(255, 255, 255, 0.8);  /* 半透明 */
  backdrop-filter: blur(5px);            /* 模糊效果 */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img.logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.brand h1 {
  font-size: 1.2rem;
  margin: 0;
  color: var(--accent);
  font-family: Arial, sans-serif;        /* 字型 */
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0 10px 0 0;   /* ★ 新增右側內邊距 10px */
  display: flex;
  gap: 8px;
  align-items: center;
}


nav a {
  display: inline-block;
  padding: 8px 12px;
  color: var(--accent);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-family: Arial, sans-serif;       /* 字型 */
}

nav a:hover {
  color: var(--purple);
}

@media(max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  nav ul {
    flex-wrap: wrap;
  }
}
