/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

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

.navbar-nav > li > a {
    font-size: 16px;
    color: #333 !important;
    transition: color 0.3s;
}

.navbar-nav > li > a:hover {
    color: #1a73e8 !important;
}

.navbar-nav > li.active > a {
    color: #1a73e8 !important;
    background-color: transparent !important;
}

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

.carousel-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

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

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

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

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

.products-section,
.news-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

h2 {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
    color: #1a73e8;
}

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

/* 公司简介样式 */
.about-section .col-md-6 {
    margin-bottom: 30px;
}

.about-section img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 产品样式 */
.product-item {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 5px;
}

/* 案例样式 */
.case-item {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.case-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 5px;
}

/* 新闻样式 */
.news-item {
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.news-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.read-more {
    color: #1a73e8;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* 联系表单样式 */
.contact-form {
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.form-control {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
}

.btn-primary {
    background-color: #1a73e8;
    border: none;
    padding: 10px 30px;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #1557b0;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
}

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

.footer ul {
    list-style: none;
}

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

.footer ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer p {
    margin-top: 20px;
    color: #ccc;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-img {
        height: 300px;
    }
    
    .carousel-caption h3 {
        font-size: 24px;
    }
    
    .carousel-caption p {
        font-size: 14px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    .about-section,
    .products-section,
    .cases-section,
    .news-section,
    .contact-section {
        padding: 40px 0;
    }
}

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

.lazy.loaded {
    opacity: 1;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1a73e8;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
}

.back-to-top:hover {
    background-color: #1557b0;
}