/* 全局样式 */
body {
    font-family: "Microsoft YaHei", "SimSun", sans-serif;
    color: #333;
    background-color: #f9f9f9;
}

a {
    color: #333;
}

a:hover {
    color: #3498db;
    text-decoration: none;
}

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

.navbar-brand {
    padding: 10px 15px;
}

.logo {
    height: 40px;
}

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

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
    background-color: #f5f5f5;
    color: #3498db;
}

.navbar-nav > .active > a,
.navbar-nav > .active > a:hover,
.navbar-nav > .active > a:focus {
    background-color: #f5f5f5;
    color: #3498db;
}

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

.carousel-inner > .item > 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: 30px;
    margin-bottom: 10px;
}

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

/* 页面标题 */
.page-header {
    background-color: #3498db;
    color: #fff;
    padding: 30px 0;
    margin-bottom: 30px;
}

.page-header h1 {
    margin: 0;
    font-size: 36px;
}

/* 公司简介 */
.about-section {
    padding: 50px 0;
}

.about-section h2 {
    font-size: 30px;
    margin-bottom: 20px;
    color: #3498db;
}

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

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

/* 产品服务 */
.products-section {
    background-color: #f5f5f5;
    padding: 50px 0;
}

.products-section h2 {
    font-size: 30px;
    margin-bottom: 30px;
    color: #3498db;
}

.product-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    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 {
    border-radius: 5px;
    margin-bottom: 15px;
}

.product-item h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.product-item p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #666;
}

/* 成功案例 */
.cases-section {
    padding: 50px 0;
}

.cases-section h2 {
    font-size: 30px;
    margin-bottom: 30px;
    color: #3498db;
}

.case-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

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

.case-item img {
    border-radius: 5px;
    margin-bottom: 15px;
}

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

.case-item p {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

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

.news-section h2 {
    font-size: 30px;
    margin-bottom: 30px;
    color: #3498db;
}

.news-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

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

.news-item h3 a {
    color: #333;
    transition: color 0.3s ease;
}

.news-item h3 a:hover {
    color: #3498db;
}

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

.news-item p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

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

.contact-section h2 {
    font-size: 30px;
    margin-bottom: 30px;
    color: #3498db;
}

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

.contact-info p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #666;
}

.contact-info i {
    color: #3498db;
    margin-right: 10px;
}

.map {
    border-radius: 5px;
    overflow: hidden;
}

/* 企业文化 */
.culture-section {
    background-color: #f5f5f5;
    padding: 50px 0;
}

.culture-section h2 {
    font-size: 30px;
    margin-bottom: 30px;
    color: #3498db;
}

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

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

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

.culture-item p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

/* 发展历程 */
.history-section {
    padding: 50px 0;
}

.history-section h2 {
    font-size: 30px;
    margin-bottom: 30px;
    color: #3498db;
}

.timeline {
    list-style: none;
    padding: 20px 0 20px;
    position: relative;
}

.timeline:before {
    top: 0;
    bottom: 0;
    position: absolute;
    content: " ";
    width: 3px;
    background-color: #3498db;
    left: 50%;
    margin-left: -1.5px;
}

.timeline > li {
    margin-bottom: 20px;
    position: relative;
}

.timeline > li:before,
.timeline > li:after {
    content: " ";
    display: table;
}

.timeline > li:after {
    clear: both;
}

.timeline > li:before,
.timeline > li:after {
    content: " ";
    display: table;
}

.timeline > li:after {
    clear: both;
}

