/* 核心内容区最大宽度限制 */
.container-main {
    max-width: 1200px;
    margin: 0 auto;
}
/* 顶部导航栏样式 */
.navbar-yubang {
    background-color: #f8f3e6;
    border-bottom: 1px solid #e6d9b8;
}
/* 英雄区样式 - 重点修改 */
.hero-section {
    position: relative; /* 为浮动表单做定位 */
    height: 500px; /* 固定banner高度 */
    overflow: hidden;
}
/* banner图样式 */
.hero-banner {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保证图片铺满且比例不变 */
}
/* 浮动表单样式 */
.float-form {
    position: absolute;
    top: 50%;
    right: 8%; /* 靠右浮动 */
    transform: translateY(-50%);
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 380px; /* 固定表单宽度 */
    z-index: 10;
}
/* 按钮统一样式 */
.btn-quote {
    border: none;
    font-weight: 600;
    color: #000;
    background: linear-gradient(to bottom, #f9d768, #e6a820);
    border-radius: 8px;
}
.btn-quote-purple {
    color: #000;
    background: linear-gradient(to bottom, #f7c850, #d49618);
    border-color: #a67210;
}
.btn-quote1 {
    /* 基础尺寸：匹配参考图的宽高比例（可根据需求调整） */
    min-width: 380px;
    height: 60px;
    /* 文字样式：匹配参考图的字体、大小、颜色、间距 */
    font-size: 18px;
    font-weight: 600;
    color: #ffffff; /* 纯白色文字 */
    font-family: Arial, sans-serif; /* 匹配英文默认字体 */
    letter-spacing: 0.5px; /* 轻微字间距，贴近参考图 */
    text-align: center;
    line-height: 60px; /* 文字垂直居中 */
    text-transform: capitalize; /* 首字母大写（可选，匹配参考图文字格式） */
    /* 核心背景：紫蓝渐变，精准匹配参考图色调 */
    background: linear-gradient(to right, #9c27f5, #4169e1);
    /* 边框与圆角：无外边框，大圆角贴合参考图 */
    border: none;
    border-radius: 8px; /* 圆角弧度匹配参考图的椭圆感 */
    /* 其他：去除默认样式，增强交互 */
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 30px; /* 左右内边距，适配文字长度 */
    outline: none;
    /* 轻微阴影增强立体感 */
    box-shadow: 0 2px 8px rgba(156, 39, 245, 0.3);
}
.btn-quote1:hover{
    color:#fff;
}
.btn-quote2 {
    /* 基础尺寸：匹配参考图的宽高比例（可按需调整） */
    min-width: 280px;
    height: 60px;
    /* 文字样式：匹配参考图的字体、大小、颜色、权重 */
    font-size: 18px;
    font-weight: 600; /* 中粗体，贴合参考图文字厚度 */
    color: #333333; /* 深灰色文字，替代纯黑更贴近原图 */
    font-family: Arial, sans-serif; /* 匹配英文默认字体 */
    letter-spacing: 0.3px; /* 轻微字间距，还原排版风格 */
    text-align: center;
    line-height: 60px; /* 文字垂直居中 */
    /* 核心背景：浅金色底色，贴合参考图色调 */
    background-color: #f8e09e; /* 精准匹配的浅金色 */
    /* 边框与圆角：浅金色边框+适中圆角，贴合参考图 */
    border: 1px solid #e9d088; /* 略深一点的金色边框，增强质感 */
    border-radius: 8px; /* 圆角弧度匹配参考图的柔和感 */
    /* 其他：去除默认样式，增强交互 */
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 20px; /* 左右内边距，适配文字长度 */
    outline: none;
    /* 轻微内阴影，模拟参考图的哑光质感 */
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) inset;
}
.btn-quote2:hover{
    color:#333333;
}
.intro-btn{
    margin-left: 300px;
}
.btn-demo {
    background-color: #e74c3c;
    border: none;
    color: #fff;
    font-weight: 600;
}
/* 产品卡片样式 */
.product-card {
    border: 1px solid #232323;
    overflow: hidden;
    margin-bottom: 30px;
}
.product-img {
    background-color: #d5d5d5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-img img {
    max-width: 100%;
    height: auto;
}
.product-card p{
    margin-bottom: 0;
}
.pro-right{
    display: flex;
    flex-direction: column;
    background: #fff;
    justify-content: space-between;
}
/* 产品图库轮播样式 */
.product-gallery-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.product-gallery {
    display: flex;
    transition: transform 0.3s ease;
    gap: 5px;
}
.product-gallery img {
    min-width: calc(100% / 6);
    height: 150px;
    object-fit: cover;
    border: 1px solid #e0e0e0;
}
/* 轮播按钮样式 */
.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}
.gallery-btn-left {
    left: 5px;
}
.gallery-btn-right {
    right: 5px;
}
/* 第一部分：Why Choose YUBANG */
.part1-section {
    padding: 50px 0;
}
.part1-section .title {
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}
.part1-section .advantage-item{
    display: flex;
    align-items: center; /* 关键：图标与文字区域整体垂直居中 */
    gap: 16px; /* 图标和文字之间的间距（替代 margin，更规范） */
    margin-bottom: 50px; /* 多个item之间的间距，可选 */
}
.part1-section .advantage-item p{
    margin-bottom: 0;
    line-height: 22px;
}
.part1-section .advantage-item .icon-box {
    width: 100px; /* 可根据实际图标大小调整 */
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.part1-section .advantage-item img {
    max-width: 100%;
    max-height: 100%;
}

.part1-section .banner-box {
    overflow: hidden;
    text-align: right;
}
.part1-section .banner-box img {
    height: auto;
}
.part1-section .btn-quote-banner {
    background-color: #f1c40f;
    border: none;
    color: #000;
    font-weight: 600;
    padding: 10px 30px;
    border-radius: 4px;
    margin-top: 20px;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .float-form {
        position: static;
        transform: none;
        width: 100%;
        margin: 20px auto;
    }
    .hero-section {
        height: auto;
    }
}

/* 中屏 (992px - 1799px) */
@media (min-width: 992px) and (max-width: 1799px) {

}


/* 小屏 (576px - 991px) - 平板 */
@media (min-width: 576px) and (max-width: 991.98px) {
    .product-gallery img {
        height: unset;
    }
    .intro-btn{
        margin-left: 0;
    }

}


/* 超小屏 (≤575px) - 手机 */
@media (max-width: 575.98px) {
    .product-gallery img {
        height: unset;
    }

    .part1-section{
        padding:0;
    }

    .btn-quote1 {
        min-width: 100%;
        height: 50px;
        line-height: 50px;
        font-size: 16px;
        border-radius: 8px;
    }

    .btn-quote2 {
        min-width: 100%;
        height: 50px;
        line-height: 50px;
        font-size: 16px;
        border-radius: 6px;
    }

    .intro-btn{
        margin-left: 0;
    }


}

