/* 轮播图样式 */
.carousel-item {
    height: 100vh;
    background-color: #333;
    position: relative;
}

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

.carousel-caption {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
    left: 219px;
    right: auto;
}

.carousel-caption h2 {
    font-size: 58px;
    line-height: 69.6px;
    margin-bottom: 24px;
}

.carousel-caption p {
    font-size: 18px;
    line-height: 31.5px;
}

/* 桌面端：为轮播文字增加适度阴影，增强浅色背景下的可读性 */
@media (min-width: 769px) {
	.carousel-caption h2,
	.carousel-caption p {
		color: #ffffff;
		text-shadow: 0 4px 8px rgba(0, 0, 0, 0.897);
	}
}

@media (max-width: 1200px) {
    .carousel-caption {
        left: 100px;
    }
    
    .carousel-caption h2 {
        font-size: 48px;
        line-height: 57.6px;
    }
}

@media (max-width: 992px) {
    .carousel-item {
        height: 600px;
    }
    
    .carousel-caption {
        left: 50px;
    }
    
    .carousel-caption h2 {
        font-size: 36px;
        line-height: 43.2px;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: 800px; /* 增加移动端高度 */
    }
    
    .carousel-caption {
        left: 20px;
        right: 20px;
        text-align: center;
    }
    
    .carousel-caption h2 {
        font-size: 28px;
        line-height: 33.6px;
        margin-bottom: 10px;
        color: #fff !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    
    .carousel-caption p {
        font-size: 14px;
        line-height: 21px;
        color: #fff !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}
