/* 自定义样式 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

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

.navbar-brand img {
    max-height: 50px;
}

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

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #0d6efd;
}

/* 轮播图样式 */
.carousel-item {
    height: 500px;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    bottom: 20%;
}

/* 卡片样式 */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* 时间线样式 */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #0d6efd;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 50%;
    width: 20px;
    height: 20px;
    background-color: #0d6efd;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

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

/* 服务流程样式 */
.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 20px 0;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: #0d6efd;
}

.step {
    position: relative;
    width: 18%;
    text-align: center;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: #0d6efd;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step-content h3 {
    margin-bottom: 10px;
}

/* 新闻列表样式 */
.news-item {
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateX(5px);
}

.news-item a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.news-item a:hover {
    color: #0d6efd;
}

/* 标签样式 */
.tags a {
    display: inline-block;
    margin: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.tags a:hover {
    background-color: #0d6efd;
    color: #fff;
}

/* 社交媒体图标样式 */
.social-icons a {
    transition: transform 0.3s, background-color 0.3s;
}

.social-icons a:hover {
    transform: translateY(-3px);
    background-color: #0b5ed7;
}

/* 表单样式 */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* 按钮样式 */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    transition: background-color 0.3s, border-color 0.3s;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

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

footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #0d6efd;
}

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

    .timeline::before {
        left: 20px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        left: 60px !important;
    }

    .process-steps {
        flex-direction: column;
    }

    .step {
        width: 100%;
        margin-bottom: 30px;
    }

    .process-steps::before {
        display: none;
    }
}

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

.lazy.loaded {
    opacity: 1;
}

/* 滚动动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}