﻿body {
    width: 100%;   
    background-image: url('../../Static/images/bg/H5_bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    -moz-background-size: cover;
    -webkit-background-size: cover;
    background-position-y: center;
    background-position-x: center;
    /*height: 100vh;*/    
    overflow: hidden;    
        /*width: 100%;
    background-image: url(../../Static/images/bg/H5_bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    -moz-background-size: cover;
    -webkit-background-size: cover;    
    background-position-x: center;
    overflow: hidden;
    height: 100%;
    position: absolute;
    top: 0;
    bottom: 0;*/
}
h1, h2, h3, h4, h5 {
    margin: 0;
    padding: 0;
}

h2 {
    font-size: 28px;
}

    h2 a {
        color: white !important;
        text-decoration: none !important;
    }

h3 a {
    color: white !important;
    text-decoration: none !important;
}

h5 {
    margin-top: 6px;
}

    h5 a {
        color: white !important;
        text-decoration: none !important;
    }

.home-MainBody {
    /*overflow: hidden;*/  
    /*防止js獲取高度不正確*/
}

.lang {
    position: relative;
    left: 1px;
    padding-right:10px;
}
    .lang span {
        background:#efefef;
        padding:5px 8px;
        border-radius:3px;
    }
.header {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
}

.header-logo {
    text-align: center;
    padding: 5px 0px 0px;
}

    .header-logo a {
        text-decoration: none;
    }

    .header-logo img {
        /*height: 32px;*/
        height:25.4px;
        margin: 8px 2%;
    }

.statement {
    text-align: right;
    margin-top: -0.8vh; 
    margin-bottom:7px;   
}

    .statement span {
        font-size: 14px;
        color: #0056FF;
        cursor: pointer;
        /*position:relative;
        left:1.9%;*/
    }

        .statement span a {
            color: #0056FF !important;
            text-decoration: none;
        }

.home-title {
    overflow: hidden;
    text-align: center;
    color: #ffffff;
    margin-top: 22px;
}

.home-title-cn span {
    display: inline-block;
    width: 100%;
    margin: 6px 0;
}

.home-title-line {
    margin-top: 10px;
    border: 1px solid #FFFFFF;
}

.home-title-en {
    overflow: hidden;
    margin-top: 6px;
}

.grid {
    margin-top: 6%;
    border: 1px solid #ffffff;
    padding: 2% 0;
    margin-bottom: 15px;
}
/*主要數據顯示*/
#main-data {
    /*background:rgba(0, 0, 0, 0.2);*/
}

    #main-data b {
        font-weight: initial;
    }

.grid-region {
    margin-top: 3.5%;
    color: #ffffff;
    text-align: center;
    /*cursor: pointer;*/
    z-index: 10;
}

.grid-filed1 {
    margin-top: 4%;
    color: #ffffff;
    text-align: center;
    /*cursor: pointer;*/
}

.grid-filed2 {
    margin-top: 3%;
    color: #ffffff;
    text-align: center;
    /*cursor: pointer;*/
}
/*其他分區*/
.selectRegion {
    margin-top: 4%;
    background: rgba(0,0,0,0.37);
    border: 1px solid #FFFFFF;
    height: 44px;
    text-align: center;
    cursor: pointer;
}

    .selectRegion span {
        color: #ffffff;
        line-height: 44px;
    }

    .selectRegion .iconfont{
        position: absolute;
        right: 10px;
        line-height: 44px;
        text-decoration: none;
        color: #ffffff;
        transform: rotate(-90deg);
        font-size: 14px;
    }
/*分區選擇下拉框*/
.regionOption {
    display: none;
    background: rgba(0,0,0,0.75);
    color: #000000;
    max-height: 176px;
    overflow: auto;
    position: relative;
}
    /*滚动条样式*/
    .regionOption::-webkit-scrollbar {
        /*滚动条整体样式*/
        width: 4px; /*高宽分别对应横竖滚动条的尺寸*/
        height: 4px;
    }

    .regionOption::-webkit-scrollbar-thumb {
        /*滚动条里面小方块*/
        border-radius: 5px;
        -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
        background: rgba(0, 0, 0, 0.2);
    }

    .regionOption::-webkit-scrollbar-track {
        /*滚动条里面轨道*/
        -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
        border-radius: 0;
        background: rgba(0, 0, 0, 0.1);
    }

    .regionOption span {
        display: inline-block;
        width: 100%;
        cursor: pointer;
    }

        .regionOption span:hover {
            background: rgba(0,0,0,0.55);
        }
        .regionOption span a {
            color:white;
            text-decoration:none;
            display: block;
        }
