﻿/* 字體、外邊框、內邊距 */
body {
    margin: 0;
    padding: 0;
    background-position: top;
    overflow-y: scroll;
    font-family: "微軟正黑體";
}
/* 取消ul預設的內縮及樣式 */
ul, h1, h2, h3 {
    margin: 0;
    padding: 0;
    list-style: none;
}
/* 未點開；已點閱 */
a:link, a:visited {
    color: #2440B3;
    text-decoration: none;
}
/* 移至連結；正在點開 */
a:hover, a:active {
    color: #2459A0;
    text-decoration: underline;
}
/* 聚焦連結 */
a:focus {
    outline: 2px #000 solid; /*外圍邊框*/
}

/* 跳到主要內容區塊 */
.jump-only {
    position: absolute;
    background-color: #003F8E;
    padding: 0.5rem;
    clip: rect(0, 0, 0, 0);
    z-index: 99;
}

.jump-only-focusable:active, .jump-only-focusable:focus {
    left: 0;
    position: absolute;
    color: yellow;
    width: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    margin-bottom: 0.5rem;
    margin-left: 0.1rem;
    z-index: 99;
}

.search input[type=text] {
    font-size: 1rem;
    height: 2rem;
    vertical-align: top;
    border-radius: 0;
    padding: 0 0;
    line-height: 1rem;
}

.search {
    border: 1px solid #979797;
    display: inline-block;
    background-color: #FFF;
    height: 2rem;
    margin: 0.5rem 0;
    line-height: 0;
}

    .search > input[type=text].searchTxt {
        border: 0;
        width: 13rem;
    }

    .search > a {
        display: inline-block;
        vertical-align: middle;
        height: 2rem;
        width: 2.5rem;
        background: #655CC1;
        border: 0;
    }

        .search > a > img {
            font-size: 0;
            width: 100%;
            margin: 2px 0;
            padding: 0;
            vertical-align: middle;
            border: 0;
        }

header > .Banner {
    background-image: url('../images/Templates/BannerBg.png');
    background-repeat: no-repeat;
}

