﻿body {
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    background-position: top;
    overflow-y: scroll;
    font-family: "微軟正黑體";
}

ul, h1, h2, h3 { /* 取消ul預設的內縮及樣式 */
    margin: 0;
    padding: 0;
    list-style: none;
}
/*超連結樣式*/
a:link, a:visited {
    text-decoration: none;
    font-weight: bold;
}

a:hover, a:active {
    color: #14766e;
    text-decoration: underline;
}

/* 跳到主要區塊#C */
.jump-only {
    float: left;
    background-color: #2e7f53;
    position: absolute;
    padding: 0.5rem;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    margin-top: 0;
    z-index: 99;
}

.jump-only-focusable:active,
.jump-only-focusable:focus {
    display: inline-block;
    color: yellow;
    position: static;
    width: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    margin-bottom: 0.5rem;
    margin-left: 0.1rem;
    z-index: 99;
}

a:focus { /*TAB文字*/
    outline: 2px solid #2e7f53;
}

.accordion {
    list-style-type: none;
    margin: 0;
    padding: 0;
    padding-bottom: 0.5rem;
}

address a:focus {
    outline: 2px solid #ffffff;
}

input:focus, .DDList:focus, input[checkbox]:focus, textarea:focus {
    background-color: #fff5bd;
    outline: 2px solid #903;
}
.Title_L > h2 {
    background: url('../images/Templates/titlepic.png') no-repeat;
    color: #137c6f;
    padding-left: 3rem;
    line-height: 2.5rem;
}