/*人口普查參數選擇框*/
.seach {
    margin-top: 4%;
    background: #ffffff;
    height: 44px;
    /*overflow: hidden;*/
}

    .seach input {
        border: none;
        outline: none;
        /*height: 44px;*/
        height: 40px;
        width: 82%;
        position: relative;
        left: 4%;
    }

        .seach input::-webkit-input-placeholder {
            color: #B0B0B0;
        }

    .seach .iconfont {
        display: inline-block;
        /*background:#ff6a00;*/
        text-decoration: none;
        color: black;
        line-height: 44px;
        width: 15%;
        text-align: center;
        padding-left: 2%;
        font-size: 17px;
    }
/*搜索彈出層*/
.searchResult {
    position: absolute;
    left: 0;    
    /*top: 50px;*/
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #D5D5D5;
    z-index: 2000;
    display: none;
    max-height: 160px;    
    overflow-y: auto;
    overflow-x: hidden;
}
    /*滚动条样式*/
    .searchResult::-webkit-scrollbar {
        /*滚动条整体样式*/
        width: 4px; /*高宽分别对应横竖滚动条的尺寸*/
        height: 4px;
    }

    .searchResult::-webkit-scrollbar-thumb {
        /*滚动条里面小方块*/
        border-radius: 5px;
        -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
        background: rgba(0, 0, 0, 0.2);
    }

    .searchResult::-webkit-scrollbar-track {
        /*滚动条里面轨道*/
        -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
        border-radius: 0;
        background: rgba(0, 0, 0, 0.1);
    }

    .searchResult .nodata {
        padding: 10px 0;
        text-align: center;
        display: none;
    }

    .searchResult a {
        text-decoration: none;
        color: #000;
    }

.result-item {
    padding: 10px 10px;
    display: inline-block;
    width: 100%;
}

    .result-item:hover {
        background: #efefef;
    }

    .result-item b {
        color: #A20C00;
    }

.searchdistrict .title {
    background: #FAFAFA;
    color: #666666;
    padding: 10px;
    display: none;
}
/*知識產權告示*/
.home-bulletin {
    background: rgba(255, 255, 255,0.85);
    display: none;
    position: absolute;
    bottom: 0;     
}

.home-bulletin-top {
    margin-top: 5px;
    line-height: 2.5vh;
}

.home-bulletin-title {
    text-align: left;
    font-size: 11px;
    color: #A05C5B;
    font-weight: bold;
}

    .home-bulletin-title a {
        color: #A05C5B;
        font-size: 14px;
        text-decoration: none;
    }

.home-bulletin-more {
    font-size: 11px;
    text-align: right;
}

    .home-bulletin-more a {
        color: #0043E4;
        text-decoration: none;
        font-weight: bold;
    }

.home-bulletin-content {
    font-size: 11px;
    color: #4A4A4A;
    padding: 0px 14px 4px 33px;
}


