/* 首页轮播图独立样式 - 参照参考网站效果 */
.hero-banner {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: #f5f5f5;
    margin: 0 auto;
    padding: 0;
    /* 宽度和max-width在HTML中通过style属性设置 */
    /* 高度由JS动态计算 */
    box-sizing: border-box;
}

.hero-banner .swiper-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    /* 宽度继承自父级hero-banner */
    /* 高度由JS动态计算 */
    box-sizing: border-box;
}

.hero-banner .swiper-wrapper {
    /* 确保wrapper能够自适应内容高度 */
    display: flex;
    align-items: stretch;
    /* wrapper宽度继承自swiper-container */
    width: 100%;
}

.hero-banner .swiper-slide {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    /* 高度由JS动态计算 */
}

.hero-banner .swiper-slide a {
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: center;
}

.hero-banner .swiper-slide img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    /* 确保图片不会被拉伸 */
    object-fit: contain;
    /* 确保图片可以显示完整宽度 */
    min-width: 0;
}

/* 文字覆盖层 */
.hero-banner .slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 2;
    padding: 0 20px;
    box-sizing: border-box;
}

.hero-banner .slide-content-inner {
    max-width: 1200px;
    width: 100%;
    color: #fff;
}

/* 顶部英文标题 */
.hero-banner .slide-top-title {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 8px;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* 主标题 */
.hero-banner .slide-main-title {
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 30px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 标签气泡 */
.hero-banner .slide-tag {
    display: inline-block;
    background: #FF6600;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 16px;
    margin-bottom: 30px;
}

/* 服务列表横幅 */
.hero-banner .slide-services {
    background: rgba(0, 123, 255, 0.9);
    padding: 15px 30px;
    border-radius: 5px;
    margin-bottom: 30px;
    display: inline-block;
}

.hero-banner .slide-services-text {
    font-size: 18px;
    color: #fff;
    white-space: nowrap;
}

/* 特性列表 */
.hero-banner .slide-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-banner .slide-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 16px;
}

.hero-banner .slide-feature-item::before {
    content: '✓';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #4CAF50;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

/* CTA按钮 */
.hero-banner .slide-cta {
    display: inline-block;
    background: #FF6600;
    color: #fff;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
}

.hero-banner .slide-cta:hover {
    background: #ff7700;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.5);
}

/* 导航箭头 - 相对图片定位（由JS动态计算位置） */
.hero-banner .swiper-container {
    position: relative; /* 确保箭头相对于swiper-container定位 */
}

.hero-banner .swiper-button-next,
.hero-banner .swiper-button-prev {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: #333;
    transition: all 0.3s;
    margin-top: -22px;
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: absolute;
    top: 50%;
    z-index: 10;
}

.hero-banner .swiper-button-next:hover,
.hero-banner .swiper-button-prev:hover {
    background: #fff;
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-banner .swiper-button-next::after,
.hero-banner .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.hero-banner .swiper-button-prev {
    left: 20px; /* 默认位置，由JS动态调整 */
    right: auto;
}

.hero-banner .swiper-button-next {
    left: auto; /* 由JS动态设置 */
    right: 20px; /* 默认位置，由JS动态调整 */
}

/* 分页点 */
.hero-banner .swiper-pagination {
    bottom: 30px !important;
}

.hero-banner .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 5px;
    transition: all 0.3s;
}

.hero-banner .swiper-pagination-bullet-active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-banner {
        height: 500px;
    }
    
    .hero-banner .slide-top-title {
        font-size: 18px;
        letter-spacing: 4px;
        margin-bottom: 15px;
    }
    
    .hero-banner .slide-main-title {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .hero-banner .slide-services-text {
        font-size: 14px;
    }
    
    .hero-banner .slide-features {
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .hero-banner .slide-feature-item {
        font-size: 14px;
    }
    
    .hero-banner .slide-cta {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .hero-banner .swiper-button-next,
    .hero-banner .swiper-button-prev {
        display: none;
    }
}
