/* 基礎樣式 - 所有佈局共用開始 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "DFKai-SB", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    padding-top: 70px; /* 導航欄高度 */
}

/* 超連結設定 */
a {
    text-decoration: none; /* 無底線 */
    color: #000000; /* 預設黑色 */
}
a:hover {
    color: #ff6600; /* 滑鼠懸停時變紅色 */
}

/* 設定內文排版 */
h1{
    color: #e70f0f;
    font-family: "DFKai-SB", sans-serif,'Noto Sans TC';
    font-size: 28px;
    text-align: center;
    line-height: 1.5;
    font-weight: 900;
   }
h2{
    color: #050505;
    font-family: "DFKai-SB", sans-serif;
    font-size: 26px;
    text-indent: 20px; /* 設定文字左邊界*/	
    line-height: 1.2;
   }
h3{    
    font-size: 22px; 
    color: #ffffff;   
   }

   p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1px;
}

.content {
    max-width: 90%;
    margin: 0 auto;
    /* margin: 20px; */
    padding: 20px;
    text-indent: 2em; /* 標題2 個中文字的縮排 */
    line-height: 1.6;
    font-size: 18px;
}

/* 基礎樣式 - 所有佈局共用結束 */

/* 內容區基礎樣式開始 */
.content-section {
    position: relative;
    scroll-margin-top: 50px; /* 導航欄高度 */
    margin: 30px 0;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.content-section h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* 佈局容器 */
.main-container {
    display: flex;
    margin-top: 20px;
}

/* 三區佈局 */
.layout-3columns .left-column {
    width: 20%;
    padding: 15px;
    background-color: #f8f9fa;
    height: calc(100vh - 90px);
    overflow-y: auto;
    position: sticky;
    top: 70px;    
}

.layout-3columns .middle-column {
    width: 55%;
    padding: 0 15px;
}

.layout-3columns .right-column {
    width: 25%;
    padding: 15px;
    background-color: #e9ecef;
    height: calc(100vh - 90px);
    overflow-y: auto;
    position: sticky;
    top: 70px;
}

/* 三區佈局左欄字體 */
.layout-3columns .left-column .section-link {
    font-size: 0.9em; /* 原大小 */
}

/* 二區佈局 */
.layout-2columns .left-column {
    width: 25%;
    padding: 15px;
    background-color: #f8f9fa;
    height: calc(100vh - 90px);
    overflow-y: auto;
    position: sticky;
    top: 70px;
}

.layout-2columns .middle-column {
    width: 75%;
    padding: 0 15px;    
}

/* 二區佈局左欄字體 (加大) */
.layout-2columns .left-column .section-link {
    font-size: 1.3em;  /* 加大 10% */
    line-height: 1.5;  /* 增加行高提升可讀性 */
}

/* 一區佈局開始 */
.layout-1column .full-column {
    width: 100%;
    padding: 0 15px;
}

/* 一區佈局專用樣式 */
.layout-1column .content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.layout-1column .content-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
}

.layout-1column .content-item img {
    width: 100%;
    height: auto;
    margin-top: 10px;
}
/* 一區佈局結束 */

