/* 增强轮播图样式 */

/* 轮播图容器样式优化 */
.hero-carousel {
    position: relative;
    overflow: hidden;
}

/* 轮播图背景优化 */
.carousel-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.carousel-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) saturate(1.2);
    transform: scale(1.1);
    transition: transform 8s cubic-bezier(0.25, 0.45, 0.45, 0.95);
    animation: subtlePulse 16s infinite alternate;
}

@keyframes subtlePulse {
    0%, 100% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.05);
    }
}

.carousel-item.active .carousel-background img {
    transform: scale(1);
    animation: none;
}

/* 轮播图内容样式优化 */
.carousel-content {
    min-height: 600px;
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
}

/* 轮播图文本样式优化 */
.carousel-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-text .lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

/* 轮播图按钮样式优化 */
.carousel-text .btn {
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.9s forwards;
}

.carousel-text .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.carousel-text .btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.carousel-text .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.carousel-text .btn-primary {
    background-color: #315EDA;
    border: none;
}

.carousel-text .btn-primary:hover {
    background-color: #2952c4;
}

.carousel-text .btn-outline-light {
    border-width: 2px;
}

.carousel-text .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* 轮播图图片样式优化 */
.carousel-image img {
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
}

.carousel-item.active .carousel-image img {
    transform: translateY(0);
}

/* 轮播图指示器样式优化 */
.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    transform: scale(1);
    opacity: 0.7;
}

.carousel-indicators button.active {
    background-color: #fff;
    transform: scale(1.2);
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.8);
}

.carousel-indicators button:hover:not(.active) {
    transform: scale(1.1);
    opacity: 0.9;
    cursor: pointer;
}

.carousel-indicators button.active {
    background-color: #ffffff;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 轮播图控制按钮样式优化 */
.carousel-control-prev,
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev:active,
.carousel-control-next:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .carousel-content {
        min-height: 500px;
        padding: 100px 0 60px;
    }
    
    .carousel-text h1 {
        font-size: 2.5rem;
    }
    
    .carousel-text .lead {
        font-size: 1.1rem;
    }
    
    .carousel-image {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .carousel-content {
        min-height: 400px;
        padding: 80px 0 40px;
    }
    
    .carousel-text h1 {
        font-size: 2rem;
    }
    
    .carousel-text .lead {
        font-size: 1rem;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }
    
    .carousel-indicators button {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
}