::-webkit-scrollbar:horizontal {
    height: 4px !important;
}

.allDiv {
    width: 100%;
    text-align: center;
    overflow: hidden;
}

.frame {
    width: 100%;
}

.frameDiv {
    width: 100%;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 30px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.frameDiv.noTop {
    padding-top: 0;
}

.caption {
    font-style: normal;
    font-weight: bold;
    font-size: 36px !important;
    line-height: 53px;
    color: #3AAFA9;
}

.captionBr {
    display: none;
}

.smallCaption {
    font-style: normal;
    font-weight: bold;
    font-size: 28px !important;
    line-height: 150%;
    color: #2B7A77;
}

.contentDiv {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 30px;
    width: 100%;
    flex: none;
    flex-grow: 0;
    position: relative;
}

.contentDiv span,.contentDoc, .imageContent {
    font-style: normal;
    font-weight: normal;
    font-size: 20px;
    line-height: 150%;
    text-align: justify;
    letter-spacing: 0.4px;
    color: #40474A;
}
.captionContent {
    width: 100%;
    font-style: normal;
    font-weight: normal;
    font-size: 20px;
    line-height: 150%;

    text-align: justify;
    letter-spacing: 0.02em;

    color: #40474A;

    flex: none;
    flex-grow: 0;
}

#contractorDiv {
    justify-content: center;
    align-items: center;
}

#contractorDiv a:link {
    text-decoration: none;
    width: 453px;
    max-width: calc(100% - 30px);
    height: 50px;
}

#contractorMore {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 30px;
    background-color: #3AAFA9;
    cursor: pointer;
}
#contractorMore span {
    color: white;
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: bold;
    line-height: 150%;
}

#otherFrame {
    background-color: #F9F7F4;
}

.tableArrow {
    display: none;
    cursor: pointer;
}

.box-frame {
    width: 1080px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px auto;
}

/*.box {*/
/*    width: 200px;*/
/*    height: 82px;*/
/*    background-color: #F9F7F4;*/
/*    border-radius: 12px;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    padding: 0 10px;*/
/*    box-sizing: border-box;*/
/*    !*box-shadow: 0 2px 5px rgba(0,0,0,0.1);*!*/
/*    color: #2B7A77;*/

/*    !* ✅ 初始狀態 (隱藏) *!*/
/*    opacity: 0;*/
/*    transform: translateX(-50px);*/
/*}*/

/*!* ✅ 啟動動畫後才會執行 *!*/
/*.box.animate {*/
/*    animation: slideIn 0.6s ease forwards;*/
/*}*/

/*.box.animate:nth-child(1) { animation-delay: 0.2s; }*/
/*.box.animate:nth-child(2) { animation-delay: 0.5s; }*/
/*.box.animate:nth-child(3) { animation-delay: 0.8s; }*/
/*.box.animate:nth-child(4) { animation-delay: 1.1s; }*/
/*.box.animate:nth-child(5) { animation-delay: 1.4s; }*/