/* 圖片區樣式開始 */
.image-container {
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.image-container figcaption {
    padding: 10px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

img {
    border: 1px solid #c8c3c3; /* 添加邊框 */
    transition: transform 0.3s ease; /* 添加縮放動畫 */
}

/* 圖片說明樣式 */
.image-description {
    margin-bottom: 5px;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 10px solid #3498db;
}

/* 大圖片容器 */
.large-image-container {
    margin: 20px 0;
    text-align: center;
}

.large-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 小圖片容器 */
.small-images-container {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    gap: 20px;
}

.small-image-wrapper {
    flex: 1;
    text-align: center;
}

.small-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.image-caption {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

/* 針對手機等小螢幕設備的樣式 */
/* 平板設備 (768px - 1024px) */
@media (max-width: 1024px) {
    .left-column, 
    .right-column {
        width: 25%;
    }
    
    .middle-column {
        width: 50%;
    }

    .large-image {
        max-width: 90%;
    }
    
    .small-images-container {
        flex-wrap: wrap;
    }
    
    .small-image-wrapper {
        flex: 0 0 calc(50% - 10px);
    }
}

@media only screen and (max-width: 768px) {
    /* 垂直排列三欄 */
    .main-container {
        flex-direction: column;
    }
    
    .left-column,
    .middle-column,
    .right-column {
        width: 100%;
        height: auto;
        position: static;
        padding: 15px;
    }
    
    .left-column {
        order: 1;
    }
    
    .middle-column {
        order: 2;
    }
    
    .right-column {
        order: 3;
    }
    
    .large-image {
        max-width: 100%;
    }
    
    .small-images-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .small-image-wrapper {
        flex: 1 1 100%;
    }
    
    .small-image {
        max-width: 100%;
    }
    
    .image-description {
        font-size: 14px;
        padding: 10px;
    }

    .section-link {
        padding: 5px 10px; /* 手機上更緊湊 */
        font-size: 0.85em;
    }
    
    .section-title {
        margin: 1px 0;
    }


    .item2 img {
      max-width: 100%;  /* 圖片最大寬度為容器寬度 */
      height: auto;     /* 高度自動調整以保持比例 */
      width: auto;      /* 覆蓋原有的固定寬度設定 */
      display: block;   /* 確保圖片正確響應 */
      margin: 0 auto;   /* 讓圖片居中 */
    }
    
    /* 如果有其他特定寬度的圖片需要調整 */
    .item2 img[width],
    .menu3 img[height] {
    max-width: 100%;
    height: auto !important;
    }
  }

img:hover {
    transform: scale(1.1); /* 滑鼠懸停時放大圖片 */
}
/* 圖片區樣式結束 */

/* 標題連結樣式 */

/* 左區超連結樣式開始 */
.section-title a {
    display: block;
    padding: calc(12px / 5) 12px; /* 超連結高度 */
    color: #2c3e50;
    text-decoration: none !important; /* 確保所有情況下都無底線 */
    transition: all 0.3s ease;
    font-size: 15px;
}

/* 懸停狀態 */
.section-title a:hover {
    color: #3498db;
    background-color: #f1f5f9;
    text-decoration: none !important; /* 確保懸停時也無底線 */
}

/* 移除預設的連結樣式 */
.section-title a:visited, /* 訪問過後的狀態 */
.section-title a:focus, /* 焦點狀態 */
.section-title a:active { /* 活動狀態 */
    outline: none; /* 移除焦點時的輪廓線 */
    text-decoration: none !important; /* 確保無底線 */
}

/* 當前活動的連結樣式 */
.section-title.active {
    color: #fff;
    background-color: #3498db;
    border-left: 4px solid #2980b9;
}

/* 點擊左區摘錄標題超連結時，有0.2s~0.5s的緩衝效果 */
html {
    scroll-behavior: smooth;
}

/* 連結網頁添加提示↗ */
.section-link[href^="http"],
.section-link[href$=".htm"] {
    color: #660a10;
}
.section-link[href^="http"]::after,
.section-link[href$=".htm"]::after {
    content: "🌍";
    font-size: 0.8em;
}
/* 左區超連結樣式結束 */

/* 手機平板設備調整開始*/
/* 平板設備調整 (768px - 1024px) */
@media (max-width: 1024px) {
    /* 三區佈局調整 */
    .layout-3columns .left-column,
    .layout-3columns .right-column {
        width: 25%;
    }
    
    .layout-3columns .middle-column {
        width: 50%;
    }
    
    /* 二區佈局調整 */
    .layout-2columns .left-column {
        width: 30%;
    }
    
    .layout-2columns .middle-column {
        width: 70%;
    }
}

/* 手機設備調整 (小於768px) */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    /* 所有佈局改為垂直排列 */
    .main-container {
        flex-direction: column;
    }
    
    /* 三區佈局手機版 */
    .layout-3columns .left-column,
    .layout-3columns .middle-column,
    .layout-3columns .right-column {
        width: 100%;
        height: auto;
        position: static;
        padding: 15px;
    }
    
    /* 二區佈局手機版 */
    .layout-2columns .left-column,
    .layout-2columns .middle-column {
        width: 100%;
        height: auto;
        position: static;
        padding: 15px;
    }    
    
    /* 一區佈局手機版不需要調整 */
    
    /* 響應式左欄字體大小調整 (手機統一大小) */
    .layout-3columns .left-column .section-link,
    .layout-2columns .left-column .section-link {
        font-size: 1em; /* 手機統一標準大小 */
    }

    /* 回頂部按鈕調整 */
    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    /* 為右欄留出空間 */
    .layout-3columns .right-column {
        padding-bottom: 70px;
    }
}
/* 手機平板設備調整結束*/

/* 內容區基礎樣式結束 */

/* 導覽列設定開始*/
.navbar {
    position: fixed;/* 讓導覽列固定 */
    height: 50px;
    top: 0;
    width: 100%;
    max-width: 100%; /* 新增這行確保不超過視窗寬度 */    
    background-color: rgba(79, 195, 245, 0.9); /* 導覽列背景rgba(97, 235, 179, 0.9) */
    z-index: 1000;/* 確保選單在最上層 */
    display: flex;
    align-items: center;
    justify-content: space-between; 
    font-size: 18px;    
}

.logo {
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.logo img {
    height: 40px; /* 調整標章大小 */
    
    /*position: absolute;  
    top: 5px;  
    left: 10px;
     vertical-align: middle; 
    display: block;*/
    margin-right: 3px; /* Logo 和公司名稱之間的間距 */
}

.company-name {
    color: white;
    margin-left: 10px;
    font-size: 1.2em;
    font-weight: bold; /* 設定公司名稱文字粗體 */
    white-space: nowrap; /* 防止文字換行 */
}

.menu-container {
    flex-grow: 1; /* 讓選單容器佔滿剩餘空間 */
    display: flex;
    justify-content: center; /* 讓選單置中 */
}
.menu {
    list-style: none;
    background-color: rgba(85, 193, 240, 0.3);/* 下拉選單背景 */
    padding: 0;
    margin: 0;    
    /* display: inline-block; 讓選單內容置中 */
    align-items: center;/* 讓選單內容置中 */
}

.submenu {
    list-style: none;
    background-color: rgba(110, 245, 191, 1.0);/* 下拉選單背景 */
    padding: 0;/* 更小的 padding */    
    line-height: 1.2;/* 調整選單高度 */  
    font-size: 0.9em;/* 調整選單字體大小 */
    margin: 0;    
    /* display: inline-block; 讓選單內容置中 */
    align-items: center;/* 讓選單內容置中 */
}

.menu > li {
    display: inline-block;
    position: relative;
}

.menu a {
    display: block;
    padding: 8px 5px; /* 調整選單相隔距離 */
    color: rgb(255, 255, 255);    
    text-decoration: none;
    white-space: nowrap; /* 防止文字換行 */
}

.menu a:hover {
    background-color: #6795e6;/* 滑鼠經過顏色 */
}

.submenu {
    display: none;
    position: absolute;
    top: 100%; /* 第二層選單從第一層下方開始 */
    left: 0; /* 第二層選單靠左對齊 */
    background-color: rgb(183, 29, 29)(245, 73, 4, 0.9);
    min-width: 100%; /* 讓寬度隨內容變化 */
    white-space: nowrap; /* 防止文字換行 */
}

.submenu > li {
    display: block; /* 讓第二層選單垂直排列 */
    position: relative; /* 為第三層選單定位做準備 */
}

.submenu .submenu {
    top: 0; /* 第三層選單從第二層的位置開始 */
    left: 100%; /* 第三層選單向右展開 */
}

.menu li:hover > .submenu {
    display: block;
}

.menu-toggle {
    display: none; /* 預設隱藏按鈕 */
    background-color: rgba(239, 106, 53, 0.9);
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    text-align: center;
}

/* 響應式設計 */
@media (max-width: 992px) {
    /* 平板樣式 */
    .company-name {
         display: none; /*隱藏公司名稱 */
    } 
}

@media (max-width: 768px) { /* 原768px */
    .navbar {        
        padding: 10px;    
        max-width: 100%; /* 新增這行確保不超過視窗寬度 */
          
    }

    .company-name {
        display: block;  /* display: none; 隱藏公司名稱 */
    }

    .menu-container {
        /* width: 100%; */
        justify-content: flex-end; /* center在小螢幕上讓選單靠右 */
    }

    .menu {
        display: none; /* 預設隱藏選單 */
        width: 80%;
        height: calc(100vh - 50px);
        background-color: rgba(245, 73, 4, 0.9);/* 第一層選單被景色 */
        text-align: left; 
        flex-direction: column;   
        position: absolute;    
        top: 50px;  /* 讓選單在導覽列下方 */
        line-height: 1.3;/* 調整選單高度 */ 
        left: -100%;
        transition: 1.8s;
    }

    .menu.active {
        left: 0;
        display: flex; /* block當選單被激活時顯示 */
    }

    .menu > li {
        display: block;
        width: 100%;
    }

    .submenu {
        /*position: static;
        padding-left: 20px;
        max-height: 0;  預設隱藏子選單 
        overflow: hidden;  隱藏超出內容 */
        position: static;
        padding-left: 20px;
        max-height: 460px; /* 限制選單高度 */
        overflow-y: auto; /* 啟用垂直滾動 */
        transition: max-height 0.3s ease; /* 添加過渡效果 */
        line-height: 1.0;/* 調整選單高度 */ 
    }

    .menu > li:hover > .submenu {
        max-height: 300px; /* 顯示子選單 */
        overflow-y: auto; /* 啟用垂直滾動 */
    }

    .menu-toggle {
        display: block; /* 顯示打開/關閉按鈕 */
        background-color: rgba(239, 106, 53, 0.9); /* 導覽列顏色 */
        color: white;/* 文字顏色 */
        padding: 10px 20px;
        cursor: pointer;
        text-align: right;/* 手機打開選單靠右  */
    }
}

/* 導覽列設定結束*/

/* 回頂部按鈕開始 */
.back-to-top-btn {
    display: none; /* 預設隱藏 */
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    background-color: rgba(66, 33, 1, 0.7);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    z-index: 1000; /* 確保按鈕在最上層 */
}

.back-to-top-btn:hover {
    background-color: rgba(235, 91, 91, 0.7);
}

/* 右下角固定圖示樣式 */
.fixed-icons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    z-index: 999;
    gap: 10px; /* 圖示之間的間距 */
    opacity: 0; /* 初始隱藏 */
    visibility: hidden; /* 初始隱藏 */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fixed-icons.show {
    opacity: 1; /* 顯示 */
    visibility: visible; /* 顯示 */
}

.icon {
    background-color: rgba(122, 59, 5, 0.8);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    font-size: 24px; /* 調整圖示大小 */
    position: relative; /* 讓提示文字定位 */
}

.icon:hover {
    background-color: rgba(163, 35, 35, 0.8);
}

/* 提示文字樣式 */
.icon::before {
    content: attr(title); /* 使用 title 屬性作為提示文字 */
    position: absolute;
    top: -30px; /* 提示文字位於圖示上方 */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(165, 225, 202, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap; /* 防止文字換行 */
    opacity: 0; /* 初始隱藏 */
    visibility: hidden; /* 初始隱藏 */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.icon:hover::before {
    opacity: 1; /* 顯示提示文字 */
    visibility: visible; /* 顯示提示文字 */
}
/* 回頂部按鈕開始結束 */

/* 搜尋列開始 */
header {
    background-color: #f8f8f8;
    padding: 1px;
    margin-top: 0px;
    border-bottom: 1px solid #ddd;
}

/* 搜尋欄樣式 */
.search-container {
    display: flex;
    justify-content: space-between;
    margin-top: 1px;/* 設50px避免內容被固定導航欄遮擋 */
    margin-bottom: 10px;
    gap: 10px; /* 兩個搜尋框之間的間距 */
}

.search-form {
    display: flex;
    flex: 1;
    max-width: 30%; /* 50%讓兩個搜尋框平分寬度 */
}

.search-form input[type="text"] {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
}

.search-form button {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 0 4px 4px 0;
    background-color: #f8f8f8;
    cursor: pointer;
}

.search-form button:hover {
    background-color: #b4e7e4;
    color: rgb(33, 66, 211);/* 文字顏色 */
    font-weight: bold; /* 設定文字粗體 */
}

/* 小螢幕搜尋列樣式 */
@media (max-width: 768px) {
    header {
        background-color: #f8f8f8;
        padding: 1px;
        margin-top: 1px; /* 避免內容被固定導航欄遮擋 */
        border-bottom: 1px solid #ddd;
    }

    .search-container {
        flex-direction: column;
        gap: 5px;
    }

    .search-form {
        max-width: 100%;
    }
}
/* 搜尋列結束 */

/* 圖片輪播區樣式開始 */
.slideshow-container {
    position: relative;
    max-width: 100%; /* 或設固定寬1200px */
    margin: 1px auto 0; /* 1(50)px 是導覽列的高度 */
    overflow: hidden; /* 隱藏超出容器的內容 */
    height: 400px; /* 設定輪播區高度 */
}

.mySlides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* 1秒的淡出效果 */
}

.mySlides.active {
    opacity: 1;
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 確保圖片填滿容器 */
}

/* 上一張、下一張按鈕樣式 */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* 垂直居中 */
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
}

.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8); /* 懸停時背景變深 */
}

/* 文字區域樣式 */
.slide-text {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    display: flex;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.0); /* 半透明背景 */
    padding: 20px;
    border-radius: 10px;
    color: white;
}

