/* 自定义样式 */

/* 导航栏 */
.navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-nav .nav-link {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    font-weight: 500;
}

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

.navbar-nav .nav-link.active {
    color: #007bff;
    font-weight: 600;
}

/* 卡片 */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

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

.card-img-top {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

/* 按钮 */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 123, 255, 0.5);
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 123, 255, 0.5);
}

/* 表单 */
.form-control {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

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

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

footer a {
    color: #adb5bd;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #fff;
    text-decoration: none;
}

/* 社交媒体图标 */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #007bff;
    color: #fff;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #0069d9;
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 123, 255, 0.5);
}

/* 时间线 */
.timeline {
    position: relative;
    padding: 2rem 0;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:nth-child(odd) {
    padding-right: 50%;
}

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

.timeline-icon {
    position: absolute;
    top: 0;
    left: 50%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #007bff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content {
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* 响应式时间线 */
@media (max-width: 768px) {
    .timeline::before {
        left: 2rem;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 5rem;
        padding-right: 0;
    }

    .timeline-icon {
        left: 2rem;
    }
}

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

.lazy.loaded {
    opacity: 1;
}

/* 回到顶部按钮 */
#backToTop {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #007bff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#backToTop:hover {
    background-color: #0069d9;
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 123, 255, 0.5);
}

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

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

.carousel-caption {
    bottom: 3rem;
    z-index: 10;
}

.carousel-caption h5 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
}

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

    .carousel-caption h5 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }
}

/* 产品详情模态框 */
.modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.5);
}

.modal-header {
    border-bottom: none;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: none;
    padding: 1.5rem;
}

/* 案例详情模态框 */
.case-thumb {
    cursor: pointer;
    transition: all 0.3s ease;
}

.case-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* 新闻详情模态框 */
#newsDetailContent img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

#newsDetailContent h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

#newsDetailContent p {
    margin-bottom: 1rem;
}

#newsDetailContent ul,
#newsDetailContent ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

#newsDetailContent li {
    margin-bottom: 0.5rem;
}

/* 解决方案详情模态框 */
#solutionDetailContent img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

#solutionDetailContent h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

#solutionDetailContent p {
    margin-bottom: 1rem;
}

#solutionDetailContent ul,
#solutionDetailContent ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

#solutionDetailContent li {
    margin-bottom: 0.5rem;
}