body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}


.main-container {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: flex-start;
    margin-top: 0px;
    margin-left: auto;
    margin-right: auto;
    /* padding: 0 20px; */
}


.main-container p {
    color: dimgrey;
    font-weight: bold;
    margin: 20px;

}

.down1-section {
    width: 80%;
    margin: 30px auto;
    /* display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-weight: bold;
    font-size: 18px;
    align-items: stretch;  */
}

.banner {
    width: 80%;
    margin: 30px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    font-weight: bold;
    font-size: 18px;
    align-items: stretch;
}

.word {
    width: 80%;
    margin: 30px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-weight: bold;
    font-size: 20px;
    align-items: stretch;
}

.down1-section a {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: dimgrey;
    text-decoration: none;
    /* background-color: #f9f9f9;  */
    box-sizing: border-box;
}

.down1-section a img {
    display: block;
    width: 100%;
    height: auto; /* 保持原始比例 */
}

/* hover效果維持不變 */
.down1-section a:hover {
    color: #ffa500;
    text-decoration: underline;
}


@media (max-width: 980px) {
    

    .banner, .word {
        width: 100%;
        display: flex;
        flex-direction: column; /* 改為垂直排列 */
    }

    .banner a, .word a{
        width: 100%; /* 每個連結佔滿寬度 */
        margin-bottom: 12px; /* 手機上每個連結之間的間距調整 */
        padding: 8px 0; /* 增加內部間距使連結看起來更整齊 */
        line-height: 1.8; /* 調整行高，使文字更舒展 */
        border-bottom: 1px solid #ddd; /* 增加底線以視覺上區隔各連結 */
    }
}

.hover-swap {
    position: relative;
    display: inline-block;
}

.hover-swap img {
    display: block;
    transition: opacity 0s ease-in-out;
}

.hover-swap .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.hover-swap:hover .hover-img {
    opacity: 1;
}

.hover-swap:hover img:first-child {
    opacity: 0;
}
         
   
/* Responsive layout for mobile */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .left-section, .center-section, .right-section {
        width: 100%;
        margin-bottom: 20px;
    }
}

iframe {
    width: 100%; /* 設定 iframe 寬度 100% */
    height: 400px; /* 預設高度為 400px */
    border: none; /* 隱藏邊框 */
    overflow: hidden; /* 隱藏內容溢出的部分 */
}

@media (max-width: 768px) {
    iframe {
        height: 100%; /* 手機上調整高度 */
    }
}

.more {
    text-align: center;
    color: dimgray;
    font-size: 24px;
    font-weight: bold;
}

.more p {
    margin-top: 30px;
    margin-bottom: 0px;
}