﻿[v-cloak] {
    display: none;
}

#main-container {
    display: flex;
    justify-content: center;
}

#mapServiceIntro {
    margin: 3% 10%;
    width: 1200px;
}

.container.flex-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.text-container {
    width: 80%;
    margin: 0 auto;
    color: #666666;
    line-height: 1.8;
}

.p-2r {
    padding: 2rem;
}

ul {
    list-style: disc;
    padding: 0 15px;
}

li {
    margin: 5px 0;
}

p { /*小標題*/
    margin-bottom: 10px;
    font-weight: bold;
    color: #1A82D9;
}

.content {
    width: 100%;
    box-shadow: 0px 0px 3px #00000029;
    border-radius: 6px;
}

section.serviceIntroSection {
    background-color: #F0F9FF;
    padding: 0.6rem 0.5rem;
    width: 100%;
    max-width: 100%;
}

aside {
    width: 30%;
    margin-right: 2rem;
}

article {
    width: 65%;
    background: #FFFFFF 0% 0% no-repeat padding-box;
    border-left: 6px solid #1A82D9;
    border-radius: 6px;
    padding: 1%;
}

.select-role-box {
    background: #FFFFFF 0% 0% no-repeat padding-box;
    border-radius: 6px;
    margin: 10px 0;
    padding: 10px;
    background-image: url('../../Images/MapServiceIntro/Role1.svg');
    background-size: 70px; /* 設定背景圖片大小 */
    background-position: right center; /* 調整背景圖片對齊方式 */
    cursor: pointer;
}

    .select-role-box:nth-child(2) {
        background-image: url('../../Images/MapServiceIntro/Role2.svg');
    }

    .select-role-box:nth-child(3) {
        background-image: url('../../Images/MapServiceIntro/Role3.svg');
    }

    .select-role-box:before {
        width: 10px;
        background: #1A82D9 0% 0% no-repeat padding-box;
        border-radius: 6px 0px 0px 6px;
    }

.tab__container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
}

.select-role-box.active {
    border: 2px solid #1A82D9;
    border-left: 6px solid #1A82D9; /* 左邊框設為粗邊 */
}

.tab__button {
    width: 18%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    margin: 10px 5px;
    border: #1A82D9 1px solid;
    border-radius: 7px;
    background-color: #ffffff;
    color: #1A82D9;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0.43px;
    text-align: center;
}

    .tab__button:first-child {
        margin-left: 0;
    }

    .tab__button:last-child {
        margin-right: 0;
    }

    .tab__button.active {
        color: #ffffff;
        background-color: #1A82D9;
    }

select {
    margin: 10px;
    font-size: 1.1rem;
}

.selectedYear {
    text-align: center;
    font-weight: bold;
    font-size: 1.3rem;
}
.table__th--40 {
    width: 40%;
}
tbody .table__row:nth-child(2n+1) {
    background-color: #F8F9FD;
}
tbody .table__row:hover {
    background-color: #E5F0F8;
}
#backToTopButton {
    background-image: url('../../../../../Content/Images/Index/icon_回頂端.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: fixed;
    bottom: calc(200px - (80px * 2));
    right: 2px;
    width: 58px;
    height: 58px;
    z-index: 1;
    cursor: pointer;
    background-color: #FFB82A;
    border-radius: 5px;
}
@media only screen and (max-width:1120px) {
    .tab__container {
        flex-wrap: wrap;
        justify-content: center;
    }

        .tab__container .tab__button {
            width: 30%;
        }

    .tab__button:last-child {
        margin-right: 5px;
    }

    aside {
        width: 100%;
        margin: 0;
        padding: 10px 0;
        border-top: 2px solid #1A82D9;
        border-bottom: 2px solid #1A82D9;
        margin-bottom: 10px;
        display: flex;
    }

    .select-role-box {
        width: 32%;
        height: 150px;
        margin: 5px 5px 10px;
        display: flex;
        align-items: flex-end;
        background-position: center 15px;
        background-size: 70px;
        justify-content: center;
        transition: transform 0.2s ease, box-shadow 0.2s ease; /* 動畫效果 */
        box-shadow: 0px 0px 3px #00000029;
        border-radius: 6px;
    }

        .select-role-box.active {
            transform: scale(1.05); /* 放大 5% */
            box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* 添加輕微陰影 */
        }

        .select-role-box p {
            margin-bottom: 0;
            white-space: nowrap;
        }

        .select-role-box ul {
            display: none;
        }

    article {
        width: 100%;
    }
}

@media only screen and (max-width:576px) {
    #mapServiceIntro {
        margin: 3% 5%;
        min-width: 360px;
    }

    .tab__container .tab__button {
        width: 44.3%;
        height: 60px;
        margin: 6px 10px;
        font-size: 0.8rem;
    }

    section.flex-container {
        background-color: white;
    }

    aside {
        margin: 0;
        padding: 10px 0;
        border-top: 2px solid #1A82D9;
        border-bottom: 2px solid #1A82D9;
        margin-bottom: 10px;
        display: flex;
    }

    article {
        border: 0;
        box-shadow: 0px 0px 3px #00000029;
        border-radius: 6px;
        padding-left: 1rem;
    }
}
