/* Product Factory 页面专用样式 */

/* 确保 header 和 main 容器允许溢出 */
header {
    overflow: visible;
}

main.nk-pages {
    overflow: visible;
}

/* 第一个 section 作为定位基准 */
.bf-home-section.bf-pr-position {
    position: relative;
    overflow: visible; /* 允许内容溢出显示 */
    background: linear-gradient(270deg, rgba(243, 246, 255, 0.7) 0%, #F3F6FF 100%);
}

.bf-pf-bg-color {
  background: linear-gradient(90deg, #3F61FF 0%, #283EB6 100%),
linear-gradient(0deg, #3F61FF, #3F61FF);
padding: 4.375rem 3.75rem;
}

/* 浮动 banner 区域样式 */
.bf-floating-banner-section {
    position: absolute;
    top: -25vh;
    left: 0;
    right: 0;
    z-index: 100;
    /* background: linear-gradient(135deg, rgba(74, 144, 226, 0.95) 0%, rgba(56, 103, 214, 0.95) 100%); */
    color: white;
    padding: 80px 0;
    /* box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); */
    /* backdrop-filter: blur(10px); */
    border-radius: 0;
}



.bf-floating-banner-section .bf-pc-core-suite-home {
    position: relative;
    z-index: 2;
}

.bf-floating-banner-section h1 {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.bf-floating-banner-section p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.bf-floating-banner-section .btn {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-weight: 500;
}

/* .bf-floating-banner-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    background: #fff !important;
    color: #000 !important;
} */

.bf-mt-20-percent {
  margin-top: 25vh;
}

/* 确保 header 背景图片的 z-index 较低 */
.header-banner .bg-image {
    z-index: 1;
}

.header-banner .banner {
    z-index: 1;
}

/* 浮动内容区域样式 */
.bf-floating-content-section {
    position: relative;
    z-index: 100;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.95) 0%, rgba(56, 103, 214, 0.95) 100%);
    color: white;
    padding: 80px 0;
    margin-top: -50vh;
    margin-bottom: -50vh;
    transform: translateY(50vh);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 0;
}

.bf-floating-content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(56, 103, 214, 0.1) 100%);
    backdrop-filter: blur(20px);
    z-index: -1;
}

.bf-floating-content-section .bf-pc-core-suite-home {
    position: relative;
    z-index: 2;
}

.bf-floating-content-section h1 {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.bf-floating-content-section p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.bf-floating-content-section .btn {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.bf-floating-content-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* 浮动按钮样式 */
.bf-floating-demo-btn {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.4);
    border-radius: 50px;
    padding: 15px 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.bf-floating-demo-btn:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.6);
}

.bf-floating-demo-btn:active {
    transform: translate(-50%, -50%) scale(0.98);
}

/* 或者如果你想要它在页面顶部浮动 */
.bf-floating-demo-btn-top {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    border-radius: 50px;
    padding: 15px 40px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* 响应式设计 MAX SCREEN */
@media (max-width: 768px) {
    .bf-floating-demo-btn {
        padding: 12px 30px;
        font-size: 14px;
    }

    .bf-floating-banner-section {
        top: -20%;
        padding: 30px 0;
    }

    .bf-floating-content-section {
        padding: 60px 0;
        margin-top: -40vh;
        margin-bottom: -40vh;
        transform: translateY(40vh);
    }
}

@media (max-width: 576px) {
    .bf-floating-demo-btn {
        padding: 10px 25px;
        font-size: 12px;
        left: 50%;
        right: auto;
        width: auto;
        max-width: 250px;
    }

    .bf-floating-banner-section {
        top: -10%;
        padding: 10px 0;
    }

    .bf-floating-content-section {
        padding: 40px 0;
        margin-top: -30vh;
        margin-bottom: -30vh;
        transform: translateY(30vh);
    }
    
    .bf-floating-content-section .btn {
        display: block;
        margin-bottom: 10px;
        margin-left: 0 !important;
    }
}

/* 响应式设计 MIN SCREEN */
@media (min-width: 576px) {
  .ml-30 {
    margin-left: 1.875rem;
  }
}

@media (min-width: 992px) {

    .bf-text-mt-40-lg {
        margin-top: 40px;
    }

    .bf-p-mb-30-lg {
      margin-bottom: 30px;
    }
}