/* CSS 選單樣式 */
/*body {*/
   /* background-color: #EEEEEE;  全頁背景色 */
   /* margin: 0; */
/*}*/
 
/* 整個導覽列的區塊樣式 */
.navbarHP {
    background-color: #EEEEEE; /* 背景色：深藍 */
    padding: 10px;
    font-family: Arial, sans-serif;
    height: 25px; /* 導覽列高度 */
}

/* 導覽列內的 ul 列表 */
.navbarHP ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex !important; /* 關鍵：讓 <li> 橫向排列 加上強制 !important*/
    height: 100%; /* 與 navbarHP 同高 */
    align-items: center; /* 垂直置中 */
}

/* 每個選單項目 */
.navbarHP li {
    position: relative;
    margin-right: 20px;
    height: 100%;
    background-color: yellow;
}

/* 選單文字連結 */
.navbarHP a {
    background-color: #EEEEEE; /* 主選項背景 = 導覽列背景BF00FF */
    text-decoration: none;
    padding: 5px 5px;
    display: block;
    color: green; /* 字體顏色 */
    font-size: 14px;
    height: 100%;
    line-height: 25px; /* 垂直高度控制 */
}

    /* 滑鼠移上主選單變色 */
    .navbarHP a:hover {
        background-color:#f00; /* 滑鼠移入時底色 */
    }

/* 下拉選單容器（預設隱藏）子選單 ul */
.navbarHP li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 1000;
}

/* 下拉選單顯示條件：滑鼠移到上層 li */
.navbarHP li:hover > ul {
    display: block;
}

/* 下拉選單項目 */
.navbarHP li ul li a {
    color: #333;
    background-color: #ffffff;
    padding: 10px 10px;
}

    /* 滑鼠移入子選單變色 */
    .navbarHP li ul li a:hover {
        background-color: #f00;
    }