.Title_L > div {
    padding: 0.15rem;
    background: linear-gradient(to right,#54baad 0%,#54baad 20%,#d5d6d6 20%);
}
footer {
    text-align: center;
    margin-top: 1rem;
}

    footer > ul {
        list-style-type: none;
        background: #e8e8e9;
        padding: 0.3rem 0;
    }

        footer > ul > li {
            display: inline-block;
            color: #aa4222;
            font-weight: bold;
            letter-spacing: 2px;
            margin: 0.2rem 0;
        }

            footer > ul > li a:link, footer > ul > li a:visited {
                text-decoration: none;
                color: #aa4222;
                font-weight: bold;
            }

            footer > ul > li a:hover {
                text-decoration: underline;
            }

            footer > ul > li a:focus {
                outline: 2px #AA4222 solid;
            }

    footer > address {
        background: linear-gradient(to right,#0f4f5f 0%,#028367 46%,#0f4f5f 100%);
        padding: 0.8rem 0;
    }

        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;
            }

section {
    min-height: 590px;
    width: 83.2rem;
    margin: auto;
}

/*中間*/
.container {
    width: 61rem;
    display: inline-block;
}

@media screen and (max-width:1350px) {
    section {
        width: 100%;
    }

    .container {
        width: 70%;
    }
}

    @media screen and (min-width:875px) {
        .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 #000;
            display: inline-block;
            /*background-color: #FFF;*/
            height: 2rem;
            margin: 0.5rem 0;
            vertical-align: middle;
            line-height: 0;
        }

            .search > input[type=text].searchTxt {
                border: 0;
                width: 13rem;
            }

            .search > a {
                display: inline-block;
                height: 2rem;
                width: 2.5rem;
                /*background: #413c3c;*/
                border: 0;
            }

                .search > a > img {
                    font-size: 0;
                    /*margin-top: -0.2rem;*/
                    width: 80%;
                    /*   margin: 2px 0;*/
                    padding: 0;
                    border: 0;
                    vertical-align: middle;
                }

        .Banner {
            background: url('../images/Templates/headleft.png') top left no-repeat,url('../images/Templates/headright.png') bottom right no-repeat;
        }

        .Banner > div {
            width: 75%;
            margin: 0 auto;
            text-align: center;
            padding-top: 0.3rem;
        }

            .Banner > div > .Logo > h1 > a:focus {
                outline: none;
            }

                .Banner > div > .Logo > h1 > a:focus > img {
                    outline: 2px solid #2e7f53;
                }

        /* ~~ 上方menu~~ */
        .header_menu {
            text-align: center;
            margin: auto;
            background: linear-gradient(to right,#0f4f5f 0%,#028367 46%,#0f4f5f 100%);
            box-shadow: 0px 2px 5px gray;
        }

            .header_menu > ul {
                padding: 0.2rem 1rem;
                border-radius: 1rem;
                display: inline-block;
            }

                .header_menu > ul > li {
                    display: inline-block;
                    width: 120px;
                    vertical-align: middle;
                    text-align: center;
                }

                    .header_menu > ul > li > a:link, .header_menu > ul > li > a:visited {
                        display: inline-block;
                        font-size: 1.2rem;
                        color: white;
                        display: block;
                        vertical-align: middle;
                    }

                    .header_menu > ul > li > a:focus {
                        outline: 2px solid #ffffff;
                    }

        /* ~~ 手機上方menu~~ */
        nav {
            display: none;
        }

        /*左選單*/
        .middleL {
            display: inline-block;
            width: 15rem;
            text-align: center;
            vertical-align: top;
            margin-right: 3.5rem;
            margin-top: 0.5rem;
        }

            .middleL > ul {
                max-width: 78%;
                text-align: center;
                margin: 0 auto;
                font-size: 1.4rem;
                line-height: 2.6rem;
                border: 1px solid #9f9fa0;
                position: relative;
            }

                .middleL > ul > li a {
                    display: block;
                    color: #3e3a39;
                    background-color: #ffffff;
                    padding: 0.2rem 0;
                }

                    .middleL > ul > li a:hover {
                        color: #14766e;
                        background-color: #f4f4f4;
                    }


                .middleL > ul > li {
                    border-bottom: 1px #cccccc dashed;
                }

                    .middleL > ul > li:first-child {
                        color: #FFF;
                        font-size: 1.5rem;
                        border: none;
                        background: linear-gradient(to right, #028367 30%, #006139 70%);
                    }

                    .middleL > ul > li:last-child {
                        border-bottom: none;
                    }

        .Top_L {
            color: #3e3a39;
            display: inline-block;
        }

        .matter_path {
            display: inline-block;
            margin-left: 6rem;
        }
        /*內文中間*/
        .middleC {
            min-height: 500px;
        }

        .indexpic {
            background: url('../images/Templates/banace.png') no-repeat center;
            min-height: 470px;
            display: none;
        }
    }

@media screen and (max-width:1100px) {
    .middleL {
        margin-right: 2.5rem;
    }
}

@media screen and (max-width:1000px) {
    .middleL {
        margin-right: 1.5rem;
    }

    .container {
        width: 65%;
    }
}

@media screen and (max-width:920px) {
    .matter_path {
        margin-left: 3rem;
    }
}

    @media screen and (max-width:874px) {
        .mark, .flip, .header_menu, .container_Top, .Top_L, .searchdiv, .middleL {
            display: none;
        }

        header {
            text-align: center;
        }

        .Logo {
            padding-top: 0.5rem;
        }

            .Logo > h1 > a > img {
                max-width: 90%;
            }

        .container {
            width: 100%;
            margin: 0 auto;
        }

        /*手機選單*/
        .SMenu {
            display: block;
            background: #2e7f53;
            height: 1.8rem;
            width: 100%;
            padding: 0.2rem 0;
            text-align: right;
        }

        .BarText {
            display: inline-block;
            color: #ffffff;
            font-size: 1.2rem;
            font-weight: bold;
            vertical-align: text-top;
        }

        .SMenu > a > div {
            display: inline-block;
            width: 2rem;
            line-height: 0.3rem;
            margin-right: 1rem;
            vertical-align: top;
        }

        .SMenu > a {
            display: inline-block;
            margin: 0;
            padding: 0;
            text-decoration: none;
        }

        .IconBar {
            background: #ffffff;
            display: inline-block;
            width: 1.3rem;
            height: 0.2rem;
            margin: auto;
        }
        /*手機選單內容*/
        .RMenu {
            display: block;
            background: #DCEDC8; /*#F8C3CD */
            padding-top: 1rem;
        }

        .RMSearch {
            margin-bottom: 0.2rem;
            text-align: center;
        }

            .RMSearch input[type=text] {
                vertical-align: middle;
                font-size: 1.1rem;
                line-height: 1.8rem;
                margin: 0;
            }

            .RMSearch .Search {
                vertical-align: middle;
                padding: 0.2rem 0.5rem;
                margin-left: -0.3rem;
                background: #c4c4c4;
            }

        .Search .Imgdiv {
            margin: 0;
            padding: 0;
            vertical-align: middle;
            max-height: 100%;
        }

        .RMSearch > a {
            display: inline-block;
            vertical-align: middle;
        }

        .ListItem {
            background: #FFF8E1;
        }

        .RMenu li {
            list-style-type: none;
            line-height: 2rem;
            text-align: left;
            border-top: 1px dotted #393939;
        }

        .RMenu > ul > li {
            margin: 0;
        }

        .RMenu a {
            text-decoration: none;
            color: #393939;
            font-size: 1.2rem;
            font-weight: bold;
            padding-left: 0.5rem;
        }

        .ListViewS, .ListView {
            padding: 0.2rem;
        }

            .ListViewS a, .ListView a {
                display: inline-block;
            }

        .ListItem a {
            display: block;
            padding-left: 1.1rem;
        }

            .ListItem a:focus {
                outline: none;
            }

                .ListItem a:focus > span {
                    outline: 2px solid #2e7f53;
                }

        .ListViewS {
            position: relative;
        }
        /*手機選單內容-下拉按鈕*/
        .Arrow {
            display: inline-block;
            width: 10px;
            height: 10px;
            border-bottom: 5px #393939 solid;
            border-left: 5px #393939 solid;
            transform: rotate(-45deg);
            position: absolute;
            margin-top: 0.3rem;
            right: 10px;
        }

        .Title_L {
            width: 90%;
            margin: auto;
        }

            .Title_L > h2 {
                font-weight: bold;
            }

        .matter_path {
            margin-left: 0.5rem;
        }

        .middleC {
            width: 100%;
            min-height: 500px;
        }

        .useless {
            min-height: 167px;
            background-image: url('../images/Templates/flip.png');
        }
    }
