/* 全局重置（传统重置方式，兼容老浏览器） */
* {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}
body {
    line-height: 1;
    font-family: "宋体", "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #fff;
}
ul {
    list-style: none;
}
a {
    text-decoration: none;
    color: #003366;
}
a:hover {
    color: #990000;
}
img {
    border: none;
    vertical-align: middle;
}
input, textarea, button {
    font-family: "宋体", "Microsoft YaHei", Arial, sans-serif;
}
.clear {
    clear: both;
    height: 0;
    overflow: hidden;
}
.fl {
    float: left;
}
.fr {
    float: right;
}
.container {
    width: 1200px;
    margin: 0 auto;
}
@media screen and (max-width: 1200px) {
    .container {
        width: 98%;
        padding: 0 1%;
    }
}

/* 头部样式 */
#header {
    height: 80px;
    line-height: 80px;
    border-bottom: 2px solid #003366;
    background-color: #f5f5f0;
}
.logo img {
    margin-top: 10px;
}
.nav ul li {
    float: left;
    margin-left: 30px;
}
.nav ul li a {
    font-size: 16px;
    font-weight: bold;
}
.nav ul li.active a {
    color: #990000;
}

/* 轮播图样式 */
.carousel {
    position: relative;
    height: 450px;
    overflow: hidden;
}
.carousel-inner .item {
    display: none;
    position: relative;
}
.carousel-inner .item.active {
    display: block;
}
.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%); /* IE9 */
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 4px #000;
}
.carousel-caption h2 {
    font-size: 36px;
    margin-bottom: 20px;
}
.carousel-caption p {
    font-size: 18px;
    margin-bottom: 30px;
}
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    margin-top: -30px;
    z-index: 10;
}
.carousel-prev {
    left: 10px;
}
.carousel-next {
    right: 10px;
}
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    -ms-transform: translateX(-50%); /* IE9 */
}
.carousel-indicators span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #fff;
    margin: 0 5px;
    cursor: pointer;
}
.carousel-indicators span.active {
    background-color: #990000;
}

/* 通用区块样式 */
.section {
    padding: 50px 0;
}
.bg-gray {
    background-color: #f5f5f0;
}
.section-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 40px;
    color: #003366;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    display: inline-block;
    width: 100%;
}

/* 公司简介样式 */
.intro-img {
    width: 40%;
}
.intro-text {
    width: 58%;
    line-height: 24px;
    font-size: 16px;
}
.intro-text p {
    margin-bottom: 20px;
}

/* 产品样式 */
.product-list {
    margin-bottom: 30px;
}
.product-item {
    width: 31%;
    margin-right: 2%;
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #fff;
}
.product-item img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}
.product-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #003366;
}
.product-item p {
    line-height: 20px;
    margin-bottom: 10px;
}
.product-price {
    font-size: 18px;
    color: #990000;
    font-weight: bold;
    margin-bottom: 10px;
}
.more-product {
    text-align: center;
}

/* 客户评价样式 */
.comment-item {
    width: 31%;
    margin-right: 2%;
    border: 1px solid #ccc;
    padding: 20px;
    background-color: #fff;
}
.comment-user {
    margin-bottom: 15px;
}
.comment-user img {
    border-radius: 50%;
    float: left;
    margin-right: 10px;
}
.comment-user h4 {
    font-size: 16px;
    padding-top: 10px;
}
.star {
    color: #ff9900;
    font-size: 16px;
    margin-top: 5px;
}
.comment-item p {
    line-height: 22px;
    clear: both;
}

/* 联系我们样式 */
.contact-info {
    width: 45%;
}
.contact-info ul li {
    line-height: 36px;
    font-size: 16px;
}
.contact-info ul li img {
    margin-right: 10px;
}
.contact-form {
    width: 53%;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    box-sizing: border-box; /* 兼容IE8+ */
}
.contact-form textarea {
    resize: none;
}

/* 页脚样式 */
#footer {
    background-color: #333;
    color: #ccc;
    padding: 30px 0;
}
.footer-info {
    width: 40%;
}
.footer-link {
    width: 25%;
}
.footer-info h4, .footer-link h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
}
.footer-info p {
    line-height: 22px;
    margin-bottom: 15px;
}
.footer-social a {
    margin-right: 10px;
}
.footer-link ul li {
    line-height: 24px;
}
.footer-link ul li a {
    color: #ccc;
}
.footer-link ul li a:hover {
    color: #fff;
}
.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #666;
}

/* 按钮样式（传统按钮，兼容老浏览器） */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #003366;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    border-radius: 3px;
    -webkit-border-radius: 3px; /* 兼容老webkit内核 */
    -moz-border-radius: 3px; /* 兼容老Firefox */
}
.btn:hover {
    background-color: #004488;
    color: #fff;
}
.btn-secondary {
    background-color: #990000;
}
.btn-secondary:hover {
    background-color: #cc0000;
}
.btn-small {
    padding: 5px 10px;
    font-size: 14px;
}