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

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

.top-bar p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

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

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

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

.navbar-nav > li > a:hover,
.navbar-nav > li.active > a {
    color: #0066cc !important;
    background-color: #f0f8ff !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: 16px;
}

/* 通用样式 */
section {
    padding: 50px 0;
}

h2 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    color: #0066cc;
    position: relative;
}

h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: #0066cc;
    margin: 20px auto 0;
}

/* 企业简介 */
.about-section {
    background-color: #f9f9f9;
}

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

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

/* 产品展示 */
.products-section {
    background-color: #fff;
}

.product-item {
    text-align: center;
    padding: 20px;
    border: 1px solid #e7e7e7;
    border-radius: 5px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

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

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

.product-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #0066cc;
}

.product-item p {
    font-size: 14px;
    color: #666;
}

/* 企业优势 */
.advantages-section {
    background-color: #f0f8ff;
}

.advantage-item {
    text-align: center;
    padding: 30px;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.advantage-item i {
    font-size: 48px;
    color: #0066cc;
    margin-bottom: 20px;
}

.advantage-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.advantage-item p {
    font-size: 14px;
    color: #666;
}

/* 新闻资讯 */
.news-section {
    background-color: #fff;
}

.news-item {
    padding: 20px;
    border: 1px solid #e7e7e7;
    border-radius: 5px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

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

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

.news-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #0066cc;
}

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

.news-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.news-item a {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

.news-item a:hover {
    text-decoration: underline;
}

/* 联系我们 */
.contact-section {
    background-color: #f9f9f9;
}

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

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

.contact-info h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #0066cc;
}

.contact-info p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.contact-info i {
    color: #0066cc;
    margin-right: 10px;
}

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

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

footer p {
    font-size: 14px;
    margin-bottom: 15px;
    color: #ccc;
}

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

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

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

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

footer .text-center {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 14px;
    color: #ccc;
}

/* 按钮样式 */
.btn-primary {
    background-color: #0066cc;
    border-color: #0066cc;
    padding: 10px 30px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-caption h3 {
        font-size: 20px;
    }
    
    .carousel-caption p {
        font-size: 14px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .product-item img,
    .news-item img {
        height: 150px;
    }
}

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

.lazy.loaded {
    opacity: 1;
}

/* 加载动画 */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    100% {
        left: 100%;
    }
}