﻿

html, body {
  margin: 0;
  height: 100%;
}

* {
  font-family: "Raleway";
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background-color: #37517e;
  /*background: linear-gradient(to left, #37517e, #eea849);*/
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  color: #FFF;
  height: 50px;
  padding: 1em;
}

.menu {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.menu > li {
  margin: 0 1rem;
  overflow: hidden;
}

.menu > li a {
  color: #ffffff;
  cursor:pointer;
  text-decoration:none;
}
.menu > li a:hover {
  color: #ddc9c9;
}

.menu-button-container {
  display: none;
  height: 100%;
  width: 30px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#menu-toggle {
  display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  background-color: #fff;
  position: absolute;
  height: 4px;
  width: 30px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 2px;
}

.menu-button::before {
  content: "";
  margin-top: -8px;
}

.menu-button::after {
  content: "";
  margin-top: 8px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
  margin-top: 0px;
  transform: rotate(405deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
  background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
  margin-top: 0px;
  transform: rotate(-405deg);
}


/* 
   自适应设计 ，把 3700 改为 700 
   移动端菜单折叠，网页端为水平导航菜单。
*/ 
@media (max-width: 700px) {
  .menu-button-container {
    display: flex;
  }

  .menu {
    position: absolute;
    top: 0;
    margin-top: 50px;
    left: 0;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  #menu-toggle ~ .menu li {
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }

  #menu-toggle:checked ~ .menu li {
    border: 1px solid #333;
    height: 2.5em;
    padding: 0.5em;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }

  .menu > li {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0.5em 0;
    width: 100%;
    color: white;
    background-color: #222;
  }

  .menu > li:not(:last-child) {
    border-bottom: 1px solid #444;
  }
  footer .footer-top {
	flex-wrap: wrap;
  }
  
}
footer .footer-top {
	display:flex;
	
	width: 100%;
	max-width: 750px;
	margin: auto;
}
footer .footer-top div {
	margin: 30px 60px;
}

footer .footer-top div:nth-child(1) h3{
	font-size: 28px;
    margin: 0 0 10px;
    padding: 2px 0;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 600;
    color: #37517e;
}
footer .footer-top div:nth-child(1) p {
	line-height: 36px;
}
footer .footer-top div:nth-child(2) h4 {
	font-size: 16px;
    font-weight: 700;
    color: #37517e;
    position: relative;
    padding-bottom: 12px;
}
footer .footer-top div:nth-child(2) a {
	line-height: 35px;
	text-decoration: none;
}
footer .footer-top div:nth-child(3) h4 {
	font-size: 16px;
    font-weight: 700;
    color: #37517e;
    position: relative;
    padding-bottom: 12px;
}
footer .footer-top div:nth-child(3) p {
	line-height: 35px;
}

footer .footer-bottom {
	padding-top: 30px;
    padding-bottom: 30px;
    color: #fff;
	background-color: #37517e;
	text-align: center;
}
