﻿.aboutus {
    font-family: "Noto Sans TC", "Roboto", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F0F1F9;
    color: #454545;
    line-height: 38px;
    font-size: 20px;
}

.section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* 確保圖片和文字都置頂 */
    padding: 60px 10%;
    gap: 40px;
    flex-wrap: wrap;
}

    /* 修改 section.about 的樣式 */
    .section.about {
        margin-left: auto;
        margin-right: 0;
        padding: 60px 0 60px 5%;
    }

    /* 修改 section.expo 的樣式，將圖片對齊右邊 */
    .section.expo {
        margin-right: auto;
        margin-left: 0;
        padding: 60px 5% 60px 0;
        flex-direction: row-reverse; /* 讓圖片顯示在右邊 */
        align-items: flex-start; /* 確保圖片和文字置頂 */
    }

    /* 讓每個 section 的內容在偶數段落中反向排列 */
    .section:nth-child(even) {
        background-color: #fff;
    }

.image {
    flex: 1 1 400px;
    text-align: right; /* 讓圖片右對齊 */
}

    .image img {
        max-width: 100%;
        height: auto;
        border-radius: 0;
    }

.text {
    flex: 1 1 400px;
    margin-right: 5%;
}

.text-tts {
    flex: 1 1 400px;
    margin-right: 5%;
    font-size: 24px;
    line-height: 48px;
}

.text-about {
    flex: 1 1 400px;
    margin-right: 5%;
}

h2 {
    font-family: "Noto Sans", "Roboto", sans-serif;
    font-size: 32px;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #222222;
    margin-top: 0px;
}

.tts-wrapper {
    background-color: #fff;
    padding: 20px 5%;
}

.tts-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 60px 60px;
    background-color: #fff;
    border-radius: 30px;
    border: 1px solid #CBCBCB;
}

    .tts-container .logo-box {
        flex: 0.5 0.5 100px;
        text-align: center;
    }

        .tts-container .logo-box img {
            max-width: 250px;
            height: auto;
        }

    .tts-container .text {
        flex: 1 1 400px;
    }

        .tts-container .text p {
            font-size: 18px;
            margin-top: 0;
        }

/* 平板設備 CSS 調整 */
@media screen and (max-width: 1024px) and (min-width: 768px) {
    .aboutus {
        font-size: 20px;
    }

    h2 {
        font-size: 22px;
        line-height: 1.3;
        text-align: left;
        font-family: "Noto Sans", "Roboto", sans-serif;
    }

    .section {
        padding: 40px 5%;
        flex-direction: column;
        align-items: center;
    }

        .section.expo {
            margin-right: auto;
            margin-left: 0;
            padding: 60px 5% 60px 0;
            flex-direction: row-reverse;
            align-items: flex-start;
        }

    .text {
        text-align: left;
        margin-left: 5%;
    }

    .text-about {
        text-align: left;
        margin-right: 5%;
    }

    .text-tts {
        margin-left: 10%;
        text-align: left;
        font-size: 22px;
    }

    .image {
        flex: 1 1 90%;
        margin-bottom: 20px;
        text-align: right;
    }

        .image img {
            max-width: 100%;
            height: auto;
        }

    .tts-container {
        padding: 30px 8%;
        gap: 30px;
    }

        .tts-container .logo-box {
            flex: 1 1 150px;
            text-align: center;
        }

            .tts-container .logo-box img {
                max-width: 150px;
                height: auto;
                margin: 0 auto 20px;
            }

        .tts-container .text p {
            font-size: 16px;
            text-align: center;
        }
}

/* 手機尺寸調整 */
@media screen and (max-width: 767px) {
    .section,
    .tts-container {
        flex-direction: column;
        padding: 40px 20px;
        gap: 0px;
    }

        .section.about {
            margin-left: auto;
            margin-right: 0;
            padding: 60px 0 60px 10%;
        }

    .text-about {
        flex: 1 1 400px;
        margin-right: 10%;
    }


    .tts-container .logo-box img {
        max-width: 212px;
        height: auto;
    }

    .aboutus {
        font-family: "Noto Sans TC", sans-serif;
        margin: 0;
        padding: 0;
        background-color: #F0F1F9;
        color: #454545;
        line-height: 2;
        font-size: 18px;
    }

    h2 {
        font-size: 20px;
        text-align: center;
        font-family: "Noto Sans", "Roboto", sans-serif;
    }

    .text {
        text-align: left;
        margin-left: 10%;
        flex: 1 1 400px;
    }

    .image,
    .logo-box {
        flex: 1 1 100%;
        text-align: left;
    }

    .text-tts {
        flex: 1 1 100%;
        text-align: left;
        font-size: 20px;
        margin-left: 5%;
    }

    .logo-box img {
        max-width: 120px;
        margin: 0 auto 20px;
    }