article {
    background-image: url('../images/Templates/article_Top.png'); /* 換成你的圖片 URL */
    background-repeat: no-repeat;
    background-position: bottom center;
    /*background-attachment: fixed;*/
    /*background-size: cover;*/
    display: flex;
    position: relative;
}

    article > section {
        flex-direction: row;
        flex-wrap: nowrap;
        min-height: 540px;
    }

        article > section.left {
            width: 30%;
            text-align: right;
        }

            article > section.left > div {
                margin-right: 45px;
                display: inline-block;
            }

                article > section.left > div > ul {
                    width: 10rem;
                    margin-top: 1.8rem;
                }

                    article > section.left > div > ul > li {
                        text-align: center;
                        margin-bottom: 0.5rem;
                    }

                        article > section.left > div > ul > li:first-child {
                            font-size: 1.5rem;
                            font-weight: bold;
                            color: #504472;
                            padding-bottom: 0.2rem;
                            margin-bottom: 0.7rem;
                            border-bottom: 3px solid #B4B4D6;
                        }

                        article > section.left > div > ul > li > a {
                            font-size: 1.3rem;
                            display: inline-block;
                            width: 99%;
                            margin-left: auto;
                            margin-right: auto;
                            text-decoration: none;
                            font-weight: bold;
                            padding: 0.3rem 0;
                        }

                            article > section.left > div > ul > li > a.chmenu {
                                border: 2px #c1c1c1 solid;
                                color: #FFF;
                                background-color: #4C4499;
                            }

                            article > section.left > div > ul > li > a.omenu {
                                border: 2px #c1c1c1 solid;
                                color: #5b5c5c;
                                background-color: #FFF;
                            }

        article > section.right {
            width: 70%;
        }

            article > section.right > div {
                width: 72%;
                /*margin-bottom: 1.5rem;*/
                background-color: #FFF;
                box-shadow: -5px 0 10px -5px rgba(0,0,0,0.3), /* 左邊陰影 */
                5px 0 10px -5px rgba(0,0,0,0.3); /* 右邊陰影 */
                min-height: 540px;
            }

                article > section.right > div > div {
                    margin-left: 2rem;
                    margin-right: 3rem;
                }

                    article > section.right > div > div#div_Path {
                        text-align: left;
                        padding-top: 1rem;
                    }

                        article > section.right > div > div#div_Path a {
                            text-decoration: none;
                            color: #3E3A39;
                        }

                            article > section.right > div > div#div_Path a:hover,
                            article > section.right > div > div#div_Path a:active,
                            article > section.right > div > div#div_Path a:focus {
                                font-weight: bold;
                                color: #000;
                            }

                    article > section.right > div > div#div_SubTitle,
                    article > section.IndexRight > div > div#div_SubTitle {
                        text-align: left;
                        position: relative;
                        padding-left: 85px;
                        margin-top: 1.5rem;
                        border-bottom: 2px solid #c1c1c1;
                        padding-bottom: 0.3rem;
                    }

                        article > section.right > div > div#div_SubTitle > h2::before,
                        article > section.IndexRight > div > div#div_SubTitle > h2::before {
                            content: '';
                            background-image: url('../images/Templates/SubTitle_Img.png');
                            background-repeat: no-repeat;
                            background-position: center bottom;
                            background-size: cover;
                            width: 75px;
                            height: 40px;
                            position: absolute;
                            vertical-align: middle;
                            top: 0;
                            left: 0;
                        }

                        article > section.right > div > div#div_SubTitle > h2,
                        article > section.IndexRight > div > div#div_SubTitle > h2 {
                            color: #504472;
                            font-size: 1.8rem;
                            vertical-align: middle;
                            font-weight: bold;
                        }

                    article > section.right > div > div:nth-child(3) {
                        padding-top: 2rem;
                        padding-bottom: 3rem;
                        font-size: 1.1rem;
                    }

                article > section.right > div > h3 {
                    /*color: #852e19;*/
                    color: #bb5548;
                    line-height: 2rem;
                }
            /* ========== 內文樣式 Begin ========== */
            article > section.right .ConStyle {
                font-size: 1.1rem;
                line-height: 1.8rem;
                letter-spacing: 0.1rem;
            }

            article > section.right ol.list {
                counter-reset: li; /*數字*/
                list-style: none;
                padding: 0;
                padding-left: 2rem;
                margin-bottom: 4rem;
                width: 75%;
                margin-left:auto;
                margin-right:auto;
            }

                article > section.right ol.list > li > a {
                    position: relative;
                    display: block;
                    padding: 0.4rem 0.4rem 0.4rem 2rem;
                    margin: 1rem 0;
                    background: #cedaec;
                    color: #000000;
                    text-decoration: none;
                    font-size: 1.1rem;
                    font-weight: bolder;
                    letter-spacing: 0.1rem;
                }

                    article > section.right ol.list > li > a::before {
                        content: counter(li);
                        counter-increment: li;
                        position: absolute;
                        left: -1.3em;
                        top: 50%;
                        margin-top: -1.3em;
                        background: #5c86c1;
                        height: 2em;
                        width: 2em;
                        line-height: 2em;
                        border: 0.3em solid #fff;
                        text-align: center;
                        font-weight: bold;
                        border-radius: 2em;
                        -webkit-transition: all 0.3s ease-out;
                        -moz-transition: all 0.3s ease-out;
                        -ms-transition: all 0.3s ease-out;
                        -o-transition: all 0.3s ease-out;
                        transition: all 0.3s ease-out;
                        color: #ffffff;
                    }

                    article > section.right ol.list > li > a:hover {
                        background: #8caad3;
                    }

                    article > section.right ol.list > li > a:focus {
                        outline: 2px #5c86c1 solid;
                    }

                            article > section.right ol.list > li > a:hover::before,
                            article > section.right ol.list > li > a:focus::before {
                                -moz-transform: rotate(360deg);
                                -webkit-transform: rotate(360deg);
                                -o-transform: rotate(360deg);
                                -ms-transform: rotate(360deg);
                                transform: rotate(360deg);
                            }

       h3 {
                letter-spacing: 0.1rem;
                color: #3C3C3C;
                display: block;
                line-height: 2rem;
                margin-bottom: 0.5rem;
            }
