/* 自定义样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

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

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #0d6efd;
    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 #0d6efd;
    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 4px 8px 0 rgba(0,0,0,0.2);
}

@media screen and (max-width: 768px) {
    .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;
    }
}

/* 流程步骤样式 */
.process {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 18%;
    margin-bottom: 20px;
}

.process-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border: 2px solid #0d6efd;
}

.process-content {
    text-align: center;
}

.process-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -5%;
    top: 30px;
    font-size: 24px;
    color: #0d6efd;
}

@media screen and (max-width: 768px) {
    .process {
        flex-direction: column;
    }

    .process-step {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        margin-bottom: 20px;
    }

    .process-icon {
        margin-right: 20px;
        margin-bottom: 0;
    }

    .process-content {
        text-align: left;
    }

    .process-step:not(:last-child)::after {
        content: '↓';
        position: absolute;
        bottom: -10px;
        left: 30px;
        font-size: 24px;
        color: #0d6efd;
    }
}

/* 图片懒加载样式 */
img {
    transition: opacity 0.3s ease-in-out;
}

img.lazy {
    opacity: 0;
}

img.lazy.loaded {
    opacity: 1;
}

/* 自定义卡片样式 */
.card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

/* 自定义按钮样式 */
.btn-primary {
    transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

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

/* 自定义导航样式 */
.nav-link {
    transition: color 0.3s ease-in-out;
}

.nav-link:hover {
    color: #0d6efd !important;
}

/* 自定义轮播图样式 */
.carousel-item {
    transition: transform 0.5s ease-in-out;
}

.carousel-caption {
    transition: opacity 0.3s ease-in-out;
}

.carousel-caption:hover {
    opacity: 0.9;
}

/* 自定义页脚样式 */
footer a {
    transition: color 0.3s ease-in-out;
}

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

/* 自定义表单样式 */
.form-control {
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

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

/* 自定义标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* 自定义段落样式 */
p {
    line-height: 1.6;
}

/* 自定义背景颜色 */
.bg-primary {
    background-color: #0d6efd !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.bg-dark {
    background-color: #212529 !important;
}

/* 自定义文本颜色 */
.text-primary {
    color: #0d6efd !important;
}

.text-white {
    color: #ffffff !important;
}

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

/* 自定义间距 */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.py-8 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-6 {
    margin-bottom: 3rem !important;
}

/* 自定义阴影 */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* 自定义圆角 */
.rounded {
    border-radius: 0.25rem !important;
}

.rounded-lg {
    border-radius: 0.5rem !important;
}

/* 自定义响应式工具类 */
@media screen and (max-width: 768px) {
    .text-center-sm {
        text-align: center !important;
    }

    .mb-4-sm {
        margin-bottom: 1.5rem !important;
    }
}