* {
    margin: 0;
    padding: 0;
    font-family: Microsoft YaHei, sans-serif;
}

a {
    color: #fff;
    text-decoration: none;
}

ul,
li {
    margin: 0;
    padding: 0;
    list-style: none;
}

body {
    min-width: 980px;
    background: #e2e2e2;
}

/* header */
.header {
    position: relative;
    width: 100%;
    height: 80px;
    background: #47456D;
}

.nav-wrap {
    position: relative;
    width: 980px;
    height: 80px;
    margin: 0 auto;
}

.logo {
    position: absolute;
    bottom: 5px;
}

.nav {
    position: absolute;
    bottom: 5px;
    width: 100%;
}

.nav ul {
    float: right;
}

.nav li {
    float: left;
    font: 14px SimSun, sans-serif;
    margin-left: 28px;
}

.icon-github {
    position: absolute;
    right: 10px;
    bottom: 0;
}

@media (max-width: 980px) {
    .icon-github {
        display: none;
    }
}

/* main-index */
.banner {
    font-size: 0;   /* 消除4px的间距 */
}

.banner img {
    width: 100%;
    height: 500px;
}

.banner-text-wrap {
    position: relative;
    width: 980px;
    margin: 0 auto;
}

.banner-text {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    font-size: 12px;
    background: -moz-linear-gradient(top, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.5) 75%, rgba(255,255,255,0) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.7)), color-stop(75%,rgba(255,255,255,0.5)), color-stop(100%,rgba(255,255,255,0))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, rgba(255,255,255,0.7) 0%,rgba(255,255,255,0.5) 75%,rgba(255,255,255,0) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, rgba(255,255,255,0.7) 0%,rgba(255,255,255,0.5) 75%,rgba(255,255,255,0) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, rgba(255,255,255,0.7) 0%,rgba(255,255,255,0.5) 75%,rgba(255,255,255,0) 100%); /* IE10+ */
    background: linear-gradient(to bottom, rgba(255,255,255,0.7) 0%,rgba(255,255,255,0.5) 75%,rgba(255,255,255,0) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b3ffffff', endColorstr='#00ffffff',GradientType=0 ); /* IE6-9 */
    padding: 10px 10px 30px;
}

.banner-text h2 {
    text-align: right;
    font-size: 14px;
    margin-bottom: 12px;
}

.banner-text p {
    line-height: 150%;
}

.index-content {
    width: 980px;
    margin: 0 auto;
    overflow: hidden;
}

.post {
    width: 320px;
    float: left;
    margin: 10px 0 -10000px;
    background: #fff;
    padding-bottom: 10000px;
}

.post-left {
    margin-right: 10px;
}

.post img {
    width: 300px;
    height: 180px;
    margin: 10px 10px 15px;
}

.post p {
    font-size: 12px;
    text-indent: 2em;
    line-height: 170%;
    margin: 0 30px 25px;
}

.information {
    height: 500px;
    margin: 100px 0 0;
    text-align: center;
    background: #fff;
}

.information img {
    border-radius: 50%;
    margin: -30px 0 50px;
}

@font-face {
    font-family: Century Gothic;
    src: url(../font/Century%20Gothic.ttf);
}

.information h1 {
    font-size: 20px;
    font-family: Century Gothic;
    margin-bottom: 40px;
}

.information p {
    font-size: 14px;
    text-indent: 2em;
    width: 600px;
    margin: 0 auto;
    text-align: left;
    line-height: 170%;
}

/* main-blog */
.blog-center {
    width: 980px;
    margin: 20px auto 0;
}

.blog-content {
    width: 710px;
    float: left;
    margin-right: 10px;
}

.blog-post {
    position: relative;
    margin-bottom: 10px;
    padding: 20px;
    background: #fff;
}

.blog-post h1 {
    color: #47456D;
    font-size: 16px;
    margin-bottom: 10px;
}

.blog-post h2 {
    color: #666;
    font-size: 12px;
    margin-bottom: 20px;
}

.blog-post p {
    font-size: 12px;
    margin-bottom: 30px;
}

.blog-post section {
    font-size: 10px;
    color: #888;
    text-align: right;
}

.tag {
    position: absolute;
    left: -50px;
    top: 20px;
    width: 50px;
    background: #fff;
    font-size: 14px;
}

.tag-data {
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #47456D;
    color: #fff;
}

.tag-type {
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #92C0EF;
    color: #fff;
}

.number-wrap {
    margin: 0 auto 100px;
    width: 550px;
}

.number {
    float: left;
    text-align: center;
    padding: 12px 15px;
    margin: 0 5px;
    font-size: 12px;
    background: #fff;
}

.number a {
    color: #000;
}

.number-invalid {
    color: #888;
}

.number-now {
    color: #fff;
    background: #92C0EF;
}

.sidebar-form {
    float: right;
    width: 260px;
    margin-bottom: 10px;
    background: #fff;
}

.search {
    position: relative;
    border: #e2e2e2 1px solid;
    margin: 20px;
    font-size: 0;
    height: 40px;
}

.search:hover {
    border: #47456D 1px solid;
}

.keyword {
    position: absolute;
    top: 0;
    width: 170px;
    height: 40px;
    border: none;
    outline: medium;
    background-image: url(../img/search.png);
    background-repeat: no-repeat;
    background-size: 144px;
}

.keyword:focus {
    background-image: none;
}

.submit {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 40px;
    border: none;
    font-size: 18px;
    color: #fff;
    background: #e2e2e2;
}

.submit:hover {
    background: #47456D;
}

