/* Banner样式 */
.banner-section {
    height: 800px;
    overflow: hidden;
    margin-top: 80px; /* 添加顶部边距，为页眉腾出空间 */
    position: relative;
}

.banner-slider {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

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

.slide-content {
    position: absolute;
    top: auto;
    bottom: 120px;
    left: 10%;
    transform: none;
    text-align: left;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    max-width: 60%;
    padding-top: 80px; /* 为顶部导航预留空间 */
}

.slide-content h2 {
    font-size: 2.5em;
    margin-bottom: 20px;  /* 增加标题和描述文字的间距 */
}

.slide-content p {
    font-size: 1.2em;
}

/* 轮播指示器 */
.banner-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;  /* 增加间距 */
    z-index: 3;
}

.indicator {
    width: 30px;  /* 改为长条形 */
    height: 4px;  /* 降低高度 */
    border-radius: 2px;  /* 圆角效果 */
    background: rgba(255, 255, 255, 0.4);  /* 调整默认颜色 */
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;  /* 移除边框 */
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scaleX(1.2);  /* 只在水平方向放大 */
}

.indicator.active {
    background: rgb(255, 107, 0);  /* 使用主题色 */
    transform: scaleX(1.2);
    width: 40px;  /* 活动状态下更长 */
}

/* 响应式设计 - 大屏幕 */
@media (max-width: 1200px) {
    .banner-section {
        height: 600px;
    }

    .slide-content {
        bottom: 100px;  /* 调整移动端下的位置 */
        left: 5%;  /* 调整移动端的左边距 */
        max-width: 90%;  /* 移动端下扩大文本宽度范围 */
    }

    .slide-content h2 {
        font-size: 2.2em;
    }
}

@media screen and (max-width: 768px) {
    .banner-section {
        margin-top: 90px;  /* 添加上边距，等于移动端页眉高度 */
    }
}