/* 进度步骤样式 */
.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 30px;
}

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

.step-circle {
    width: 30px;
    height: 30px;
    background-color: #fff;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
}

.step.active .step-circle {
    border-color: #0d6efd;
    background-color: #0d6efd;
    color: #fff;
}

.step.completed .step-circle {
    border-color: #198754;
    background-color: #198754;
    color: #fff;
}

.step-text {
    font-size: 0.875rem;
    color: #6c757d;
}

.step.active .step-text {
    color: #0d6efd;
}

.step.completed .step-text {
    color: #198754;
}

/* 连接线 */
.progress-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #dee2e6;
    z-index: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .step-text {
        font-size: 0.75rem;
    }
    
    .step-circle {
        width: 30px;
        height: 30px;
    }
}

/* 表单验证样式 */
.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* 自定义颜色 */
.text-purple {
    color: #6f42c1;
}
.btn-purple {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: #fff;
}
.btn-purple:hover {
    background-color: #5a32a3;
    border-color: #5a32a3;
    color: #fff;
}

.text-orange {
    color: #fd7e14;
}
.btn-orange {
    background-color: #fd7e14;
    border-color: #fd7e14;
    color: #fff;
}
.btn-orange:hover {
    background-color: #e66a02;
    border-color: #e66a02;
    color: #fff;
}

/* 轮播图样式优化 */
.carousel-item {
    height: 400px; /* 固定高度 */
}

.carousel-item img {
    object-fit: cover; /* 图片填充方式 */
    height: 100%;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5); /* 半透明背景 */
    padding: 20px;
    border-radius: 10px;
}

/* 可点击图片的鼠标样式 */
.cursor-pointer {
    cursor: pointer;
}

/* 图片模态框样式 */
#imageModal .modal-dialog {
    max-width: 90vw;
}

#imageModal .modal-content {
    background-color: rgba(0, 0, 0, 0.9);
}

#imageModal .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

#modalImage {
    max-height: 85vh;
    object-fit: contain;
}