.text-column {
    width: 48%; /* 兩列文字，每列佔 48% 寬度 */
}

.text-column h2 {
    margin-top: 0;
    font-size: 24px;
}

.text-column p {
    font-size: 16px;
    line-height: 1.5;
}

/* 手機設備樣式 */
@media (max-width: 768px) {
    .slideshow-container {
        height: 300px; /* 手機上輪播區高度較小 */
    }

    .prev, .next {
        padding: 10px; /* 手機上按鈕較小 */
        font-size: 16px;
    }
/* 文字區域樣式 */
    .slide-text {
        flex-direction: column; /* 手機上改為單列顯示 */
        width: 90%;
        padding: 10px;
    }

    .text-column {
        width: 100%; /* 手機上每列佔滿寬度 */
        margin-bottom: 10px;
    }

    .text-column h2 {
        font-size: 20px;
    }

    .text-column p {
        font-size: 14px;
    }
}
/* 圖片輪播區樣式結束 */

/* 選取內容時跳出浮動工具列開始 */

.floating-toolbar {
    position: absolute;
    display: none; /* 預設隱藏 */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transform: translateY(-100%);
    padding: 5px;
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.95);
    font-size: 0; /* 消除按鈕間的空隙 */
    /* gap: 5px; 按鈕間距-舊設定 */    
    max-width: 90vw; /* 限制最大寬度 */
    white-space: nowrap; /* 防止按鈕換行 */
    z-index: 1000;
    
}

