/*========common.css(公用)========*/
/*--重設空隙--*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/*--(主標題)--*/
header {
    background-color: bisque;
    text-align: left;
    color: rgb(21, 192, 183);
    height: 50px;
    width: 100%;
    line-height: 50px;
    position: relative; 
}

header h1 a,
header h1 a:visited,
header h1 a:hover,
header h1 a:active {
    color: rgb(21, 192, 183);
    text-decoration: none;
}

a {text-decoration: none;}
a:hover {text-decoration: none;}

/* ----漢堡選單---- */

/* 隱藏選擇框 */
#menu-toggle {
    display: none;
}

/* 漢堡選單圖示 */
.menu-icon {
    font-size: 30px;
    cursor: pointer;
    padding: 0 15px;
    line-height: 50px;
    color: rgb(21, 192, 183);
    position: absolute;
    right: 5vw;
    top: 0;
}

/* 選單預設不顯示 */
.nav-links {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 50px;
    right: 0;
    background-color: bisque;
    border: 1px solid #ddd;
    border-radius: 5px;
    z-index: 100; /* 建議加入：確保選單浮在最上層 */
}

/* 點開選單 */
#menu-toggle:checked + .menu-icon + .nav-links {
    display: flex;
}

/* 手機 */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        width: 200px;
    }

    .nav-links li {
        padding: 10px;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
}

/* 桌機 */
@media (min-width: 769px) {
    .nav-links {
        flex-direction: row;
        gap: 2rem;
        padding: 10px 20px;
    }

    .nav-links li {
        padding: 0;
    }
}


/*頁尾*/
.footer{
    background-color: #ffffffb3 ;
    width: 100%;
    padding: 5px 0;
    text-align: center;
    margin-top: 600px;
}

/*以上內容為標題及頁尾樣式(完全共用)*/