.timeline > li > .timeline-panel {
    width: 46%;
    float: left;
    border: 1px solid #d4d4d4;
    border-radius: 5px;
    padding: 20px;
    position: relative;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline > li > .timeline-panel:before {
    position: absolute;
    top: 26px;
    right: -15px;
    display: inline-block;
    border-top: 15px solid transparent;
    border-left: 15px solid #fff;
    border-right: 0 solid #fff;
    border-bottom: 15px solid transparent;
    content: " ";
}

.timeline > li > .timeline-panel:after {
    position: absolute;
    top: 27px;
    right: -14px;
    display: inline-block;
    border-top: 14px solid transparent;
    border-left: 14px solid #fff;
    border-right: 0 solid #fff;
    border-bottom: 14px solid transparent;
    content: " ";
}

.timeline > li > .timeline-badge {
    color: #fff;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.4em;
    text-align: center;
    position: absolute;
    top: 16px;
    left: 50%;
    margin-left: -25px;
    background-color: #3498db;
    z-index: 100;
    border-top-right-radius: 50%;
    border-top-left-radius: 50%;
    border-bottom-right-radius: 50%;
    border-bottom-left-radius: 50%;
}

.timeline > li.timeline-inverted > .timeline-panel {
    float: right;
}

.timeline > li.timeline-inverted > .timeline-panel:before {
    border-left-width: 0;
    border-right-width: 15px;
    left: -15px;
    right: auto;
}

.timeline > li.timeline-inverted > .timeline-panel:after {
    border-left-width: 0;
    border-right-width: 14px;
    left: -14px;
    right: auto;
}

.timeline-badge.primary {
    background-color: #2e6da4 !important;
}

.timeline-badge.success {
    background-color: #3f903f !important;
}

.timeline-badge.warning {
    background-color: #f0ad4e !important;
}

.timeline-badge.danger {
    background-color: #d9534f !important;
}

.timeline-badge.info {
    background-color: #5bc0de !important;
}

.timeline-title {
    margin-top: 0;
    color: inherit;
}

.timeline-body > p,
.timeline-body > ul {
    margin-bottom: 0;
}

.timeline-body > p + p {
    margin-top: 5px;
}

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

footer h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #3498db;
}

footer p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

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

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

footer ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: #3498db;
}

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

/* 返回顶部按钮 */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#back-to-top:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

    .carousel-caption h3 {
        font-size: 24px;
    }

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

    .page-header h1 {
        font-size: 28px;
    }

    .about-section h2,
    .products-section h2,
    .cases-section h2,
    .news-section h2,
    .contact-section h2,
    .culture-section h2,
    .history-section h2 {
        font-size: 24px;
    }

    .product-item h3,
    .case-item h3,
    .news-item h3,
    .contact-info h3,
    .culture-item h3 {
        font-size: 20px;
    }

    .timeline:before {
        left: 40px;
    }

    .timeline > li > .timeline-panel {
        width: calc(100% - 90px);
        float: right;
    }

    .timeline > li > .timeline-badge {
        left: 15px;
        margin-left: 0;
        top: 16px;
    }

    .timeline > li > .timeline-panel:before {
        border-left-width: 0;
        border-right-width: 15px;
        left: -15px;
        right: auto;
    }

    .timeline > li > .timeline-panel:after {
        border-left-width: 0;
        border-right-width: 14px;
        left: -14px;
        right: auto;
    }

    .timeline > li.timeline-inverted > .timeline-panel {
        float: right;
    }
}

@media (max-width: 480px) {
    .navbar-nav > li > a {
        padding: 10px 15px;
        font-size: 14px;
    }

    .carousel-inner > .item > img {
        height: 200px;
    }

    .carousel-caption {
        padding: 10px;
    }

    .carousel-caption h3 {
        font-size: 20px;
    }

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

    .page-header {
        padding: 20px 0;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .about-section,
    .products-section,
    .cases-section,
    .news-section,
    .contact-section,
    .culture-section,
    .history-section {
        padding: 30px 0;
    }

    .about-section h2,
    .products-section h2,
    .cases-section h2,
    .news-section h2,
    .contact-section h2,
    .culture-section h2,
    .history-section h2 {
        font-size: 20px;
    }

    .product-item,
    .case-item,
    .news-item,
    .culture-item {
        padding: 15px;
    }

    .product-item h3,
    .case-item h3,
    .news-item h3,
    .contact-info h3,
    .culture-item h3 {
        font-size: 18px;
    }

    .about-section p,
    .product-item p,
    .case-item p,
    .news-item p,
    .contact-info p,
    .culture-item p {
        font-size: 14px;
    }
}