/* ========== 內文樣式 End ========== */
footer {
    background-color: #DADAF7;
    position: relative;
}
    /* ========== Footer 收合 Begin ========== */
    /* 收合按鈕 */
    footer div.flip {
        text-align: center;
        display: block;
        position: absolute;
        top: -40px;
        left: 50%; /* 從 footer 左邊 50% 開始 */
        transform: translateX(-50%); /* 往左偏移自身一半寬度，即水平置中 */
        z-index: 1000;
    }

        footer div.flip a:focus {
            outline: 2px #000 solid;
        }

        footer div.flip a {
            text-decoration: none;
            text-align: center;
            font-size: 0;
        }

        footer div.flip span {
            width: 5rem;
            display: inline-block;
            background-color: #655cc1;
            color: #FFFFFF;
            font-weight: bold;
            padding: 0.5rem 0 0.2rem 0;
            text-align: center;
            font-size: 1.2rem;
            line-height: 1.5em;
            border-top-left-radius: 50px;
            border-top-right-radius: 50px;
        }

    footer div.flip-line {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 6px;
        background-color: #655cc1;
        z-index: 999;
    }

    footer #information_Frame {
        background-color: #DADAF7;
        width: 100%;
    }

        footer #information_Frame > .information {
            color: #004588;
            width: 1000px;
            margin-left: auto;
            margin-right: auto;
            font-size: 1.2rem;
            text-align: center;
            padding-bottom: 2rem;
        }

            footer #information_Frame > .information > .information_block {
                display: inline-block;
                margin-left: 0.7rem;
                padding-right: 0.7rem;
                vertical-align: top;
                width: 9rem;
                padding-top: 2rem;
            }

                footer #information_Frame > .information > .information_block > .T {
                    padding: 0.3rem 0.3rem;
                    color: #3F3064;
                    font-weight: bold;
                    margin-bottom: 0.5rem;
                    border-bottom: 2px solid #3F3064;
                }

                footer #information_Frame > .information > .information_block > a {
                    text-align: center;
                    text-decoration: none;
                    color: #5b5c5c;
                    display: block;
                    font-size: 1.1rem;
                    margin: 0.2rem 0;
                }

            footer #information_Frame > .information .information_block div a:hover {
                text-decoration: underline;
            }
    /* ========== Footer 收合 End ========== */
    footer > nav {
        text-align: center;
        color: #ffebf6;
        padding-top: 1rem;
        padding-bottom: 1rem;
        background-color: #655CC1;
    }

        footer > nav > a,
        footer > nav > span {
            display: inline-block;
            margin-left: 0.1rem;
            padding-right: 0.1rem;
            font-weight: bold;
        }

            footer > nav > a:link, footer > nav > a:visited {
                color: #ffebf6;
            }

    footer > address {
        background-color: #655CC1;
        background-position: bottom center;
        background-repeat: repeat-x;
        padding-bottom: 1rem;
    }

        footer > address > div {
            line-height: 1.5rem;
            font-style: normal;
            color: #FFF;
            text-align: center;
            font-weight: bold;
        }

            footer > address > div > span {
                display: inline-block;
                margin-right: 1rem;
            }


@media screen and (min-width:875px) {
    header > .Banner > div {
        width: 1300px;
        margin: 0 auto;
        padding-top: 0.2rem;
    }

    header .Logo {
        float: left;
        padding-top: 0.8rem;
    }

    header .LogoR {
        padding-top: 0.2rem;
        padding-bottom: 0.4rem;
        float: right;
        text-align: right;
        color: #3e3a39;
    }
    /*上方功能區域 */
    header .header_menu {
        background-color: #655CC1;
        text-align: center;
        padding: 0.4rem 0;
        font-size: 1.3rem;
        font-weight: bold;
    }

        header .header_menu a:focus { /*聚焦目錄連結*/
            color: #FFFFFF;
            outline: 2px #FFF solid;
        }

        header .header_menu a:hover {
            color: #FFFFFF;
            text-decoration: underline;
        }

        header .header_menu > ul {
            margin: 0;
        }

            header .header_menu > ul > li {
                display: inline-block;
                width: 120px;
                text-align: center;
            }

                header .header_menu > ul > li > a:link, .header_menu > ul > li > a:visited {
                    display: inline-block;
                    font-size: 1.3rem;
                    color: #ffffff;
                    display: block;
                    vertical-align: middle;
                }

                header .header_menu > ul > li > a:focus {
                    outline: 2px solid #ffffff;
                }

    /* ~~ 手機上方menu~~ */
    header .S_header_menu {
        display: none;
    }
}

