
.product_head_box{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 3.64583vw;
}
.link{
    width: 100%;
    height: 1px;
    border-bottom: 1px solid #f3f3f3;
}
.hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    color: white;
}

.hero-title {
    font-size:4.1666vw;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.hero-title::after{
    content: '';
    position: absolute;
    bottom: -0.52vw;
    width: 6.40625vw;
    height: 3px;
    background: white;
    top:110%;
    left: 50%;
    transform: translate(-50%, -50%);
    
}
nav {
    background: #ffffff;
    width: 100%;
}

.nav-container {
    display: flex;
    width:100vw;
    /* left: 10.9895vw; */
    position: absolute;
    z-index: 9;
    bottom: 5.520vw;
}

.nav-links {
    display: flex;
    flex-direction: row;
    list-style: none;
    cursor: pointer;
    width: 100%;
    justify-content: center;  /* 主轴居中 */
    align-items: center; 
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 1.25vw;
    transition: color 0.3s ease;
    position: relative;
    text-align: center;
    width:7.5vw;
    white-space: pre-wrap;
    margin-right: 2.3958vw;
}
.nav-links a:nth-child(5) {
    width:8.75vw;
}

/* 默认选中状态 */
.nav-links .active {
    color: white;
}

.nav-links .active::after,
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: white;
    bottom: -0.9895vw;
    left: 0;
    transition: width 0.3s ease;
}
.nav-links .active::after,
.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: white;
}

.custom-search {
    width: 23.125vw; /* 控制搜索框最大宽度 */
  }
  
  /* 自定义输入框样式 */
  .custom-search-input {
    border-radius: 25px 0 0 25px !important; /* 左侧圆角 */
    border-right: none !important; /* 去除右侧边框 */
  }
  
  /* 自定义按钮样式 */
  .custom-search-btn {
    border-radius: 0 25px 25px 0 !important; /* 右侧圆角 */
    border-left: none !important; /* 去除左侧边框 */
    background-color: #fff; /* 保持背景色一致 */
    transition: all 0.3s;
  }
  
  /* 悬停效果 */
  .custom-search-btn:hover {
    background-color: #f8f9fa;
  }
  
  /* 焦点状态 */
  .custom-search-input:focus {
    box-shadow: none !important;
    border-color: #ced4da !important;
  }

.Checkbtn{
    max-width:199px;
    max-height:51px;
    margin-top:77px;
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid #E6E6E6;
    overflow: hidden;
    /* width: 25.46875vw; */
    margin: 10px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.product-card:hover .card-title{
    color: #C9062C;
}

.product-image {
    height: 15.05208vw;
    width: 100%;
    object-fit: contain;
    object-position: bottom;
}


.dierbufen2{
    /* text-indent: 2em; */
}

.disanbufen2 li{
    display: flex;
    align-items: baseline;
}
.disanbufen2 li::before{
    min-width: 1rem;
    min-height: 1rem;
    content:'';
    background: url("../images/banner_img/piont.png") no-repeat center center;
    background-size: contain;
    display: inline-flex;
    margin:0 0.5rem 0 0;
}

.card-text{
    font-size: 0.8375vw;
    color: #999;
    text-align: left;
    height: 3.4375vw;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2; /* 限制显示的行数为2 */
    line-height: 1.7708vw;
}
.card-title{
    font-size: 1.1458vw;
    color: #27322A;
    text-align: left;
    width: 100%;
    white-space: nowrap;
    font-weight: bold;
    margin-top: 1.61458vw;
    height: 2.4375vw;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1; /* 限制显示的行数为2 */
}

.pagination-custom .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.product-content {
    padding: 1.25rem;
    width: 100%;
   
}

.quantity-input {
    max-width: 100px;
}

#mainImage{
    object-fit: contain;
}

.main-img {
    height: 27.6041vw;
    width: 32.1354vw;
    border: 1px solid #E6E6E6;
}
.thumb-img {
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    width: 11.1458vw;
    height: 8.75vw;
    margin-bottom: 0.625vw;
    border: 1px solid #E6E6E6;
}
.thumb-img:hover {
    border-color: #C9062C;
}
.thumb-img.active {
    border-color: #C9062C;
}

.advantage-list {
    list-style-type: none;
    padding-left: 0;
    font-size: 1.25vw;
}
.advantage-list li {
    padding-top: 1.25vw;
}
.advantage-list li:first-child {
    padding-top: 0px;
}

/* 询价diavlog */
/* 遮罩层样式 */
.overlay {
    display: none;
    position: fixed;
    top: 4%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* 内容容器样式 */
.content-box {
    width: 75vw;
    height: 42vw;
    background: white;
    position: relative;
    overflow: auto; /* 内容溢出时显示滚动条 */
}

/* 关闭按钮示例样式（可选） */
.close-btn {
    position: absolute;
    top: 0.5208vw;
    right: 0.5208vw;
    cursor: pointer;
    padding: 5px 10px;
    background: #eee;
}


@media screen and (max-width: 768px) {

    .product-card{
        margin:0;
    }
    .product_head_box{
        flex-wrap: wrap;
        gap: 1rem;
    }
    .custom-search {
        width: 100% !important;
    }
    .dierbufen2, .dierbufen3, .disanbufen2{
        font-size: 14px !important;
        line-height: 1.66 !important;
    }
}