/* Command ***********************************************/
@font-face {
    font-family: BebasNeue-webfont;
    src: url("../fonts/BebasNeue-webfont.ttf");
}

/* base style ***********************************************/
a, address, b, big, blockquote, body, center, cite, code, dd, del, div, dl, dt, em, fieldset, font, form, h1, h2, h3, h4, h5, h6, html, i, iframe, img, ins, label, legend, li, ol, p, pre, small, span, strong, u, ul, var {
    padding: 0px;
    margin: 0px;
}

a {
    text-decoration: none;
    color: blue;
}

ul {
    list-style: none;
}

body {
    background: url("../images/pattern.gif");
    font-family: "BebasNeue-webfont";
}

/* 导航部分 ***********************************************/
#top {
    background-color: red;
    height: 3px;
}

#nav {
    text-align: center;
    margin-bottom: 20px;
}

#nav ul {
    display: inline-block;
}

#nav ul li {
    float: left;
    margin-left: 20px;
    height: 43px;
    line-height: 43px;
}

#nav ul li a {
    display: inline-block;
    color: white;
    font-size: 24px;
    width: 200px;
}

#nav ul li a.select {
    background-color: white;
    color: black;
}

#nav ul li a:hover {
    background-color: white;
    color: black;
}

/* 大背景 ***********************************************/
.banner {
    width: 100%;
    height: 768px;
    margin: 0 auto;
    background: url("../images/background.jpg") no-repeat top center;
    background-size: 100%;
}

/* 内容 ***********************************************/
#list {
    margin-top: -110px;
    background-color: white;
    text-align: center;
}

#list .item {
    width: 382px;
    display: inline-block;
    text-align: left;
    margin: 20px;
}

#list .item img {
    width: 400px;
    height: 224px;
}

#list .item p span {
    color: #C0392B;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}

#list .item p span:hover {
    transition: all 0.5s;
    border-bottom: 1px solid #C0392B;
}

#list .item p {
    font-size: 14px;
    font-family: "sans-serif";
    color: #666;
    margin: 5px 0px;
    line-height: 24px;
}

#list .item a {
    display: inline-block;
    background-color: #C0392B;
    width: 130px;
    height: 43px;
    line-height: 43px;
    text-align: center;
    color: white;
    font-size: 24px;
}

#list .item a:hover {
    transition: all 0.5s;
    background-color: #0D1613;
}

/* 页脚部分 ***********************************************/
#footer {
    text-align: center;
}

#footer h2 {
    color: white;
    margin-top: 15px;
    margin-bottom: 5px;
}

#footer ul li a {
    margin: 0px 5px;
}

#footer ul li a:hover {
    opacity: 0.5;
}

/* 响应式设计 ***********************************************/
@media screen and (max-width: 1120px) {
    #nav ul li a {
        font-size: 25px;
        width: 150px;
    }

    .banner {
        width: 100%;
        height: 600px;
    }
}

@media screen and (max-width: 871px) {
    #nav ul li a {
        font-size: 20px;
        width: 100px;
    }

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

@media screen and (max-width: 625px) {
    #nav ul li a {
        font-size: 18px;
        width: 80px;
    }

    .banner {
        width: 100%;
        height: 400px;
    }
}

@media screen and (max-width: 526px) {
    #nav ul li a {
        font-size: 15px;
        width: 50px;
    }

    #list .item img {
        width: 362px;
        height: 160px;
    }

    #list .item p {
        width: 362px;
    }

    .banner {
        width: 100%;
        height: 300px;
    }
}