/* 全局样式 */
body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 顶部信息栏 */
.top-info {
    background-color: #f8f8f8;
    padding: 10px 0;
    border-bottom: 1px solid #e7e7e7;
}

.top-info span {
    margin-right: 10px;
    color: #666;
}

/* 导航栏 */
.navbar {
    margin-bottom: 0;
    border-radius: 0;
    background-color: #fff;
    border-bottom: 2px solid #337ab7;
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: #337ab7 !important;
}

.navbar-nav > li > a {
    font-size: 16px;
    padding: 15px 20px;
}

.navbar-nav > li > a:hover {
    background-color: #f8f8f8 !important;
    color: #337ab7 !important;
}

.navbar-nav > li.active > a {
    background-color: #337ab7 !important;
    color: #fff !important;
}

/* 轮播图 */
.carousel {
    margin-bottom: 30px;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 5px;
}

.carousel-caption h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.carousel-caption p {
    font-size: 18px;
}

/* 通用标题样式 */
h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #337ab7;
    text-align: center;
    padding: 20px 0;
}

h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

/* 产品展示 */
.products {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.product-item {
    margin-bottom: 30px;
}

.product-item .thumbnail {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-item .thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.product-item img {
    height: 200px;
    object-fit: cover;
}

.product-item .caption {
    padding: 15px;
}

.product-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* 关于我们 */
.about {
    padding: 50px 0;
}

.about p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about img {
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 优势展示 */
.advantages {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.advantage-item {
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background-color: #337ab7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.advantage-icon span {
    font-size: 40px;
    color: #fff;
}

/* 客户案例 */
.cases {
    padding: 50px 0;
}

.case-item {
    margin-bottom: 30px;
}

.case-item .thumbnail {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.case-item .thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.case-item img {
    height: 150px;
    object-fit: cover;
}

/* 新闻资讯 */
.news {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.news-item {
    margin-bottom: 30px;
}

.news-item .media {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-item .media:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.news-item .media-heading a {
    color: #337ab7;
    text-decoration: none;
}

.news-item .media-heading a:hover {
    color: #23527c;
}

/* 联系我们 */
.contact {
    padding: 50px 0;
}

.contact-item {
    text-align: center;
    padding: 20px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: #337ab7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-icon span {
    font-size: 30px;
    color: #fff;
}

/* 页脚 */
footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
}

footer h3 {
    color: #fff;
    margin-bottom: 20px;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    color: #ccc;
    text-decoration: none;
}

footer ul li a:hover {
    color: #fff;
}

footer p {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* 返回顶部按钮 */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 产品详情页 */
.product-detail {
    padding: 50px 0;
}

.product-detail img {
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-specs {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.product-specs h3 {
    margin-top: 0;
}

.product-specs table {
    width: 100%;
    margin-top: 15px;
}

.product-specs table td {
    padding: 8px 0;
    border-bottom: 1px solid #e7e7e7;
}

.product-specs table td:first-child {
    font-weight: bold;
    width: 120px;
}

/* 新闻详情页 */
.news-detail {
    padding: 50px 0;
}

.news-detail h2 {
    text-align: left;
    padding: 0 0 20px;
    border-bottom: 1px solid #e7e7e7;
    margin-bottom: 30px;
}

.news-meta {
    color: #666;
    margin-bottom: 20px;
}

.news-content {
    font-size: 16px;
    line-height: 1.8;
}

.news-content p {
    margin-bottom: 15px;
}

/* 案例详情页 */
.case-detail {
    padding: 50px 0;
}

.case-detail img {
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.case-info {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

/* 联系表单 */
.contact-form {
    padding: 50px 0;
}

.contact-form form {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    font-weight: bold;
    margin-bottom: 5px;
}

/* 留言表单 */
.message-form {
    padding: 50px 0;
}

.message-form form {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.message-form .form-group {
    margin-bottom: 20px;
}

.message-form label {
    font-weight: bold;
    margin-bottom: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-caption h3 {
        font-size: 24px;
    }
    
    .carousel-caption p {
        font-size: 16px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    h3 {
        font-size: 22px;
    }
    
    .product-item img,
    .case-item img {
        height: 150px;
    }
    
    .advantage-icon,
    .contact-icon {
        width: 60px;
        height: 60px;
    }
    
    .advantage-icon span {
        font-size: 30px;
    }
    
    .contact-icon span {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .carousel-caption {
        padding: 10px;
    }
    
    .carousel-caption h3 {
        font-size: 20px;
    }
    
    .carousel-caption p {
        font-size: 14px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .product-item img,
    .case-item img {
        height: 120px;
    }
}