.toolbar-btn {
    background: none;
    border: none;
    padding: 5px 10px;/* 調整按鈕尺寸便於觸控 */
    cursor: pointer;
    font-size: 18px; /* Emoji 圖示大小 */
    transition: all 0.5s;
    border-radius: 6px;
    line-height: 1;
    min-width: 40px; /* 確保按鈕有足夠觸控區域 */
}

/* 移動裝置上的按鈕調整，無功能 */
@media (max-width: 768px) {
    #floatingToolbar {
        display: none !important;
    }
}

.toolbar-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
    border-radius: 4px;
}

/* 分享選項面板增強樣式 */
.share-panel {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 12px;
    display: none;
    z-index: 1000;
    min-width: 180px;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.97);;
    font-size: 0; /* 消除選項間的空隙 */
    max-width: 90vw; /* 限制最大寬度 */
    overflow-x: auto; /* 允許水平滾動 */
}

.share-option {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 0 8px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 2px 1px;
    border-radius: 8px;
    font-size: 20px; /* 放大Emoji */
    line-height: 1;
    text-align: center;
}

/* 移動裝置上的分享選項調整，無功能 */
@media (max-width: 768px) {
    .share-option {
        display: none !important;
    }
}

.share-option:hover {
    transform: scale(1.1);
    background-color: rgba(0, 0, 0, 0.03);
}

