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

/* 导航栏样式 */
.navbar {
    margin-bottom: 0;
    border-radius: 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.navbar-nav > li > a {
    font-size: 1.1em;
    color: #333;
}

.navbar-nav > li > a:hover {
    color: #666;
    background-color: #f8f8f8;
}

/* 轮播图样式 */
.carousel {
    margin-top: 50px;
}

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

/* 通用部分样式 */
.about-section, .products-section, .cases-section, .contact-section {
    padding: 50px 0;
}

h2 {
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

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

/* 产品和案例样式 */
.product-item, .case-item {
    margin-bottom: 30px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.product-item:hover, .case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-item img, .case-item img {
    margin-bottom: 15px;
    height: 200px;
    object-fit: cover;
}

/* 页脚样式 */
.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 .text-center {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel img {
        height: 300px;
    }
    
    .product-item img, .case-item img {
        height: 150px;
    }
    
    h2 {
        font-size: 1.8em;
    }
    
    h3 {
        font-size: 1.4em;
    }
}

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

.product-detail img {
    margin-bottom: 20px;
}

.product-detail h2 {
    margin-bottom: 20px;
}

.product-detail .price {
    font-size: 1.5em;
    color: #e74c3c;
    margin-bottom: 20px;
}

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

.case-detail img {
    margin-bottom: 20px;
}

/* 新闻列表页样式 */
.news-list {
    padding: 50px 0;
}

.news-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.news-item h3 {
    margin-bottom: 10px;
}

.news-item .date {
    color: #999;
    margin-bottom: 10px;
}

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

.news-detail h2 {
    margin-bottom: 20px;
}

.news-detail .date {
    color: #999;
    margin-bottom: 20px;
}

/* 联系我们页面样式 */
.contact-info {
    padding: 50px 0;
}

.contact-info .info-item {
    margin-bottom: 20px;
}

.contact-info .info-item i {
    margin-right: 10px;
    color: #333;
}

/* 在线留言页面样式 */
.message-form {
    padding: 50px 0;
}

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

.message-form label {
    font-weight: bold;
}

/* 懒加载图片样式 */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}