/* 
 */
/*HEADER*/
/* 
 */

header {
    width: 100%;
    height: 100%;
    min-height: 600px;
    min-width: 1100px;;
    background: #000 url(http://book.jirengu.com/jirengu-inc/jrg-tehui/homework/%E8%8B%A5%E6%84%9A/16/img/header-bg.jpg) center center no-repeat ;
    background-size: cover;
}
.logo {
    font-size: 30px;
    font-weight: bold;
    color: rgb(253, 201, 43);
}

nav >ul>li {
    float: left;
}

.function>li>a:hover {
    color: rgb(253, 201, 43);
}

.function {
    margin-top: 30px;
    margin-right: 50px;
    float: right;
}

nav >a {
    display: inline-block;
    margin: 30px 20px;
}

.function li a {
    display: inline-block;
    color: white;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
}

.container {
    width: 1100px;
    height: 800px;
    margin: 150px auto 100px auto;
    vertical-align: middle;
    text-align: center;
  
}

.container >h1{
    margin-top: 20px;
    font-size: 70px;
    font-weight: bold;
    color: white;
}

.container >h2{
    font-style: italic;
    font-size: 40px;
    color: white;
}

.container>.button {
    margin-top: 30px;
}

header::after {
    content: '';
    height: 100px;
    display: table;
}

/* 
 */
/*SERVICES*/
/* 
 */

.services {
    text-align: center;
}

.services::before {
    content: '';
    display: table;
}

.iconfont {
    display: inline-block;
    width: 100px;
    height: 100px;
    border-radius: 50px;
    font-size: 50px;
    font-family: iconfont;
    background:rgb(253, 201, 43);
    color: white;
    line-height: 100px;
    vertical-align: middle;
    
}
.services ul li {
    float: left;
    margin-right: 10px;
    width: calc(100%/3 - 20px);
    text-align: center;
}
.services {
    text-align: center;
    vertical-align: middle;
}
.services ul {
    margin-top: 80px;
    margin-right: -30px;
}
.intro-ul figure {
    text-align: center;
}
.intro-ul h3 {
    margin-top: 20px;
}
.intro-ul p {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.75;
    text-align: center;
}

/* 
 */
/* portfolio */
/* 
 */

.portfolio {
    text-align: center;
    position: relative;
    background: rgb(245, 245, 245);
    min-width: 1100px;
}

.portfolio>div {
    margin-top: 100px;
    position: relative;
    top: 120px;
}

.portfolio-ul {
    margin-top: 60px;
    margin-right: -60px;
}

.portfolio-ul li {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
    width: calc(100%/3 - 40px);
}

.portfolio-ul img {
    position: relative;
    width: 100%;
    height: 100%;
}

.portfolio-ul a>div{
    position: relative;
}

.portfolio-ul .ahover {
    background: rgba(254, 209, 54, .9);
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0; 
    opacity: 0;
}

.portfolio-ul .ahover::after {
    content: '\e657';
    font-family: iconfont;
    /* border: 1px solid rgb(253, 201, 43,0.9); */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    font-size: 50px;
    color: rgba(189, 69, 77,0.9);
    position: absolute;
    top: 50%;
    left: 50%;
    background: rgb(253, 201, 43,0.9);
    transform: translate(-50%, -50%);
}

.portfolio-ul a:hover .ahover{
    opacity: 1;
}


.portfolio-ul h3 {
    margin-top: 20px;
}

.portfolio-ul p {
    margin-top: 5px;
    margin-bottom: 20px;
    font-size: 15px;
    color: rgb(100, 100, 100);
    font-style: italic;
}

.portfolio-ul figure {
    display: inline-block;
    background: white;
}

.portfolio::after {
    content: '';
    display: block;
    clear: both;
    height: 250px;
}

/* 
 */
/* about */
/* 
 */

.about {
     text-align: center; 
     /* position: relative; */
}

.about::before {
    content: '';
    display: table;
}

.about-ul >li::after {
    content: '';
    display: block;
    clear: both;
}

.about img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 10px solid rgb(237, 237, 237);
}

.about-ul >li >div {
    width: 350px;
}

.about-ul >li {
    margin-top: 50px;
    position: relative;
}

.about-ul >li::before {
    display: inline-block;
    content: '';
    position: absolute;
    width: 10px;
    height: 55px;
    background:  rgb(237, 237, 237);
    left:calc(50% - 5px);
    top: 160px;
    height: 50px;
}

.about-ul >li:last-child::before {
    height: 0px;
}


.about-ul >li h3 {
    margin-top: 10px;
}

.about-ul >li p {
    margin-top: 10px;
    line-height: 1.7;
    font-size: 14px;
    color: rgb(100, 100, 100);
}

.about-ul li:nth-child(odd) {
    padding-right: calc(50% - 80px);
    text-align: right;
 }

.about-ul li:nth-child(even){
    padding-left: calc(50% - 80px);
    text-align: left;
 }

 .about-ul li:nth-child(odd) div{
    margin-left: 100px; 
    /* margin-left: calc(50% - 200px);  li 父元素宽度620   620/2-200=110 */
 }

 .about-ul li:nth-child(even) div{
    margin-left: 180px;
 }

.about-ul li:nth-child(odd) img{
    float: right;
}
 
.about-ul li:nth-child(even) img{
    float: left;
}

.about-ul li figure {
    display: inline-block;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 10px solid rgb(237, 237, 237);
    background: rgb(253, 201, 43);
    text-align: center;
    position: relative;
}

.about-ul li span {
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1.5;
    color: white;
}


/* 
 */
 /* team */
/* 
 */