.post-type {
    font-size: 14px;
    color: #888;
    line-height: 50px;
    padding-left: 20px;
    border-width: 0 0 1px 5px;
    border-style: solid;
    border-color: #92C0EF;
}

.post-type:hover {
    border-left-color: #47456D;
    color: #000;
}

.calendar {
    margin: 20px;
    width: 220px;
    height: 220px;
    text-align: center;
    border-collapse: collapse;
    color: #888;
    font-size: 12px;
}

.calendar tr {
    border-bottom: 1px solid #92C0EF;
}

.calendar-dark {
    color: #47456D;
    font-weight: bold;
}

.calendar-now {
    color: #fff;
    background: #47456D;
}

.side-tag {
    box-sizing: border-box;
    padding: 15px;
    margin-bottom: 100px;
}

.tag-title {
    font-size: 12px;
    color: #888;
    margin-bottom: 20px;
}

.tag-item {
    color: #47456D;
    font-size: 12px;
}

.tag-more {
    font-size: 30px;
}

.tag-less {
    font-size: 20px;
}

/* main-gallery */
.gallery-center {
    width: 980px;
    margin: 70px auto 0;
}

.gallery-content {
    width: 710px;
    float: left;
    background: #fff;
    margin-bottom: 100px;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

.gallery-item img {
    width: 160px;
}

.gallery-item li {
    width: 160px;
    font-size: 0;
    margin: 0 10px 10px 0;
}

.gallery-item-text {
    position: relative;
    padding: 10px 10px 10px 48px;
}

.tab-ab {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 14px;
    border: 1px solid #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    text-align: center;
    line-height: 28px;
    color: #fff;
    float: left;
    margin-right: 10px;
}

.gallery-item-text h1 {
    font-size: 16px;
    color: #fff;
}

.gallery-item-text p {
    font-size: 12px;
    color: #fff;
}

.tab-javascript {
    background: #522a5c;
}

.tab-applications {
    background: #d9a300;
}

.tab-framework {
    background: #8c2300;
}

.tab-ui {
    background: #5900b2;
}

.gallery-item ul {
    float: left;
}

.gallery-tab {
    position: absolute;
    top: -51px;
    left: 0;
    font-size: 14px;
    text-align: center;
    line-height: 46px;
}

.gallery-tab-item {
    float: left;
    padding: 0 20px;
    margin: 0 1px 1px 0;
    background: #fff;
}

.gallery-tab-all {
    border-top: 4px solid #92c0ef;
}

.gallery-tab-all:hover {
    border-top: 4px solid #47456D;
}

.gallery-tab-js {
    border-top: 4px solid #dfc6e6;
}

.gallery-tab-js:hover {
    border-top: 4px solid #522a5c;
}

.gallery-tab-ui {
    border-top: 4px solid #d2a6ff;
}

.gallery-tab-ui:hover {
    border-top: 4px solid #5900b2;
}

.gallery-tab-framwork {
    border-top: 4px solid #ffa98c;
}

.gallery-tab-framwork:hover {
    border-top: 4px solid #8c2300;
}

.gallery-tab-app {
    border-top: 4px solid #ffe188;
}

.gallery-tab-app:hover {
    border-top: 4px solid #d9a300;
}

.gallery-more {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 710px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    font-size: 12px;
    background: #fff;
}

.ranking-num {
    background: #47456D;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    width: 16px;
    height: 16px;
    margin-right: 10px;
    text-align: center;
    line-height: 16px;
    display: inline-block;
}

.ranking-bar-wrap {
    position: relative;
    top: 6px;
    width: 100px;
    height: 20px;
    margin-right: 5px;
    border: 1px solid #47456D;
    display: inline-block;
}

.ranking-bar {
    height: 20px;
    background: #47456D;
}

/* main-about */
.about-center {
    width: 980px;
    margin: 100px auto 30px;
}

.center-right {
    float: right;
    width: 487px;
    background-color: #fff;
    margin-bottom: 100px;
}

.info {
    position: relative;
    margin: 0 130px 150px 50px;
}

.info img {
    position: absolute;
    left: -110px;
    top: -120px;
    border: 5px solid #e2e2e2;
    border-radius: 50%;
    float: left;
}

.info h1 {
    position: absolute;
    left: -200px;
    font-size: 20px;
    float: left;
}

.info p {
    font-size: 14px;
    line-height: 200%;
}

.info-edu-item {
    position: relative;
    margin-bottom: 40px;
}

.info-time {
    position: absolute;
    left: -88px;
    border: 5px solid #e2e2e2;
    border-radius: 10px;
    width: 60px;
    color: #888;
    background: #fff;
    text-align: center;
}

.info-routine {
    font-size: 12px;
}

.center-left {
    float: left;
    width: 487px;
    height: 100px;
    background: #fff;
    height: 1134px;
}

/* footer */
.footer {
    clear: both;
    font-size: 12px;
    background: #000;
}

.footer-nav ul {
    float: left;
    position: relative;
    left: 50%;
    margin: 10px 0;
}

.footer-nav li {
    float: left;
    position: relative;
    right: 50%;
    margin: 0 12px;
}

.link {
    clear: left;
    width: 980px;
    margin: 0 auto 100px;
    overflow: hidden;
    text-align: center;
    border-top: 1px solid #fff;
}

.link hr {
    border: none;
    border-top: 1px solid #e2e2e2;
}

.link-item {
    float: left;
    width: 196px;
}

.link-title {
    color: #fff;
    font-size: 13px;
    margin: 40px 0 30px;
}

.link-content {
    line-height: 170%;
}

.link-content li :hover {
    text-decoration: underline;
}

.copyright {
    text-align: center;
}

.copyright p {
    color: #fff;
    margin-bottom: 20px;
}