/* ==============================================
   首页顶部横幅 - 图片与横幅重叠布局 v2.0
   ============================================== */

/* 主容器 */
.f-hero-banner-overlap {
    position: relative;
    width: 100%;
    margin-bottom: 60px;
}

.f-hero-banner-overlap__wrapper {
    position: relative;
    width: 100%;
}

/* ========== 上部分：主图区域 ========== */
.f-hero-banner-overlap__image-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
}

/* 图片高度选项 */
.f-hero-banner-overlap__image--small {
    height: 400px;
}

.f-hero-banner-overlap__image--medium {
    height: 500px;
}

.f-hero-banner-overlap__image--large {
    height: 600px;
}

/* 图片容器 */
.f-hero-banner-overlap__image {
    width: 100%;
    height: 100%;
}

.f-hero-banner-overlap__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom; /* 显示图片底部 */
}

/* 占位图 */
.f-hero-banner-overlap__placeholder {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.f-hero-banner-overlap__placeholder svg {
    width: 100px;
    height: 100px;
    opacity: 0.3;
}

/* ========== 下部分：广告横幅（重叠） ========== */
/* 第一层：section - 全宽容器 */
.f-hero-banner-overlap__banner-section {
    position: relative !important;
    margin-top: -140px !important; /* 向上重叠 140px */
    z-index: 10 !important;
    width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

/* 第二层：container - 通过 padding 控制左右边距 */
.f-hero-banner-overlap__banner-container {
    width: 100% !important;
    padding-left: 5% !important;
    padding-right: 5% !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
}

/* 第三层：wrapper - 通过 margin 和 max-width 限制宽度并居中 */
.f-hero-banner-overlap__banner-wrapper {
    width: 100% !important;
    max-width: 1000px !important;
    min-height: 261px; /* 最小高度 261px */
    background: var(--banner-bg-color, #35394C) !important;
    padding: 50px !important; /* 内边距 50px */
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
}

.f-hero-banner-overlap__banner-content {
    display: flex;
    flex-direction: column;
    gap: 0; /* 移除默认间距，使用单独控制 */
    align-items: flex-start;
    color: var(--banner-text-color, #ffffff);
}

/* ========== 横幅内容样式 ========== */

/* 标题区域 */
.f-hero-banner-overlap__heading {
    text-align: left;
    width: 100%;
    margin-bottom: 40px; /* 标题区域底部间距 */
}

.f-hero-banner-overlap__heading-text {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0 0 12px 0; /* 主标题和副标题之间的间距 */
    line-height: 1.2;
    color: var(--banner-text-color, #ffffff);
}

.f-hero-banner-overlap__subheading-text {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.4;
    color: var(--banner-text-color, #ffffff);
    opacity: 0.95;
}

/* 按钮 */
.f-hero-banner-overlap__button-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 0; /* 按钮区域顶部无额外间距 */
}

.f-hero-banner-overlap__button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 0;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: none;
    text-decoration: none;
    color: var(--banner-text-color, #ffffff);
    background: transparent;
    border: none;
    cursor: pointer;
}

.f-hero-banner-overlap__button:hover {
    color: var(--banner-text-color, #ffffff);
}

.f-hero-banner-overlap__button-text {
    line-height: 1.5;
}

.f-hero-banner-overlap__button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--banner-text-color, #ffffff);
    border-radius: 50%;
    flex-shrink: 0;
}

.f-hero-banner-overlap__button-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.f-hero-banner-overlap__button:hover .f-hero-banner-overlap__button-icon {
    transform: translateX(5px);
}

/* ========== 响应式适配 ========== */
@media (max-width: 1024px) {
    .f-hero-banner-overlap__banner-container {
        padding-left: 3% !important;
        padding-right: 3% !important;
    }
    
    .f-hero-banner-overlap__banner-wrapper {
        padding: 40px 40px !important;
    }
    
    .f-hero-banner-overlap__banner-content {
        gap: 25px;
    }
    
    .f-hero-banner-overlap__heading-text {
        font-size: 40px;
    }
    
    .f-hero-banner-overlap__subheading-text {
        font-size: 20px;
    }
    
    .f-hero-banner-overlap__button {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    /* 图片高度缩小 */
    .f-hero-banner-overlap__image--small {
        height: 300px;
    }
    
    .f-hero-banner-overlap__image--medium {
        height: 350px;
    }
    
    .f-hero-banner-overlap__image--large {
        height: 400px;
    }
    
    .f-hero-banner-overlap__banner-section {
        margin-top: -8% !important;
    }
    
    .f-hero-banner-overlap__banner-container {
        padding-left: 4% !important;
        padding-right: 4% !important;
    }
    
    .f-hero-banner-overlap__banner-wrapper {
        padding: 35px 30px !important;
    }
    
    .f-hero-banner-overlap__banner-content {
        gap: 20px;
    }
    
    .f-hero-banner-overlap__heading-text {
        font-size: 32px;
    }
    
    .f-hero-banner-overlap__subheading-text {
        font-size: 18px;
    }
    
    .f-hero-banner-overlap__button {
        font-size: 14px;
    }
    
    .f-hero-banner-overlap__button-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .f-hero-banner-overlap__image--small {
        height: 250px;
    }
    
    .f-hero-banner-overlap__image--medium {
        height: 300px;
    }
    
    .f-hero-banner-overlap__image--large {
        height: 350px;
    }
    
    .f-hero-banner-overlap__banner-section {
        margin-top: -6% !important;
    }
    
    .f-hero-banner-overlap__banner-container {
        padding-left: 5% !important;
        padding-right: 5% !important;
    }
    
    .f-hero-banner-overlap__banner-wrapper {
        padding: 30px 25px !important;
    }
    
    .f-hero-banner-overlap__banner-content {
        gap: 18px;
    }
    
    .f-hero-banner-overlap__heading-text {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .f-hero-banner-overlap__subheading-text {
        font-size: 16px;
    }
    
    .f-hero-banner-overlap__button {
        font-size: 14px;
    }
    
    .f-hero-banner-overlap__button-icon {
        width: 36px;
        height: 36px;
    }
}

/* ========== 动画效果 ========== */
@media (prefers-reduced-motion: no-preference) {
    .f-hero-banner-overlap__banner-wrapper {
        animation: slideUpFade 0.6s ease-out;
    }
    
    @keyframes slideUpFade {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ========== 额外优化 ========== */
.f-hero-banner-overlap__banner-wrapper {
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

/* 横幅内容居中对齐 */
.f-hero-banner-overlap__banner-content > * {
    flex-shrink: 0;
}

/* 图片懒加载优化 */
.f-hero-banner-overlap__image img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.f-hero-banner-overlap__image img.loaded {
    opacity: 1;
}
