/*========style.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;
}

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;}

/*--link1~4--*/
header ul {
    position:absolute;
    right:5vw;
    top: 0;
    line-height: 50px;
}

/*--link1~4之間距--*/
header li {
    display: inline;
    margin-right: 4vw;
}

/*以上內容為標題 有改動全部都要重新貼過去*/

/*--更新紀錄--*/
.announcement-board {
    height: 500px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.board-title {
    vertical-align: top;
    text-align: center;
    font-size: 20px;
    font-weight: normal;
}

.announcement-board article h3 {
    color: #ff9800;
}

/*頁尾1*/
#ft01 {  
    background-color: #1eace9;
    padding: 5px 0;
    text-align: center;
    margin-bottom: 0;
    color: white;
}

/*頁尾2*/
#ft02 {
    background-color: #E91E63;
    padding: 3px 0;
    text-align: center;
    color: black;
}

/*==========================
    📱 手機版 RWD 修正
===========================*/
@media (max-width: 768px) {

    /* Header RWD */
    header {
        height: auto;
        line-height: normal;
        padding: 10px 0;
        text-align: center;
    }

    header h1 {
        margin-bottom: 10px;
    }

    header ul {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
        margin-top: 5px;
    }

    header li {
        margin: 5px 0;
        display: block;
    }

    /* 公告欄自動高度、寬度縮小 */
    .announcement-board {
        width: 95%;
        max-width: 95%;
        height: auto; /* 原本500px改為自動，高度自適應內容 */
        padding: 15px;
        box-sizing: border-box;
    }

    .board-title {
        font-size: 18px;
    }

    .announcement-board article h3 {
        font-size: 16px;
    }

    /* Footer */
    #ft01, #ft02 {
        font-size: 14px;
        padding: 8px 0;
        text-align: center;
        width: 100%;
        word-break: break-word;
    }
}