.emoji-label {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    color: #555;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 品牌特色顏色 */
.share-option[data-share="line"] {
    color: #00B900; /* LINE綠色 */
}
.share-option[data-share="facebook"] {
    color: #1877F2; /* Facebook藍 */
}
.share-option[data-share="wechat"] {
    color: #07C160; /* 微信綠色 */
}
.share-option[data-share="email"] {
    color: #EA4335; /* Gmail紅色 */
}

/* 選取內容時跳出浮動工具列結束 */

/* 底部設定開始 */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
}
/* 底部設定結束 */

/* 交錯漂浮版網頁設計開始 */
.section {
    display: flex;
    align-items: center;
    min-height: 100vh;
    margin-bottom: 50px;
    position: relative;
}

/* 偶數部分 - 圖片在右邊 */
.section:nth-child(even) {
    flex-direction: row;
}

/* 奇數部分 - 圖片在左邊 */
.section:nth-child(odd) {
    flex-direction: row-reverse;
}

.text-content {
    flex: 1;
    padding: 60px 20px;
    position: relative;
    z-index: 2;
}

.text-bg {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
     /* width: 140%;增加寬度以確保重疊 */
     width: calc(100% + 100px); /* 調整寬度，確保不超出但仍有重疊 */
    height: 120%; /* 增加高度以確保覆蓋 */
    z-index: -1;
    border-radius: 10px;
}

