/* Banner样式 - 增加5cm (约189px) */
.banner-section {
    position: relative;
    max-height: 490px;
    min-height: 390px;
    display: none; /* 默认隐藏，由配置控制显示 */
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 当有背景图或背景色时显示Banner */
.banner-section.has-background-image,
.banner-section.has-background-color {
    display: flex;
}

/* Banner尺寸 - 增加5cm (约189px) */
.banner-size-small {
    max-height: 390px;
    min-height: 340px;
}

.banner-size-medium {
    max-height: 440px;
    min-height: 390px;
}

.banner-size-large {
    max-height: 490px;
    min-height: 440px;
}

/* 背景图片 */
.banner-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.banner-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 内容覆盖层 */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Banner内容 */
.banner-content {
    padding: 40px 20px;
    max-width: 1000px;
    width: 100%;
    z-index: 3;
}

/* 文字对齐类（由Banner配置动态控制，样式通过内联style实现） */

/* Banner标题 */
.banner-title {
    font-size: 48px;
    font-weight: bold;
    margin: 0 0 20px 0;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #ffffff; */
    line-height: 1.2;
}

/* Banner副标题 */
.banner-subtitle {
    font-size: 32px;
    font-weight: 500;
    margin: 0 0 16px 0;
    /* text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    color: #ffffff; */
    line-height: 1.3;
}

/* Banner标语 */
.banner-slogan {
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 32px 0;
    /* text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    color: #ffffff; */
}

/* Banner按钮区域 */
.banner-actions {
    margin-top: 32px;
}

/* Banner CTA按钮 */
.banner-cta-button {
    display: inline-block;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    /* 背景色和边框色由Banner配置控制 */
    color: #ffffff;
    border: 2px solid;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.banner-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    /* 悬停时保持原有颜色 */
}

.banner-cta-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3);
}

/* Banner占位符 */
.banner-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #909399;
    z-index: 2;
}

.banner-placeholder .placeholder-icon {
    font-size: 64px;
    margin-bottom: 16px;
    display: block;
}

.banner-placeholder p {
    font-size: 16px;
    margin: 0;
}

/* 响应式设计 - 移动端按比例增加高度 */
@media (max-width: 768px) {
    .banner-section {
        max-height: 400px;
        min-height: 300px;
    }

    .banner-size-small {
        max-height: 300px;
        min-height: 270px;
    }

    .banner-size-medium {
        max-height: 350px;
        min-height: 300px;
    }

    .banner-size-large {
        max-height: 400px;
        min-height: 350px;
    }
    
    .banner-content {
        padding: 20px 15px;
    }
    
    .banner-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .banner-subtitle {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .banner-slogan {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .banner-cta-button {
        padding: 12px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .banner-title {
        font-size: 28px;
    }
    
    .banner-subtitle {
        font-size: 20px;
    }
    
    .banner-slogan {
        font-size: 14px;
    }
    
    .banner-cta-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* 无背景图时的样式调整 */
.banner-section:not(.has-background-image) .banner-overlay {
    background: transparent;
}

.banner-section:not(.has-background-image) .banner-content {
    color: #333333;
}

.banner-section:not(.has-background-image) .banner-title,
.banner-section:not(.has-background-image) .banner-subtitle,
.banner-section:not(.has-background-image) .banner-slogan {
    text-shadow: none;
    color: inherit;
}

/* 动画效果 */
.banner-content {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 加载状态 - 增加5cm (约189px) */
.banner-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 490px;
    min-height: 390px;
    /* 去除默认背景色，由配置控制 */
}

.banner-loading::after {
    content: "加载中...";
    color: #909399;
    font-size: 16px;
}