/*平板*/
@media (min-width: 768px) and (max-width: 992px) {
    body {
        background-image: url('../../Static/images/bg/web_bg.png');
        height: 100vh;
    }

    h2 {
        font-size: 37px;
    }

    h3 {
        font-size: 32px;
    }

    h4 {
        font-size: 22px;
    }   
    .header-logo img {
        height: 40px;
    }

    .home-MainBody {
        /*overflow: -webkit-paged-y;*/
    }

    .regionOption {
        display: none;
        background: rgba(0,0,0,0.75);
        color: #000000;
        max-height: 340px;
        overflow: auto;
        position: relative;
    }

    .searchResult {
        position: absolute;
        left: 0;
        /*top: 4.89vh;*/
        width: 100%;
        background: #FFFFFF;
        border: 1px solid #D5D5D5;
        z-index: 2000;
        display: none;
        max-height: 200px;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .grid-region h2 {
        font-size: 40px;
    }

    .home-title {
        /*margin-top: 6%;*/
        margin-top: 5.8%;
    }

    .home-title-cn span {
        display: inline;
        /*margin-right: 1.4%;*/
    }

    .grid-filed2 {
        margin-top: 4%;
        color: #ffffff;
        text-align: center;
    }
    .home-bulletin-title {   
    font-size: 12px;   
}
    .home-bulletin-more {
        font-size:12px;
    }
    .statement {
        text-align: right;        
        margin-top: -15px;
        margin-bottom: 10px;
    }

        .statement span {
            font-size: 14px;
            color: #0056FF;
        }

    .selectRegion {
        margin-top: 4.2%;
        height: 50px;
    }

        .selectRegion span {
            line-height: 50px;
            font-size: 16px;
        }

        .selectRegion a {
            line-height: 50px;
            font-size: 16px;
        }

    .seach {
        margin-top: 4%;
        height: 50px;
        margin-bottom: 4%;
    }

        .seach input {
            height: 46px;
            font-size: 16px;
        }

        .seach .iconfont {
            line-height: 50px;
            font-size: 20px;
        }

    .home-bulletin {
        position: absolute;
        bottom: 0;
    }

    .home-bulletin-content {
        font-size: 12px;
        color: #4A4A4A;
        padding: 0px 14px 8px 33px;
    }
}

/*PC佈局*/
@media (min-width: 992px) {
    body {
        background-image: url('../../Static/images/bg/web_bg.png');
        overflow: hidden;
        height: 100vh;
    }

    h2 {
        font-size: 42px;
    }

    h3 {
        font-size: 38px;
    }

    h4 {
        font-size: 22px;
    }

    h5 {
        font-size: 18px;
    }
   
    .regionOption {
        display: none;
        background: rgba(0,0,0,0.75);
        color: #000000;
        max-height: 340px;
        overflow: auto;
        position: relative;
    }
        .home-bulletin-title {   
    font-size: 12px;   
}
    .home-bulletin-more {
        font-size:12px;
    }
    .lang {
        position: relative;
        left: 4px;
    }

    .header-logo {
        padding: 10px 0px;
    }

        .header-logo img {
            height: 40px;
        }

    .statement {
        text-align: right;  
        margin-bottom: 10px;    
    }

        .statement span {
            font-size: 14px;
            color: #0056FF;
        }

    .home-title {
        margin-top: 5.5%;
    }

    .home-title-cn span {
        display: inline;
        /*margin-right: 1.4%;*/
    }

    .grid {
        margin-top: 5.1%;
        border: 1px solid #ffffff;
        padding: 2% 0;
        margin-bottom: 15px;
    }

    .grid-region {
        position: absolute;
        left: 0;
        right: 0;
        top: 4%;
        z-index: 10;
        text-align: center;
    }

    .grid-filed1 {
        padding-right: 12%;
    }

    .grid-filed2 {
        margin-top: 4%;
        color: #ffffff;
        text-align: center;
        padding-left: 12%;
    }

    .selectRegion {
        margin-top: 4%;
        height: 50px;
    }

        .selectRegion span {
            line-height: 50px;
            font-size: 16px;
        }

        .selectRegion a {
            line-height: 50px;
            font-size: 16px;
        }

    .seach {
        margin-top: 4%;
        height: 50px;
    }

        .seach input {
            height: 46px;
            font-size: 16px;
        }

        .seach .iconfont {
            line-height: 50px;
            font-size: 20px;
        }

    .home-bulletin {
        position: absolute;
        bottom: 0;
    }

    .home-bulletin-content {
        font-size: 12px;
        color: #4A4A4A;
        padding: 0px 14px 8px 33px;
    }
}


/*超大屏幕*/
@media (min-width: 1170px) {
    .home-title {
        margin-top: 3.8%;
    }

    .grid {
        margin-top: 3.6%;
        border: 1px solid #ffffff;
        padding: 2% 0;
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 767px) {
    html {
        height:100%;
    }

     .header-logo img {       
        margin: 8px 0%;
    }
}