﻿/* 初始設定 */
html {
    -ms-overflow-y: scroll;
}

body {
    -webkit-overflow-scrolling: touch;
}

body, div, dl, dt, dd, th, td, ul, ol, li, h1, h2, h3, h4, h5, h6, p, form {
    margin: 0px;
    padding: 0px;
}

body {
    font-family: Microsoft JhengHei;
    font-size: medium;
}

label {
    font-weight: normal;
    font-weight: inherit;
}

h1, h2, h3, h4, h5, h6, strong, em, p {
    font-size: 100%;
    font-style: normal;
}

li {
    list-style: none;
    vertical-align: bottom;
}

    li img {
        vertical-align: top;
    }

img {
    border: 0px currentColor;
    border-image: none;
}

table {
    border: 0px currentColor;
    border-image: none;
    border-collapse: collapse;
    border-spacing: 0px;
}

a {
    text-decoration: none;
}

    a:visited {
        color: #939;
    }

    a img {
        border: currentColor;
        border-image: none;
    }

    a.A1 {
        color: #fff !important;
        text-decoration: none;
        font-size: 0.8125em;
        padding: 10px;
    }

/* 行動版選單 Toggle navigation */
.navbar-toggle {
    margin-top: 18px;
    margin-right: 5px;
    border: none;
    z-index: 999;
}

    .navbar-toggle .icon-bar {
        height: 4px;
        border-radius: 2px;
    }

        .navbar-toggle .icon-bar + .icon-bar {
            margin-top: 5px;
        }

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
    background-color: transparent;
}

.navbar-default .myNavbar {
    float: left;
}

.navbar-default .mySearch {
    margin-right: 5px;
    margin-top: 22px;
    color: #fff;
    background-color: #888 !important;
    width: 34px;
    height: 34px;
    padding: 2px 0px 0px 0px;
    border-radius: 20px;
}

/* 主頁寬度 */
.header-con,
.menu-con,
.content-con,
.footer-con {
    width: 83%;
    padding-right: 60px;
    padding-left: 60px;
    margin-right: auto;
    margin-left: auto;
}

.container-fluid {
    padding: 0;
}

.header-con {
    padding-left: 0px;
}


@media (max-width: 985px) {
    .container-fluid {
        padding-right: 15px;
        padding-left: 15px;
    }

    .header-con,
    .menu-con,
    .content-con,
    .footer-con {
        width: 89%;
    }

    .header-con {
        padding-left: 10px;
    }
}

/* 表頭 */
.navbar {
    min-height: 0px;
    margin-bottom: 0px;
    border: none;
    border-radius: 0px;
}

header {
    position: relative;
    background-color: black;
    margin-top: 30px;
}

.header-con {
    margin: 0px auto;
    height: 100px;
    position: relative;
}

.navbar-default {
    background-color: transparent;
    border-color: transparent;
}

.nav-system {
    display: none;
    float: left;
    color: #ffffff;
    margin-top: -2em;
    background: #444;
    width: 100%;
    line-height: 2em;
}


/* LOGO：各機關logo(可自行更換320*90) 或 最多顯示14個中文字 */
.header-con .logo {
    width: 280px;
    text-align: center;
    line-height: 1cm;
    font-weight: 800;
    color: #fff;
    position: relative;
    /*display:inherit;*/
}

    .header-con .logo IMG {
        vertical-align: top;
    }

    .header-con .logo a:link,
    .header-con .logo a:hover,
    .header-con .logo a:active,
    .header-con .logo a:visited {
        color: #fff;
        text-decoration: none !important;
    }
        
    /* 系統名稱 */
    .header-con .sys-name {
        position: absolute;
        top: 0px;
        left: 350px;
        height: 90px;
    }
   
/* 上方選單 */
.header-nav {
    position: absolute;
    top: -30px;
    right: 0;
    margin: 0;
    padding: 0;
    line-height: normal;
    width: 100%;
    font-size: 0.9375em;
}

    .header-nav .navbar-nav {
        margin: 0px;
        float: right;
    }

        .header-nav .navbar-nav > li > a {
            padding-top: 0px;
            padding-bottom: 0px;
            line-height: 30px;
        }



/* 主選單 */
.menu {
    font-size: 1.125em;
}

.menu-con {
    margin: 0px auto;
    position: relative;
}

.menu ul {
    margin: 0 auto;
    display: table;
}

.menu li {
    line-height: 40px;
    float: left;
}

    .menu li > a {
        padding: 0px 20px;
        display: inline-block;
    }

        .menu li > a.active,
        .menu li > a:hover,
        .menu li > a:focus {
            height: 40px;
            text-decoration: none;
        }

/* 主要內容 */
.content-con {
    height: auto;
    min-height: 650px;
    padding-bottom: 10px;
    background-color: #fff;
    position: relative;
}



/* 本文內容 */
.text-con {
    width: 100%;
    color: #000000;
    height: auto;
    position: relative;
}

    .text-con .text-title {
        padding-top: 1em;
        padding-bottom: .5em;
        margin-bottom: 1.5em;
        border-bottom: #aaa 3px solid;
    }

        .text-con .text-title h2 {
            font-size: 1.375em;
            font-weight: 800;
            line-height: 1.375em;
        }

            .text-con .text-title h2 span {
                margin-right: 6px;
            }

    .text-con .text-eng {
        margin-left: .5em;
        font-family: "Times New Roman", Times, serif;
    }

    .text-con .law-result {
        display: block;
        background-color: #efefef;
        padding: 10px 10px;
    }

        .text-con .law-result h3 {
            font-size: 1.125em;
            font-weight: 800;
            line-height: 1.125em;
        }

            .text-con .law-result h3 span {
                margin-right: 10px;
            }

/* 回上方 */
#gotop {
    right: 22px;
    bottom: 10px;
    position: fixed;
    z-index: 10000;
    -webkit-overflow-scrolling: touch;
    color: rosybrown;
}

    #gotop a {
        width: 45px;
        height: 45px;
        line-height: 45px;
        border-radius: 25px;
        text-align: center;
        color: #fff;
        background-color: #666;
        opacity: 0.5;
        display: block;
        font-size: small;
        font-size-adjust: none;
        font-stretch: normal;
        text-transform: uppercase;
        text-decoration: none;
        transition: 1s;
        -webkit-transition: 1s;
        -moz-transition: 1s;
    }

        #gotop a:hover {
            opacity: 0.85;
            background: #222;
        }

@media (max-width: 767px) {
    #gotop a {
        width: 80px;
        height: 80px;
        line-height: 80px;
        border-radius: 40px;
        font-size: x-large;
        letter-spacing: -1pt;
    }
}

/* 頁尾 */
footer {
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 0.9375em;
}

    footer .footer-con {
        position: relative;
        padding-left: 30px;
        padding-right: 30px;
    }

        footer .footer-con .address li {
            list-style-type: disc;
            line-height: 1.6em;
        }

        footer .footer-con .visitors {
            top: 0px;
            right: 30px;
            position: absolute;
        }

        footer .footer-con .logo-box {
            top: 31px;
            right: 30px;
            position: absolute;
        }
