/* css/banner.css */
/* Banner 基础样式 */
.banner {
    position: relative;
    width: 100%;
    height: calc(100vw * (500/1920)); /* 增加高度比例 */
    min-height: 360px; /* 增加最小高度 */
    max-height: 500px; /* 增加最大高度 */
    background: #EAF1F9; /* 修改这里：使用图片的RGB值 (234,241,249) */
    overflow: hidden;
}

.banner-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px; /* 增加内边距 */
    height: 100%;
    display: flex;
    align-items: center; /* 垂直居中内容 */
    z-index: 2; /* 确保内容在背景之上 */
}

/* Banner 文本内容样式 */
.banner-content {
    position: relative;
    max-width: 600px;
    z-index: 2;
}

.banner-title {
    font-size: 48px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.banner-title .highlight {
    color: #1890ff;
}

.banner-desc {
    font-size: 20px;
    color: #666;
    margin-bottom: 40px;
}

/* Banner 按钮样式 */
.banner-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: #1890ff;
    color: #fff;
    border: none;
    padding: 12px 32px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #40a9ff;
    box-shadow: 0 4px 12px rgba(24,144,255,0.3);
}

.btn-outline {
    background: transparent;
    color: #1890ff;
    border: 1px solid #1890ff;
    padding: 12px 32px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: rgba(24,144,255,0.1);
}

/* 背景图片样式 */
.banner-image {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%); /* 图片居中 */
    width: 1920px; /* 使用原始图片宽度 */
    height: 100%;
    z-index: 1;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 响应式设计 */
@media screen and (max-width: 1920px) {
    .banner-image {
        width: 100%;
    }
}

@media screen and (max-width: 992px) {
    .banner-title {
        font-size: 36px;
    }
    
    .banner-desc {
        font-size: 18px;
    }
}

@media screen and (max-width: 768px) {
    .banner-container {
        padding: 30px 20px;
    }
    
    .banner-content {
        max-width: 100%;
    }
    
    .banner-title {
        font-size: 32px;
    }
    
    .banner-image img {
        opacity: 0.3; /* 移动端降低背景图片透明度 */
    }
}

/* 添加动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-content {
    animation: fadeInUp 1s ease-out;
}

/* 如果需要轮播效果，添加以下样式 */
.banner-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
}