.cbp-banner-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0 0 30px;
}

/* The7：Banner 插在主内容容器前，拉满视口宽度 */
.cbp-banner-wrapper.cbp-theme-the7 {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 0;
}

/* 普通主题：保持在内容流中，不额外破容器 */
.cbp-banner-wrapper.cbp-theme-default {
    left: auto;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 30px;
}

.cbp-banner-swiper {
    width: 100%;
    position: relative;
}

.cbp-banner-link {
    display: block;
    width: 100%;
    height: 100%;
}

/* 默认叠加层 */
.cbp-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 40px;
    color: #fff;
    z-index: 2;
}

.cbp-breadcrumb {
    font-size: 0.9em;
    margin-bottom: 15px;
    opacity: 0.9;
}

.cbp-breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.cbp-breadcrumb a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.cbp-breadcrumb span {
    color: #fff;
}

.cbp-banner-overlay h1 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 2.5em;
}

.cbp-banner-overlay p {
    margin: 0;
    color: #fff;
    opacity: 0.9;
}

/* 自定义内容叠加层 */
.cbp-custom-overlay {
    position: absolute;
    z-index: 3;
    padding: 40px;
    display: flex;
    width: 100%;
    height: 100%;
}

.cbp-custom-content {
    text-align: center;
    max-width: 800px;
}

.cbp-custom-logo {
    margin-bottom: 20px;
}

.cbp-custom-logo img {
    display: block;
    margin: 0 auto;
}

.cbp-custom-title {
    margin: 0 0 15px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cbp-custom-subtitle {
    margin: 0 0 15px;
    font-weight: 500;
    line-height: 1.3;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.cbp-custom-description {
    margin: 0;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* 9宫格定位 */
.cbp-position-top-left {
    justify-content: flex-start;
    align-items: flex-start;
}

.cbp-position-top-center {
    justify-content: center;
    align-items: flex-start;
}

.cbp-position-top-right {
    justify-content: flex-end;
    align-items: flex-start;
}

.cbp-position-center-left {
    justify-content: flex-start;
    align-items: center;
}

.cbp-position-center-center {
    justify-content: center;
    align-items: center;
}

.cbp-position-center-right {
    justify-content: flex-end;
    align-items: center;
}

.cbp-position-bottom-left {
    justify-content: flex-start;
    align-items: flex-end;
}

.cbp-position-bottom-center {
    justify-content: center;
    align-items: flex-end;
}

.cbp-position-bottom-right {
    justify-content: flex-end;
    align-items: flex-end;
}

/* 左对齐位置的文字对齐 */
.cbp-position-top-left .cbp-custom-content,
.cbp-position-center-left .cbp-custom-content,
.cbp-position-bottom-left .cbp-custom-content {
    text-align: left;
}

.cbp-position-top-left .cbp-custom-logo img,
.cbp-position-center-left .cbp-custom-logo img,
.cbp-position-bottom-left .cbp-custom-logo img {
    margin: 0;
}

/* 右对齐位置的文字对齐 */
.cbp-position-top-right .cbp-custom-content,
.cbp-position-center-right .cbp-custom-content,
.cbp-position-bottom-right .cbp-custom-content {
    text-align: right;
}

.cbp-position-top-right .cbp-custom-logo img,
.cbp-position-center-right .cbp-custom-logo img,
.cbp-position-bottom-right .cbp-custom-logo img {
    margin: 0 0 0 auto;
}

/* Swiper 控制按钮 */
.swiper-button-prev,
.swiper-button-next {
    color: #fff !important;
    background: rgba(0,0,0,0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: rgba(0,0,0,0.5);
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* 居中位置文字居中 */
.cbp-position-center-center .cbp-custom-content {
    text-align: center;
}

/* 居中位置 Logo 的水平对齐 */
.cbp-position-top-center .cbp-custom-logo img,
.cbp-position-center-center .cbp-custom-logo img,
.cbp-position-bottom-center .cbp-custom-logo img {
    margin: 0 auto 20px auto;
}

/* 左对齐位置的 Logo 对齐 */
.cbp-position-top-left .cbp-custom-logo img,
.cbp-position-center-left .cbp-custom-logo img,
.cbp-position-bottom-left .cbp-custom-logo img {
    margin: 0 0 20px 0;
}

/* 右对齐位置的 Logo 对齐 */
.cbp-position-top-right .cbp-custom-logo img,
.cbp-position-center-right .cbp-custom-logo img,
.cbp-position-bottom-right .cbp-custom-logo img {
    margin: 0 0 20px auto;
}

/* 响应式调整 - 自定义内容 */
@media (max-width: 1024px) {
    .cbp-custom-overlay {
        padding: 30px !important;
    }
    .cbp-custom-title {
        font-size: 36px !important;
    }
    .cbp-custom-subtitle {
        font-size: 20px !important;
    }
    .cbp-custom-description {
        font-size: 14px !important;
    }
    .cbp-custom-logo img {
        max-width: 80% !important;
    }
}

@media (max-width: 768px) {
    .cbp-custom-overlay {
        padding: 20px !important;
    }
    .cbp-custom-title {
        font-size: 24px !important;
    }
    .cbp-custom-subtitle {
        font-size: 16px !important;
    }
    .cbp-custom-description {
        font-size: 12px !important;
    }
    .cbp-custom-logo img {
        max-width: 70% !important;
    }
}

/* 平板响应式 */
@media (max-width: 1024px) {
    .cbp-banner-overlay,
    .cbp-custom-overlay {
        padding: 30px;
    }
    
    .cbp-banner-overlay h1 {
        font-size: 2em;
    }
    
    .cbp-custom-title {
        font-size: 36px !important;
    }
    
    .cbp-custom-subtitle {
        font-size: 20px !important;
    }
    
    .cbp-custom-description {
        font-size: 14px !important;
    }
    
    .cbp-custom-logo img {
        max-width: 80% !important;
    }
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .cbp-banner-overlay,
    .cbp-custom-overlay {
        padding: 20px;
    }
    
    .cbp-banner-overlay h1 {
        font-size: 1.5em;
    }
    
    .cbp-custom-title {
        font-size: 24px !important;
    }
    
    .cbp-custom-subtitle {
        font-size: 16px !important;
    }
    
    .cbp-custom-description {
        font-size: 12px !important;
    }
    
    .cbp-custom-logo img {
        max-width: 70% !important;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        width: 36px;
        height: 36px;
    }
}
