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;
}




/*  5個功能 結束*/    


/* 網頁內容圖&option置中開始 */
	 
.image-container:not(.main-navigation) {
    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 {
    
    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;
    border-radius: 999px;
    width: 500px;
    font-size: 28px;
}

.option:hover {
    background-color: #d8f4ff;
}



/* 手機端調整 */
@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%; /* 手機上調整高度 */
    }
}

.main-navigation {
      max-width: 980px;
      margin: 12px auto 22px;
      padding: 8px 14px;
      display: block;
      justify-content: center;
      align-items: center;

      background: #ffffff;
      border-radius: 20px;
      box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    }

    .nav-links {
      display: flex;
      flex-direction: row;
      gap: 6px;
      overflow-x: auto;
      scrollbar-width: none;
    }

    
    .nav-links::-webkit-scrollbar { display: none; }

    /* .nav-links:not(#temp) a:not(.highlight1) {
      flex: 0 0 auto;
      padding: 6px 16px;
      font-size: 15px;
      color: #444;
      text-decoration: none;

      background: #f3f3f5;
      border-radius: 999px;
      border: 1px solid #dcd7e5;

      transition: all 0.25s ease;
      
    } */

    .nav-links a {
      flex: 0 0 auto;
      padding: 6px 16px;
      font-size: 23px;
      color: #444;
      text-decoration: none;
      justify-content: center;
      align-items: center;

      background: #eeeefc;

      border-radius: 999px;
      border: 1px solid #dcd7e5;

      transition: all 0.25s ease;
    }

    #sub a {
        font-size: 15px;
        background: none;
    }

    

    /* 滑過：淡紫色 */
    .nav-links a:hover {
      background: #efd9ff;
      border-color: #bf9ee6;
      color: #4b2a6a;
      box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    }

    /* 手動標示目前頁面 active */
    .nav-links a.active {
      background: #7a1fa2;
      color: #fff;
      border-color: #7a1fa2;
      box-shadow: 0 3px 10px rgba(122,31,162,0.35);
    }

    @media (max-width: 768px) {

      .nav-links {
        display: flex;               /* ⭐ 保持 flex */
    flex-direction: row;
    gap: 10px;

    overflow-x: auto;            /* ⭐ 開啟橫向滑動 */
    -webkit-overflow-scrolling: touch;

    justify-content: flex-start; /* ⭐ 從左開始，才能滑 */
      }

    /* 手機nav排兩行 */
      .nav-links a {
        flex: 0 0 auto;              /* ⭐ 不被壓縮 */
    padding: 8px 14px;
    font-size: 18px;
    white-space: nowrap;         /* ⭐ 文字不換行 */
      }
    }

    #sub a {
        font-size: 14px;
    }

    .nav-links a.highlight1 {
        
    background-color: rgb(190, 103, 198);
    color: white; /* 可選，使字更清楚 */
    padding: px px;
    border-radius: 999px; /* 可選，讓外框有圓角 */
    display: inline-block;
}

.nav-links a.highlight2 {
    
    background-color: #ceceff;
    border: 1.5px solid rgb(190, 103, 198);
    color: rgb(190, 103, 198); /* 可選，使字更清楚 */
    padding: px px;
    border-radius: 999px; /* 可選，讓外框有圓角 */
    display: inline-block;
}

/* .image-container .main-navigation{
    overflow: auto;
    
}

.image-container .main-navigation{
    overflow-x: auto;
    touch-action: pan-x;
} */