.esg-activity-container {
    height: 346px;
    margin: 30px auto;
    padding: 0px 60px 60px 20px;
    background-image: url(../../../img/menu/6/6-7/頒獎照.jpg);
    background-size: cover;
    /*background-position: calc(100% + 0px) 50%;*/
    /* background-repeat: no-repeat; */
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- 左側：3列2欄的 Grid 網格佈局 --- */
.box-frame-grid {
    display: grid;
    grid-template-columns: repeat(3, 330px); /* 兩欄，每欄嚴格 330px */
    grid-auto-rows: 113px;                  /* 每行高度嚴格 113px */
    gap: 20px;                              /* 卡片之間的垂直/水平間距 */
}

/* 圖片中第 5 個盒子在第 3 列的右邊 */
.box-frame-grid .box:nth-child(5) {
    grid-column: 2 / 3;
}

/* --- 每個白色卡片的樣式 (嚴格限制 330*113) --- */
.box {
    width: 330px;
    height: 113px;
    background-color: #F9F7F4;
    border-radius: 12px;
    padding: 18px 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 卡片首行：打勾與標題 */
.box-title-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: -5px;
}

/* 純 CSS 繪製的金黃色打勾符號 */
.checkmark {
    display: inline-block;
    width: 16px;
    height: 8px;
    border-left: 2.5px solid #C8B400;
    border-bottom: 2.5px solid #C8B400;
    transform: rotate(-45deg);
    margin-top: -4px;
    flex-shrink: 0;
}

/* 卡片金黃色標題 */
.box-title {
    color: #C8B400;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* 卡片下方敘述文字 */
.box-desc {
    color: #40474A;
    font-size: 16px;
    line-height: 1.5;
    text-align: justify;
    padding-left: 30px; /* 齊頭對齊標題文字，避開打勾符號 */
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/*.checkmark {*/
/*    font-size: 20px;*/
/*    margin-left: 10px;*/
/*    margin-right: 8px;*/
/*    margin-bottom: 22px;*/
/*    flex-shrink: 0;*/
/*    width: 18px;*/
/*    height: 14px;*/
/*    background: url("../../../img/menu/6/6-7/icon-tick.svg") no-repeat;*/
/*    background-size: cover;*/
/*    background-repeat: no-repeat;*/
/*}*/

.text {
    font-size: 16px;
    line-height: 1.3;
    text-align: left;
}

.sec2-pic2-desc {
    margin-right: 20px;
    width: 50%;
    max-width: 525px;
    height: 300px;
    display: inline-block;
    vertical-align: top;
    margin-top: 40px;
}

.sec2-pic2 {
    width: 50%;
    max-width: 525px;
    height: 300px;
    border-radius: 20px;
    background: url("../../../img/menu/6/6-7/電影紀錄片.png") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
    display: inline-block;
    float: right;
}

.sec2-pic4-desc {
    margin-right: 20px;
    width: 50%;
    max-width: 525px;
    height: 300px;
    display: inline-block;
    vertical-align: top;
    margin-top: 20px;
}

.sec2-pic4 {
    width: 50%;
    max-width: 525px;
    height: 300px;
    border-radius: 20px;
    background: url("../../../img/menu/6/6-7/藝術出走.png") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
    display: inline-block;
    float: right;
    margin-top: 60px;
    margin-bottom: 50px;
}

.sec2-pic1-desc {
    /*margin-right: 20px;*/
    width: calc(50% - 10px);
    max-width: 525px;
    height: 300px;
    display: inline-block;
    vertical-align: top;
    margin-top: 60px;
}

.sec2-pic1 {
    width: 50%;
    max-width: 525px;
    height: 300px;
    border-radius: 20px;
    background: url("../../../img/menu/6/6-7/企業藝廊展.png") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
    display: inline-block;
}

.sec2-pic3-desc {
    /*margin-right: 20px;*/
    width: calc(50% - 10px);
    max-width: 525px;
    height: 300px;
    display: inline-block;
    vertical-align: top;
    margin-bottom: 30px;
    /*margin-top: 35px;*/
}

.sec2-pic3 {
    width: 50%;
    max-width: 525px;
    height: 300px;
    border-radius: 20px;
    background: url("../../../img/menu/6/6-7/夏日爵士樂節.png") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
    display: inline-block;
}

.sec2-pic5-desc {
    /*margin-right: 20px;*/
    width: calc(50% - 10px);
    max-width: 525px;
    height: 300px;
    display: inline-block;
    vertical-align: top;
    margin-top: 20px;
}

.sec2-pic5 {
    width: 50%;
    max-width: 525px;
    height: 300px;
    border-radius: 20px;
    background: url("../../../img/menu/6/6-7/藝術平權計畫.png") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
    display: inline-block;
}

.sec2-pic1-mobile, .sec2-pic3-mobile, .sec2-pic5-mobile {
    display: none;
}

.sub-title {
    /*font-family: 'Roboto';*/
    font-style: normal;
    font-weight: 700;
    font-size: 28px;
    line-height: 42px;
    text-align: center;
    letter-spacing: 0.04em;
    color: #2B7A77;
}

.pic-desc {
    width: auto;
    height: 50px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 10px;
    background-color: #FFFFFF;
    color: #3AAFA9;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    float: right;
    margin-top: -20px;
    position: relative;
}


/* sec2-pic4 左側文字外層容器，負責與上方文字隔開並並排方塊 */
.stats-frame {
    display: flex;
    gap: 20px;          /* 兩個方塊之間的間距 */
    margin-top: 15px;   /* 與上方介紹文字的距離 */
}

/* 數據方塊樣式（帶有上黃下白的漸層與圓角） */
.stats-box {
    flex: 1;            /* 讓兩個方塊等寬 */
    max-width: 280px;   /* 限制方塊最大寬度，可依整體版面縮放 */
    padding: 15px 10px; /* 上下左右內邊距 */
    text-align: center; /* 內部文字全部置中 */
    border-radius: 12px;/* 圓角效果 */

    /* 核心漸層：還原圖片中上方微黃、下方漸變成白色的視覺感 */
    background: linear-gradient(to bottom, #FFFDEB 100%, #FFFFFF 100%);

    /* 淡淡的陰影增加立體感 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.stats-box-right {
    flex: 1;
}

/* 第一行：黃色粗體主標題 */
.stats-highlight {
    color: #C8B400;     /* 圖片中的金黃色 */
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;/* 與下方數據的間距 */
    letter-spacing: 0.5px;
}

/* 第二、三行：深灰色數據文字 */
.stats-line {
    color: #40474A;     /* 深灰色字體 */
    font-size: 20px;
    font-weight: 500;
    line-height: 1.6;   /* 行高，讓兩行數據有舒適的間距 */
}



/*------------------------------------------------*/
@media only screen and (max-width: 1080px) {
    .contentDiv, .contentDoc {
        padding-left: 15px;
        padding-right: 15px;
    }

    .captionContent {
        padding-left: 15px;
        padding-right: 15px;
        font-size: 16px;
        line-height: 140%;
    }
}

/*------------  512px 以下，就認為是手機 -----------------*/
@media only screen and (max-width: 512px) {
    .imageBlockScrollDiv {
        width: calc(100% - 30px);
    }

    .imageBlockSelectDiv {
        display: flex;
    }

    .rightImg {
        display: block;
    }

    .frameDiv {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .caption {
        font-size: 24px !important;
        line-height: 32px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .smallCaption {
        font-size: 20px !important;
    }

    .captionBr {
        display: inline-block;
    }

    .contentDiv {
        gap: 20px;
    }

    .captionContent {
        font-size: 16px;
        line-height: 140%;
    }

    .sub-title {
        font-size: 20px;
        line-height: 26px;
    }


    .pic-desc {
        font-size: 16px;
        height: 40px;
        line-height: 40px;
    }

    .sec2-pic2-desc, .sec2-pic4-desc {
        width: 100%;
        height: unset;
        max-width: unset;
        margin-bottom: 15px;
        margin-top: 20px;
    }

    .sec2-pic2, .sec2-pic4 {
        /*max-width: 320px;*/
        height: 200px;
        width: calc(100% - 20px);
        background-size: contain;
        background-position: center;
        float: none;
        margin-top: 0px;
        margin-bottom: 0px;
    }

    .sec2-pic1-desc, .sec2-pic3-desc, .sec2-pic5-desc {
        margin-right: 20px;
        width: 100%;
        max-width: unset;
        height: unset;
        display: inline-block;
        margin-bottom: 15px;
        margin-top: 20px;
    }

    .sec2-pic1, .sec2-pic3, .sec2-pic5 {
        display: none;
    }

    .sec2-pic1-mobile {
        width: calc(100% - 20px);
        /*max-width: 320px;*/
        height: 200px;
        border-radius: 20px;
        background: url("../../../img/menu/6/6-7/企業藝廊展.png") no-repeat;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        display: inline-block;
        float: none;
    }

    .sec2-pic3-mobile {
        width: calc(100% - 20px);
        /*max-width: 320px;*/
        height: 200px;
        border-radius: 20px;
        background: url("../../../img/menu/6/6-7/夏日爵士樂節.png") no-repeat;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        display: inline-block;
        float: none;
    }

    .sec2-pic5-mobile {
        width: calc(100% - 20px);
        /*max-width: 320px;*/
        height: 200px;
        border-radius: 20px;
        background: url("../../../img/menu/6/6-7/藝術平權計畫.png") no-repeat;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        display: inline-block;
        float: none;
    }

    .box-frame {
        flex-wrap: nowrap;  /* 防止換行 */
        overflow-x: auto;   /* 啟用水平滾動 */
        -webkit-overflow-scrolling: touch;  /* 讓滾動更順暢 */
        padding: 15px 0;    /* 增加上下間距 */
        gap: 15px;         /* 調整間距 */
        justify-content: flex-start;  /* 從左側開始排列 */
        scroll-snap-type: x mandatory;  /* 讓滾動更順暢 */
        width: calc(100% - 20px);
        padding-top: 0px;
    }

    /*!* 美化滾動條 *!*/
    /*.box-frame::-webkit-scrollbar {*/
    /*    height: 8px;*/
    /*}*/

    /*.box-frame::-webkit-scrollbar-track {*/
    /*    background: #f1f1f1;*/
    /*    border-radius: 10px;*/
    /*}*/

    /*.box-frame::-webkit-scrollbar-thumb {*/
    /*    background: #2B7A77;*/
    /*    border-radius: 10px;*/
    /*}*/

    /*.box-frame::-webkit-scrollbar-thumb:hover {*/
    /*    background: #264E58;*/
    /*}*/

    /* 確保子元素不會被壓縮 */
    .box-frame > * {
        flex: 0 0 auto;  /* 防止子元素被壓縮 */
        scroll-snap-align: start;  /* 滾動對齊 */
    }

    .contentDoc {
        font-size: 16px;
    }


    /* 1. 外層容器：將 flex 佈局改為垂直單欄排列 */
    .esg-activity-container {
        background-image: url(../../../img/menu/6/6-7/頒獎照_mobile.jpg);
        flex-direction: column;
        padding: 20px 15px; /* 縮減手機版的內邊距 */
        gap: 20px;
        height: auto;
        width: calc(100% - 30px);
        padding-bottom: 145px;
        margin-bottom: 20px;
        margin-top: 20px;
    }

    /* 2. 網格卡片區：從雙欄 (2欄) 強制切換為單欄 (1欄) */
    .box-frame-grid {
        grid-template-columns: 1fr; /* 寬度自動填滿 100% */
        grid-auto-rows: auto;        /* 移除 113px 的固定高度限制，讓文字高度自動撐開，避免字被切掉 */
        gap: 12px;                  /* 縮減手機版卡片之間的上下間距 */
        width: 100%;                /* 確保網格區塊撐滿手機螢幕 */
    }

    /* 3. 修正先前特別指定第5個盒子的不對稱設定，讓它跟其他卡片一樣填滿單欄 */
    .box-frame-grid .box:nth-child(5) {
        grid-column: unset;
    }

    /* 4. 白色卡片本體：移除 330px 的寬度死線，改為彈性 100% */
    .box {
        width: 100%;                 /* 隨手機螢幕寬度自動伸縮 */
        height: auto;                /* 讓高度隨內文行數彈性調整 */
        min-height: 113px;           /* 保持最低高度，畫面才不會太空 */
        padding: 15px;               /* 調整手機版內邊距 */
    }

    /* 5. 卡片金黃色標題：允許手機版在寬度不夠時自動斷行，避免字體超出卡片 */
    .box-title {
        white-space: normal;         /* 關鍵：取消不換行，改為自然換行 */
        font-size: 16px;
        line-height: 1.3;
    }

    /* 6. 右側隱形佔位區（對應您背景圖下方的合照高度） */
    .right-space-holder {
        width: 100%;                 /* 手機版改為寬度 100% */
        height: 220px;               /* 這裡的高度可以根據您手機版看見的「下方合照高度」來增減 */
        margin-top: 10px;
    }

    .stats-frame {
        margin-left: 15px;
        margin-right: 15px;
    }

    .stats-highlight {
        font-size: 16px;
    }

    .stats-line {
        font-size: 16px;
    }

    .stats-box-right {
        flex: 1.2;
    }
}