body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    justify-content: space-between;
}



@media (max-width: 768px) {
    .container {
    flex-direction: column; /* 在小屏幕上垂直排列 */
    }

    .right-column {
    width: 100%; /* 在小屏幕上占满整个宽度 */
    }

    
}

.logo {
    position: absolute;
    left: calc(50% - 15px); /* 左偏移 10px，并保持水平居中 */
    top: 50%;
    transform: translate(-50%, -50%);
    width: 200px; /* 調整您的LOGO寬度 */
    margin-top:5px;
    margin-bottom:5px;
}


@media screen and (max-width: 768px) {
    
    .menu.active {
        display: block; /* 显示菜单 */
    }
}



 /* 5個功能開始 */
.menu {
    text-align: center;
    width: 65%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .menu {
    text-align: center;
    width: 85%;/* 手機版預設值寬些 */
    margin: 0 auto;
}
}

.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;
}

.menu li {
    text-align: center;
    position: relative;
    padding: 5px;
}


.menu li a {
    text-decoration: none;
    color: black;
    font-size: 18px;

}

a {
    text-decoration: none;
    color:dimgray;
}



.main-navigation {
    justify-content: center; /* 水平置中 */
    gap: 20px; /* 元素間距，可依需求調整 */
    width: 100%;/* 手機版預設值寬些 */
    margin: 0 auto;
    display: flex;
    overflow-x: auto; /* 允许水平滚动 */
}

.nav-links {
    margin-top:5px;
    margin-bottom:5px;
    display: flex;
    flex-direction: row;
}

.nav-links a {
    display: block;
    padding: 6px;
    text-decoration: none;
    color: #333;
    background-color: #fefdfd;
    border: 1px solid #ccc;
    margin: 1px;
    transition: background-color 0.3s;
    
    /* 设置中文文本横向排列 */
    writing-mode: horizontal-tb; /* 水平从左到右排列 */
    text-orientation: mixed; /* 混合方式显示文本 */
}

.nav-links a:hover {
    background-color: #ddd;
}

.nav-links a.highlight {
        
    background-color: rgb(190, 103, 198);
    color: white; /* 可選，使字更清楚 */
    padding: px px;
    border-radius: 0px; /* 可選，讓外框有圓角 */
    display: inline-block;
}

.nav-links a.highlight2 {
    
    background-color: white;
    border: 1.5px solid rgb(190, 103, 198);
    color: rgb(190, 103, 198); /* 可選，使字更清楚 */
    padding: px px;
    border-radius: 1px; /* 可選，讓外框有圓角 */
    display: inline-block;
}



/* 小屏幕样式 */
@media screen and (max-width: 767px) {
    .main-navigation {
        overflow-x: scroll; /* 允许水平滚动 */
        white-space: nowrap; /* 防止文本换行 */
    }
        
    .nav-links {
        flex-wrap: nowrap; /* 防止文本换行 */
        font-size: 16px;
    }
        
    .nav-links a {
        flex: 0 0 auto;
    }
        
    .menu li a {
    text-decoration: none;
    color: black;
    font-size: 17px;
    }

}
/*  5個功能 結束*/    


/* 網頁內容圖&option置中開始 */
	 
.image-container {
    display: flex;
    max-width: 1000px;
    flex-wrap: wrap;
    align-items: center;    /* 水平置中 */
    justify-content: center;/* 垂直置中（如果需要整塊居中） */
    text-align: center;     /* 讓裡面文字內容也置中 */
}

.image-item {
    flex: 0 0 calc(25% - 10px); /* 25%宽度，留有10px的间隙 */
    margin-bottom: 20px;
    text-align: center;
}

.image-item img {
    max-width: 100%;
    height: auto;
}

.image-intro {
    text-align: center; /* 讓圖片在容器中水平置中 */
    padding: 10px;
}

.image-intro img {
    max-width: 100%;     /* 讓圖片寬度不超過容器寬度 */
    height: auto;        /* 保持圖片比例 */
    display: flex;
}



.option-container {
    background-color: #eae9e9; /* 淺灰背景 */
    width: 800px;
    margin: 0px auto 30px; /* 與圖片間距10px並置中 */
    border-radius: 10px;
    padding: 20px 0;
    display: flex;
    flex-direction: column; /* 垂直排列 */
    align-items: center;
    gap: 10px; /* 選項間距 */
}

.option {
    text-decoration: none;
    background-color: white;
    padding: 10px 20px;
    border-radius: 5px;
    color: #333;
    border: 1px solid #ccc;
    width: 500px;
    font-size: 28px;
}

.option:hover {
    background-color: #ddd;
}



/* 手機端調整 */
@media (max-width: 680px) {
    .option-container {
        flex-direction: column;  /* 手機時按鈕改成直排 */
        gap: 8px;
        width: 93%;
    }
    .option {
        width: 80%;             /* 按鈕滿版 */
        text-align: center;
    }
}

/* 彈窗背景 */
.modal {
    display: none; /* 預設隱藏 */
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
}

/* 彈窗內容區 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
}

/* 彈窗內容 */
.modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* 關閉按鈕 */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #333;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}
.close:hover {
    color: red;
}

.modal-content iframe {
    width: 100%;
    height: 80vh;
    border: none;
}

iframe {
    width: 100%; /* 設定 iframe 寬度 100% */
    height: auto; /* 預設高度為 300px 400*/
    border: none; /* 隱藏邊框 */
    overflow: hidden; /* 隱藏內容溢出的部分 */
}

@media (max-width: 980px) {
    iframe {
        width: 100%; /* 設定 iframe 寬度 100% */
        height: 100%; /* 手機上調整高度 */
    }
}