/* ✅ 導覽列主體樣式 */
.navbar {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 10px 0;
  background-color: #d5d5d5;
  font-size: 1rem;
  z-index: 100;
}

.navbar a {
  text-decoration: none;
  color: #003366;
  font-weight: 600;
  padding: 6px 12px;
  display: block;
  transition: color 0.2s;
}

.navbar a:hover {
  color: #0078d4;
}

/* ✅ 下拉選單結構 */
.dropdown {
  position: relative;
}

.dropdown > a {
  cursor: default;
}

/* ✅ 下拉選單內容樣式 */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  min-width: 200px;
  z-index: 10;
  border-radius: 4px;
}

.dropdown-content a {
  text-align: left;
  padding: 10px 16px;
  color: #003366;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s, color 0.2s;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
  color: #0078d4;
}

/* ✅ 控制 hover 行為 */
.dropdown:hover .dropdown-content {
  display: block;
}

/* ✅ 響應式調整：小螢幕下靠右展開 */
@media screen and (max-width: 768px) {
  .dropdown-content {
    left: auto;
    right: 0;
  }
}
