/*公共样式*/
body,ul,li,p{
    margin:0;
    padding:0;
    font-family:"黑体","Arial",sans-serif;
}
body{
    background-color: #f1f1f1;
}
li{
    list-style-type:none;
}
a{
    text-decoration:none;
}
/*分割线样式*/
hr{
    position:absolute;
    top:120px;
    left:0;
    right:0;
    margin:auto\0;/*兼容ie*/
}
/*头部样式*/
.header{
    font-size:0;
    position:relative;
    width:1530px;
    height:150px;
    margin:auto;
}
.logo{
    display:inline-block;
    vertical-align:top;
    width:570px;
    height:60px;
    background-image:url('../images/logo.jpg');
    position:absolute;
    left:0;
    top:50px;
}
.header>ul{
    display:inline-block;
    width:-moz-max-content;/*兼容火狐*/
    width:max-content;
    position:absolute;
    left:980px;
    top:78px;
}
.header>ul>li{
    display:inline-block;
    font-size:20px;
    padding:0 10px;
    height:16px;
    margin-top:4px;
    line-height:16px;
    border-right:1px solid #676767;
}
.header>ul>li:last-child{
    border-right:0;
}
.header>ul>li>a{
    color:#676767;
}
.service{
    display:inline-block;
    width:-moz-max-content;/*兼容火狐*/
    width:max-content;
    [;width:210px;];/*兼容火狐*/
    width:210px\0;
    font-size:20px;
    position:absolute;
    top:78px;
    left:1324px;
    color:#676767;
}
.phone{
    display:inline-block;
    width:-webkit-max-content;
    width:-moz-max-content;
    width:-ms-max-content;
    width:max-content;
    font-size:20px;
    position:absolute;
    top:78px;
    left:1717px;
    color:#676767;
}
/*内容样式*/
.contain{
    width:1400px;
    height:680px;
    margin:auto;
    position:relative;
    left:0;
    right:0;
}
.contain-img{
    font-size:0;
    position:relative;
}
/*最后一个.contain-img的样式*/
.contain-img:last-child{
    top:341px;
    [;top:340px;]
}
.contain-img>li{
    width:50%;
    height:340.84px;
    overflow:hidden;
    position:absolute;
    background-color:#000;
}
/*第三个.contain-img>li的样式*/
.contain-img>li:nth-child(3){
    left:50%;
}
.contain-img>li>a{
    display:block;
    width:100%;
    height:100%;
    z-index:0;
}
.contain-img>li>a>img{
    width:100%;
    opacity:0.3;
    border:0\0;
}
.contain-img>li:hover{
    -webkit-transform:scale(1.05);
    transform:scale(1.05);
    box-shadow:1px 1px 10px #000;
    z-index:1;
}
/*当鼠标移入.contain-img>li时，其中的图片的样式*/
.contain-img>li:hover>a>img{
    opacity:1;
    border:0\0;
}
.title-img{
    width:204px;
    height:90px;
    position:absolute;
    top:0;
    bottom:0;
    left:0;
    right:0;
    margin:auto;
}
.title-img>img{
    width:100%;
    border:0\0;
}
.topic-act{
    width: 165px;
    position: relative;
    top: -60px;
    left: 0;
    right: 0;
    margin: auto;
    opacity:0;
}
.topic-act>img{
    width:100%;
    border:0\0;
}
/*当鼠标移入.contain-img>li时，其中.topic-act元素的样式*/
.contain-img>li:hover .topic-act{
    opacity:1;
}
.topic-but{
    position: relative;
    top: -20px;
    left: 344px;
}
.topic-but>li{
    width:70px;
    height:90px;
    display:inline-block;
    margin-right:50px;
}
.topic-but>li:last-child{
    margin-right:0;
}
/*对功能小图标整体加样式*/
.topic-but>li>object>a{
    display:block;
    width:100%;
    height:100%;
    z-index:1;
    background-image:url("../images/btn.png");
    background-size: 500px;
}
.topic-but>li>object>a>img{
    width:100%;
    border:0\0;
}
/*对功能小图标样式局部定义*/
.home-1,.home-2,.home-3{
    background-position-y: 364px;
}
.designer-1,.designer-2,.designer-3{
    background-position-y: 466px;
}
.foreman-1,.foreman-2,.foreman-3{
    background-position-y: 273px;
}
.surveyor-1,.surveyor-2,.surveyor-3{
    background-position-y: 176px;
}
.home-1,.designer-1,.foreman-1,.surveyor-1{
    background-position-x:402px;
}
.home-2,.designer-2,.foreman-2,.surveyor-2{
    background-position-x: 298px;
}
.home-3,.designer-3,.foreman-3,.surveyor-3{
    background-position-x:192px;
}
.contain-topic{
    width:100%;
    height:140px;
    background-color:#fff;
    border:1px solid #b1b1b1;
    box-sizing:border-box;
    position:relative;
    top:30px;
}
.contain-topic>i{
    position:absolute;
    top:-10px;
    left:50%;
    margin-left:-8px;
    width:16px;
    height:16px;
    -webkit-transform:rotate(45deg);
    transform:rotate(45deg);
    background-color:#fff;
    border-top:1px solid #b1b1b1;
    border-left:1px solid #b1b1b1;
}
.contain-topic>img{
    position:absolute;
    top: 130px;
    left:135px;
    width:150px;
    border:0\0;
}
.contain-img>li:hover .title-img{
    opacity: 0;
}
.contain-img>li:hover .contain-topic{
    top:-140px;
    -webkit-transition-duration:.3s;
    transition-duration:.3s;
    -webkit-transition-timing-function:cubic-bezier(.2,-.1,.7,1.1);
    transition-timing-function:cubic-bezier(.2,-.1,.7,1.1);
}
.contain-img>li:hover .contain-topic>img{
    border:0\0;
    top:38px;
    -webkit-transition-duration:.5s;/*动画总时长*/
    transition-duration:.5s;
    -webkit-transition-timing-function:ease-in;/*动画效果：慢入快出*/
    transition-timing-function:ease-in;
}
/*淘家居标识色块*/
.trim-cyan{
    background-color:#00a6b1;
    left:0;
}
/*设计师标识色块*/
.trim-yel{
    background-color:#fbb223;
    left:700px;
}
/*选工长标识色块*/
.trim-red{
    background-color:#ec3a3e;
    left:0;
}
/*找监理标识色块*/
.trim-blue{
    background-color:#0070ba;
    left:700px;
}
/*标识色块公共样式*/
.trim-cyan,.trim-yel,.trim-red,.trim-blue{
    width:340px;
    height:14px;
    position:absolute;
    z-index:-1;
}
/*淘家居和设计师标识色块动画开始高度*/
.trim-cyan,.trim-yel{
    top:0;
}
/*选工长和找监理标识色块动画开始高度*/
.trim-red,.trim-blue{
    top:327px;
}
/*鼠标放上后主题图和标识色同时从滑出的动画效果*/
.contain-img:first-child>li:nth-child(1):hover + .trim-cyan,.contain-img:first-child>li:nth-child(3):hover + .trim-yel,.contain-img:last-child>li:nth-child(1):hover + .trim-red,.contain-img:last-child>li:nth-child(3):hover + .trim-blue{
    z-index:0;
    -webkit-transition-duration:.5s;
    transition-duration:.5s;
    -webkit-transition-timing-function:ease-in;
    transition-timing-function:ease-in;
}
/*淘家居和设计师的标识色块动画结束高度*/
.contain-img:first-child>li:nth-child(1):hover + .trim-cyan,.contain-img:first-child>li:nth-child(3):hover + .trim-yel{
    top: -22px;
}
/*选工长和找监理的标识色块动画结束高度*/
.contain-img:last-child>li:nth-child(1):hover + .trim-red,.contain-img:last-child>li:nth-child(3):hover + .trim-blue{
    top: 350px;
}
/*底部*/
.footer{
    width:100%;
    padding:10px 0;
    margin-top:62px;
    [;margin-top:53px;];/*只针对safari*/
    background-color:#181818;
}
/*只针对火狐*/
@-moz-document url-prefix(){
    .footer{margin-top:55px;}
}
.footer>p,.footer>p>a{
    font-size:13px;
    color:#b0b0b0;
    text-align: center;
}
.footer>p:first-child{
    margin-bottom:5px;
}
@media screen and (max-width:1600px){
    /*当分辨率<=1600px*/
    .logo{
        left:50px;
    }
    .header{
        width:1400px;
    }
    .header>ul{
        left:900px;
    }
    .service{
        left:1180px;
    }
    hr{
        width:1400px;
    }
    .contain{
        width:1280px;
    }
    .contain-img>li{
        height:312px;
    }
    .contain-img:last-child {
        top:312px;
    }
    .contain-img>li:hover{
        -webkit-transform:scale(1.05);
        transform:scale(1.05);
    }
    .topic-but>li>object>a{
        background-size:450px;
    }
    .home-1,.home-2,.home-3{
        background-position-y: 331px;
    }
    .designer-1,.designer-2,.designer-3{
        background-position-y: 424px;
    }
    .foreman-1,.foreman-2,.foreman-3{
        background-position-y: 248px;
    }
    .surveyor-1,.surveyor-2,.surveyor-3{
        background-position-y: 162px;
    }
    .home-1,.designer-1,.foreman-1,.surveyor-1{
        background-position-x:365px;
    }
    .home-2,.designer-2,.foreman-2,.surveyor-2{
        background-position-x: 273px;
    }
    .home-3,.designer-3,.foreman-3,.surveyor-3{
        background-position-x:177px;
    }
    .contain-img:first-child>li:nth-child(1):hover + .trim-cyan, .contain-img:first-child>li:nth-child(3):hover + .trim-yel {
        top: -22px;
    }
    .trim-yel,.trim-blue{
        left: 640px;
    }
    .contain-img:last-child>li:nth-child(1):hover + .trim-red, .contain-img:last-child>li:nth-child(3):hover + .trim-blue {
        top: 321px;
    }
    .trim-red, .trim-blue {
        top: 298px;
    }
    .topic-but{
        left: 310px;
    }
    .topic-but>li {
        margin-right: 30px;
    }
    .footer{
        margin-top:0;
    }
}
@media screen and (max-width:1366px){
    /*当分辨率<=1366px*/
    html{
        font-size:100px;
    }
    .logo{
        width:4.7rem;
        background-size:100%;
        top: 0.3rem;
    }
    .header{
        width:13rem;
    }
    .header>ul {
        left: 7rem;
        top:0.53rem;
    }
    .header>ul>li{
        font-size:15px;
    }
    .service {
        left: 10rem;
        top:0.53rem;
        font-size:15px;
    }
    hr{
        width:11.5rem;
        top:.5rem;
    }
    .contain {
        width: 10rem;
        height:5rem;
        top: -0.3rem;
    }
    .contain-img>li {
        height: 2.43rem;
    }
    .contain-img:last-child {
        top: 2.43rem;
    }
    .contain-topic {
        height:1.2rem;
    }
    .contain-img>li:hover .contain-topic{
        top: -1.2rem;
    }
    .contain-topic>img{
        width:1.3rem;
        left:0.52rem;
    }
    .topic-act{
        width:1.46rem;
    }
    .topic-but{
        left: 2.1rem;
        top: -0.11rem;
    }
    .topic-but>li{
        width: 0.55rem;
        height:0.7rem;
    }
    .topic-but>li>object>a{
        background-size:400px;
    }
    .home-1,.home-2,.home-3{
        background-position-y: 292px;
    }
    .designer-1,.designer-2,.designer-3{
        background-position-y: 372px;
    }
    .foreman-1,.foreman-2,.foreman-3{
        background-position-y: 218px;
    }
    .surveyor-1,.surveyor-2,.surveyor-3{
        background-position-y: 142px;
    }
    .home-1,.designer-1,.foreman-1,.surveyor-1{
        background-position-x:321px;
    }
    .home-2,.designer-2,.foreman-2,.surveyor-2{
        background-position-x: 238px;
    }
    .home-3,.designer-3,.foreman-3,.surveyor-3{
        background-position-x:153px;
    }
    .trim-cyan, .trim-yel, .trim-red, .trim-blue {
        height: 0.12rem;
    }
    .contain-img:first-child>li:nth-child(1):hover + .trim-cyan, .contain-img:first-child>li:nth-child(3):hover + .trim-yel {
        top: -0.19rem;
    }
    .trim-yel, .trim-blue {
        left: 5rem;
    }
    .contain-img:last-child>li:nth-child(1):hover + .trim-red, .contain-img:last-child>li:nth-child(3):hover + .trim-blue {
        top: 2.5rem;
    }
    .trim-red, .trim-blue {
        top: 2.31rem;
    }
}