@media screen and (min-width:875px) and (max-width:1349px) {
    header .Banner > div {
        width: 98%;
        margin: 0 auto;
    }

    article > section.left {
        width: 25%;
    }

        article > section.right {
            width: 75%;
        }

            article > section.right > div {
                width:80%;
            }

}

@media screen and (max-width:874px) {
    header .Logo {
        float: none;
        display: block;
        text-align: center;
        padding-top: 0.9rem;
        padding-bottom: 0.5rem;
    }

        header .Logo > h1 > a > img {
            max-width: 98%;
            margin: 0;
        }

        header .Logo > h1 > a:focus {
            outline: none;
        }

            header .Logo > h1 > a:focus > img {
                outline: 2px solid #000000;
            }

    header .LogoR {
        display: none;
    }

    header .header_menu {
        display: none;
    }

    /* ~~ 手機上方menu~~ */
    header .S_header_menu { /* 手機選單 */
        display: block;
        width: 100%;
        text-align: right;
        z-index: 3;
    }

    header .S_menu > div > a:focus {
        outline: none;
    }

        header .S_menu > div > a:focus > .nav-mobile-button {
            outline: 2px solid #ffffff;
        }

    header .R_menu {
        width: 100%;
        font-weight: bold;
        text-align: right;
        background-color: #655CC1;
        line-height: 5px;
        padding-bottom: 3px;
    }

    header .nav-mobile-button {
        display: inline-block;
        position: relative;
        background-color: transparent;
        background-image: none;
        border: #002425;
        padding: 5px 10px 5px 5px;
        width: 1.4rem;
    }

        header .nav-mobile-button .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            margin: -1px;
            overflow: hidden;
        }

        header .nav-mobile-button .icon-bar {
            display: inline-block;
            width: 1.6rem;
            height: 0.3rem;
            margin-right: -2px;
            background: #FFF;
        }

    header .accordion {
        list-style-type: none;
        margin: 0;
        padding: 0;
    }

    header .link {
        position: relative;
        background: #DFDFED;
        font-size: 1.2rem;
        font-weight: bold;
        text-align: left;
        letter-spacing: 0.1rem;
        padding: 0.5rem;
        padding-left: 1rem;
        border-bottom: 1px solid #e4eff6;
    }

        header .link a {
            color: #413c3c;
        }

        header .link .search a:focus {
            outline: none;
            background: #03589F;
        }


    header .link1 a {
        display: block;
    }

        header .link1 a:focus {
            outline: none;
        }

            header .link1 a:focus > span {
                outline: 2px solid #000000;
            }

    header .link span.arrow {
        position: absolute;
        right: 10px;
        margin-top: 0.1rem;
        width: 10px;
        height: 10px;
        border-top: 3px solid #000000;
        border-left: 3px solid #000000;
        transform: rotate(-137deg);
    }

    header .submenu {
        background: #f0f0ff;
        margin: 0;
        padding: 0;
        list-style-type: none;
    }

        header .submenu > li > a {
            color: #333333;
            display: block;
        }

            header .submenu > li > a:focus {
                outline: none;
            }

                header .submenu > li > a:focus > span {
                    outline: 2px solid #000000;
                }

        header .submenu li {
            border-bottom: 1px solid #cccccc;
            font-size: 1rem;
            font-weight: bold;
            letter-spacing: 2px;
            padding: 0.5rem;
            padding-left: 2.2rem;
            text-align: left;
        }
    article {
        background-image:none;
    }
    article > section.left {
        display: none;
    }

    article > section.right {
        width: 95%;
        margin-left: auto;
        margin-right: auto;
    }

        article > section.right > div {
            width: 100%;
            box-shadow: none;
            min-height: auto;
            background-color:#FFF;
        }
            article > section.right > div > div {
                margin-left: 0.8rem;
                margin-right: 0.8rem;
            }

    footer > div.flip {
        display: none;
    }

    footer > div#information_Frame {
        display: none;
    }
}
