.carousel {
    position: relative;
}

/* Banner区域 - Bootstrap轮播 */
.banner-section {
    position: relative;
    margin-top: 50px; /* 与header高度一致 */
    padding-top: 0;
}

#bannerCarousel {
    width: 100%;
    min-width: 1200px; /* 轮播也保持最小宽度 */
    overflow: hidden;
}

#bannerCarousel .carousel-item {
    width: 100%;
    overflow: hidden;
}

#bannerCarousel .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

#bannerCarousel .carousel-indicators {
    margin-bottom: 1rem;
}

#bannerCarousel .carousel-indicators [data-bs-target] {
    background-color: #0052ff;
    text-indent: 0 !important;
    width: 20px;
    height: 20px;
    line-height: 20px;
    margin: 0 3px;
}

#bannerCarousel .carousel-control-prev,
#bannerCarousel .carousel-control-next {
    width: 10%;
}

#bannerCarousel .carousel-control-prev-icon,
#bannerCarousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.2);
    background-size: 50%;
    border-radius: 50%;
    padding: 10px;
    width: 50px;
    height: 50px;
}

/* 数字指示器 1 2 3 ... */
.carousel-indicators-num {
    bottom: 50px;
    margin-left: 0;
    margin-right: 0;
}

.carousel-indicators-num button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.5);
    text-indent: 0;
    font-size: 13px;
    color: #fff;
    line-height: 24px;
    text-align: center;
    margin: 0 4px;
}

.carousel-indicators-num button.active {
    background-color: #f03c19;
}

/* 左右箭头 */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.banner-section:hover .carousel-control-prev,
.banner-section:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

/* 资源轮播样式，与banner轮播区分 */
.resource-carousel {
    height: 513px;
}

.platform-showcase .carousel-inner {
    height: 100%;
}

.platform-showcase .carousel-item {
    height: 100%;
    position: relative;
}

.resource-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 30px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: none; /* 防止内容阻挡点击事件 */
}

/* 允许品牌标签接收点击事件 */
.showcase-brands {
    pointer-events: auto;
}

.showcase-header h3 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ff5632;
}

.showcase-date {
    font-size: 16px;
    margin-bottom: 20px;
    color: #fff;
}

.showcase-brands {
    display: flex;
    justify-content: center;
    gap: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 4px;
    display: inline-flex;
    margin: 0 auto;
}

/* 轮播指示器样式 - 资源轮播 */
.resource-indicators {
    bottom: 10px;
}

.resource-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
}

.resource-indicators button.active {
    background-color: #fff;
}

/* 轮播控制按钮样式 - 资源轮播 */
#resourceCarousel .carousel-control-prev,
#resourceCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    z-index: 10; /* 增加z-index确保按钮在最上层 */
    cursor: pointer; /* 添加指针样式 */
    display: flex;
    align-items: center;
    justify-content: center;
}

#resourceCarousel .carousel-control-prev {
    left: 10px;
}

#resourceCarousel .carousel-control-next {
    right: 10px;
}

#resourceCarousel .carousel-control-prev:hover,
#resourceCarousel .carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.5);
}

#resourceCarousel .carousel-control-prev-icon,
#resourceCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    z-index: 11; /* 确保图标在最上层 */
}