.team {
    text-align: center;
    background: rgb(245, 245, 245);
    min-width: 1100px;
}

.team>div {
    margin-top: 120px;
    position: relative;
    top: 120px;
}

.team-ul {
    margin-top: 80px;
}

.team-ul li {
    text-align: center;
}

.team-ul li:nth-child(3) {
    margin: 0 auto;
}

.team-ul li:nth-child(1) {
    float: left;
}

.team-ul li:nth-child(2) {
    float: right;
}

.team-ul img {
    width: 200px;
    border: 10px solid white;
    border-radius: 50%;
    text-align: center;
}

.team-ul h3 {
    margin-top: 30px;
}

.team-ul p {
    margin-top: 5px;
}

.team-child-ul {
    width: 100%;
    text-align: center;
    float: left;
    
}
.team-ul div {
    margin-top: 10px;
}
.team-ul div a{
    display: inline-block;
    margin: 0px 10px;
    font-family: iconfont;
    border-radius: 50%;
    font-size: 40px;
    background:white;
    color: #000;
}

.team-bottom {
    margin-top: 50px;
}
.team-bottom>p {
    width: 700px;
    line-height: 1.5;
    margin: 0 auto;
    text-align: center;
    font-size: 15px;
    color: rgb(100, 100, 100);
    font-style: italic;
}

.team::after {
    content: '';
    display: block;
    clear: both;
    height: 250px;
}

/* 
 */
/* brand */
/* 
 */

.brand {
    text-align: center;
    margin: 50px;
    margin-right: -40px;
}

.brand-ul li{
    float: left;
    margin-right: 10px;
    width: calc(100%/4 - 30px);
    
}

.brand-ul img {
    width: 100%;
}

/* 
 */
 /* contract */
 /* 
  */
  
.contact-us::before {
    content: '';
    display: block;
    clear: both;
    height: 40px;
}

.contact-us {

    width: 100%;
    height: 100%;
    min-width: 1100px;
    height: 800px;
    background: rgba(0, 0, 0, 0.9) url(../img/contact/contact.png) center center no-repeat ;
    background-size: cover;
    text-align: center;
}

.your-info::before {
    content: '';
    display: block;
    clear: both;
    height: 50px;
}

.your-info {
  margin-top: 50px;
  height: 300px;
}

.your-info input{
  
  margin: 20px;
  display: block;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.42857143;

  border-radius: 4px;
  padding: 10px;
  height: 40px;
  width: 500px;
  color: #555;
  background-color: #fff;
  border: 1px solid #ccc;

}


.your-info textarea {

    font-weight: bold;
    font-size: 15px;
    padding: 10px;
    resize: none;
    float: right;
    width: 500px;
    height: 205px;
    border-radius: 4px;
    color: #555;
    background-color: #fff;
    border: 1px solid #ccc;
}

.contact-us .button {
    margin-top: 40px;
}

.contact-us > h2 {
    color: white;
}

.contact-us > P {
    color: white;
}

.contact-us::after {
    content: '';
    display: block;
    clear: both;
    height: 240px;
}


.your-info input::-webkit-input-placeholder 
{ /* WebKit browsers */ 
    color: #999; 
    font-size: 18px;
    padding: 10px;
    font-weight: bold;
} 
.your-info input :-moz-placeholder 
{ /* Mozilla Firefox 4 to 18 */ 
    color: #999; 
    font-size: 18px;
    padding: 10px;
    font-weight: bold;
} 
.your-info input ::-moz-placeholder 
{ /* Mozilla Firefox 19+ */ 
    color: #999; 
    font-size: 18px;
    padding: 10px;
    font-weight: bold;
} 
.your-info input :-ms-input-placeholder 
{ /* Internet Explorer 10+ */ 
    color: #999; 
    font-size: 18px;
    padding: 10px;
    font-weight: bold;
}


.your-info textarea::-webkit-input-placeholder 
{ /* WebKit browsers */ 
    color: #999; 
    font-size: 18px;
    padding: 10px;
    font-weight: bold;
} 
.your-info textarea :-moz-placeholder 
{ /* Mozilla Firefox 4 to 18 */ 
    color: #999; 
    font-size: 18px;
    padding: 10px;
    font-weight: bold;
} 
.your-info textarea ::-moz-placeholder 
{ /* Mozilla Firefox 19+ */ 
    color: #999; 
    font-size: 18px;
    padding: 10px;
    font-weight: bold;
} 
.your-info textarea :-ms-input-placeholder 
{ /* Internet Explorer 10+ */ 
    color: #999; 
    font-size: 18px;
    padding: 10px;
    font-weight: bold;
}

/* 
 */
/* footer */
/*   
 */

footer {
    margin: 20px 0px;
    text-align: center;
}

.copyright p{
  line-height: 40px;
}

.aboutofus a {
    display: inline-block;
    color:rgb(253, 201, 43);
    font-size: 12px;
    margin: 0 5px;
    line-height: 40px;
}

.aboutofus a:hover {
    text-decoration:underline; 
    color: rgb(253, 201, 43);
}

footer ul {
    text-align: center;
}
footer ul>li {
    text-align: center;
}

.contact a{
    display: inline-block;
    margin: 0px 10px;
    font-family: iconfont;
    border-radius: 50%;
    font-size: 40px;
    background:white;
    color: #000;
}

footer ul>li>div {
    text-align: center;
   
}

footer ul>li:nth-child(3) {
    width: 200px;
    margin: 0 auto;
}
footer ul>li:nth-child(1) {
    float: left;
    /* margin-left: 100px; */
}

footer ul>li:nth-child(2) {
    float: right;
    /* margin-right: 100px; */
}




