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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 导航栏样式 */
.navbar {
    padding: 1rem 0;
}

.logo {
    height: 60px;
}

.nav-link {
    color: #333;
    font-weight: 500;
    margin-left: 1rem;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: #007bff;
}

/* 轮播图样式 */
.carousel-section {
    position: relative;
}

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

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 0.5rem;
}

/* 通用样式 */
.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: #007bff;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* 公司简介样式 */
.about-section .btn-primary {
    background-color: #007bff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.25rem;
    transition: background-color 0.3s;
}

.about-section .btn-primary:hover {
    background-color: #0056b3;
}

/* 业务板块样式 */
.service-card {
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 1.5rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* 成功案例样式 */
.case-card {
    transition: transform 0.3s;
}

.case-card:hover {
    transform: translateY(-5px);
}

.case-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* 新闻资讯样式 */
.news-card {
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* 联系我们样式 */
.contact-info {
    font-size: 1.1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-form .form-control {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.contact-form .btn-primary {
    background-color: #007bff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.25rem;
    transition: background-color 0.3s;
}

.contact-form .btn-primary:hover {
    background-color: #0056b3;
}

/* 页脚样式 */
.footer-section {
    background-color: #343a40;
    color: #fff;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #007bff;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-top: 0.25rem;
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
}

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

.back-to-top:hover {
    background-color: #0056b3;
}

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

.lazy-img.loaded {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-img {
        height: 300px;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-section .col-lg-6,
    .services-section .col-md-4,
    .cases-section .col-md-4,
    .news-section .col-md-6,
    .contact-section .col-md-6 {
        margin-bottom: 2rem;
    }

    .footer-section .col-md-4 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .carousel-img {
        height: 200px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .nav-link {
        margin-left: 0;
    }
}