/* 不同背景色 */
.section:nth-child(1) .text-bg {
    background-color: rgba(255, 200, 150, 0.9);
    left: -70px; /* -30%; 增加重疊量 */
    clip-path: polygon(0 0, calc(100% - 70px) 0, 100% 100%, 0% 100%);
}

.section:nth-child(2) .text-bg {
    background-color: rgba(150, 220, 255, 0.9);
    right: -70px; /* 增加重疊量 */
    clip-path: polygon(70px 0, 100% 0, 100% 100%, 0% 100%);
}

.section:nth-child(3) .text-bg {
    background-color: rgba(200, 255, 150, 0.9);
    left: -70px; /* 增加重疊量 */
    clip-path: polygon(0 0, calc(100% - 70px) 0, 100% 100%, 0% 100%);
}

.section:nth-child(4) .text-bg {
    background-color: rgba(255, 150, 200, 0.9);
    right: -40px; /* 調整重疊量 */
    clip-path: polygon(70px 0, 100% 0, 100% 100%, 0% 100%);
}

.section:nth-child(5) .text-bg {
    background-color: rgba(216, 232, 77, 0.6);
    left: -70px; /* 增加重疊量 */
    clip-path: polygon(0 0, calc(100% - 70px) 0, 100% 100%, 0% 100%);
}

.image-content {
    flex: 1;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.image-content img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


@media (max-width: 768px) {
    .section {
        flex-direction: column !important;
        min-height: auto;
        padding: 40px 0;
    }
    
    .text-bg {
        width: 100%;
        height: 100%;
        top: 0;
        transform: none;
        opacity: 0.7;
        left: 0 !important;
        right: 0 !important;
        clip-path: none !important;
    }
    
    .text-content {
        padding: 40px 20px;
    }
}
/* 交錯漂浮版網頁設計結束 */

/* 114年新網頁設計開始 */
.subtitle {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    font-weight: 300;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section-title h2 {
    display: inline-block;
    position: relative;
    padding: 0 30px;
    color: #333;
    font-size: 24px;
    font-weight: bold;
}

.section-title h2:before,
.section-title h2:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 50px;
    height: 2px;
    background: red;
}

.section-title h2:before {
    left: -10px;
}

.section-title h2:after {
    right: -30px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 320px;
    border: 0px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(18, 163, 182, 0.8);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.honor-board {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.honor-title {
    text-align: center;
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.honor-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.honor-item {
    background: linear-gradient(135deg, #f9f9f9, #e6e6e6);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.honor-item:hover {
    transform: scale(1.05);
}

.honor-position {
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.honor-name {
    font-size: 1.2rem;
    color: var(--primary);
}


.social-icons {
    margin: 1rem 0;
}

.social-icons a {
    color: white;
    margin: 0 0.5rem;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--secondary);
}

/* 平板設備樣式 */
@media (max-width: 992px) {
    .subtitle {
        font-size: 1.3rem;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .honor-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* 手機設備樣式 */
@media (max-width: 768px) {      
    .subtitle {
        font-size: 1.1rem;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 1rem;
    }
    
    .honor-board {
        padding: 1.5rem;
    }
    
    .honor-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {   
    .section-title h2 {
        font-size: 1.3rem;
    }
    
    .honor-title {
        font-size: 1.5rem;
    }
}
/* 114年新網頁設計結束 */
