/* 基础样式 */
* {
    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;
    background-color: #fff;
}

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

/* 顶部导航栏 */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* 页面标题 */
.page-title {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.page-title h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.page-title p {
    color: #6c757d;
}

.page-title p a {
    color: #007bff;
}

/* 首屏横幅 */
.banner {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.banner-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.banner-content p {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

/* 公司简介 */
.about-us,
.company-intro {
    padding: 4rem 0;
}

.about-us h2,
.company-intro h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

.counter-item {
    text-align: center;
    padding: 1rem;
}

.counter-item h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
}

/* 产品服务 */
.products,
.product-categories {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.products h2,
.product-categories h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-align: center;
}

.card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* 成功案例 */
.cases,
.cases-list {
    padding: 4rem 0;
}

.cases h2,
.cases-list h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-align: center;
}

.case-img {
    background-color: #007bff;
    border-radius: 8px 0 0 8px;
}

/* 新闻资讯 */
.news,
.news-list {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.news h2,
.news-list h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-align: center;
}

.news-img {
    background-color: #007bff;
    border-radius: 8px 8px 0 0;
}

.pagination .page-link {
    color: #007bff;
    border-color: #dee2e6;
}

.pagination .page-link:hover,
.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

/* 招聘中心 */
.recruitment {
    padding: 4rem 0;
}

.recruitment h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-align: center;
}

.accordion-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.accordion-header {
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.accordion-button {
    font-weight: bold;
}

.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #007bff;
}

/* 联系我们 */
.contact {
    padding: 4rem 0;
}

.contact h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form .form-control {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.contact-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

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

.contact-info .icon-box {
    width: 50px;
    height: 50px;
    background-color: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

/* 地图 */
.map {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.map h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-align: center;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 常见问题 */
.faq {
    padding: 4rem 0;
}

.faq h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-align: center;
}

/* 页脚 */
.footer {
    background-color: #343a40;
    color: #fff;
    padding: 3rem 0;
}

.footer h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.footer p {
    color: #adb5bd;
    margin-bottom: 1rem;
}

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

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

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

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

.social-links a {
    display: inline-block;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

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

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

/* 响应式设计 */
@media (max-width: 768px) {
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .about-us h2,
    .products h2,
    .cases h2,
    .news h2,
    .contact h2 {
        font-size: 2rem;
    }
    
    .counter-item h3 {
        font-size: 1.5rem;
    }
    
    .contact-info .info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info .icon-box {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .banner-content h1 {
        font-size: 1.5rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .about-us h2,
    .products h2,
    .cases h2,
    .news h2,
    .contact h2 {
        font-size: 1.5rem;
    }
    
    .counter-item h3 {
        font-size: 1.2rem;
    }
}

/* 自定义工具类 */
.py-10 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.hover-shadow {
    transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.text-primary {
    color: #007bff !important;
}

.text-secondary {
    color: #6c757d !important;
}

.text-tertiary {
    color: #28a745 !important;
}

.text-quaternary {
    color: #dc3545 !important;
}

.text-quinary {
    color: #ffc107 !important;
}

.text-senary {
    color: #17a2b8 !important;
}

.bg-primary {
    background-color: #007bff !important;
}

.bg-secondary {
    background-color: #6c757d !important;
}

.bg-tertiary {
    background-color: #28a745 !important;
}

.bg-quaternary {
    background-color: #dc3545 !important;
}

.bg-quinary {
    background-color: #ffc107 !important;
}

.bg-senary {
    background-color: #17a2b8 !important;
}

/* 时间线样式 */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #007bff;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12px;
    background-color: white;
    border: 4px solid #007bff;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(odd)::after {
    right: -12px;
}

.timeline-item:nth-child(even)::after {
    left: -12px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 700px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0%;
    }
    
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 18px;
    }
}