
.productlist-body {
    background: #FFF;
}
/* 产品列表 */
.productlist-card {
    width: calc(25% - 12px);
    margin-right: 16px;
    margin-bottom: 24px;
    background: #FFF;
    float: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

/* 每行第四个产品的margin-right设为0 */
.productlist-card:nth-child(4n) {
    margin-right: 0;
}

.productlist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.productlist-card .product-img {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    overflow: hidden;
    position: relative;
    background-color: #f8f9fa;
}

.productlist-card .product-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}

.productlist-card:hover .product-img img {
    transform: scale(1.01);
}

/* 产品列表 标签浮标 */
.productlist-card::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.productlist-card:hover::before {
    opacity: 1;
}

.productlist-info {
    padding: 8px;
    height: auto;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.productlist-info h3 {
    font-size: 14px;
    height: 44px;
    line-height: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;/*限制文本显示的最大行数，必须与 -webkit-box-orient: vertical 配合使用才生效*/
    -webkit-box-orient: vertical;/*确保文本是垂直排列的，这样 -webkit-line-clamp 才能正确计算行数*/
    overflow: hidden;
    text-overflow: ellipsis;/*在文本被截断的位置显示 省略号（...）*/
    transition: color 0.3s ease;
}

.productlist-info h3 a {
    color: #333;
    text-decoration: none;
}

.productlist-card:hover .productlist-info h3 a {
    color: #667eea;
}

.productlist-info .productlist-tags {
    font-size: 14px;
    /* line-height: 20px; */
    color: #888;
    /* padding-bottom: 18px; */
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    height: 45px;/*lineheigth20+20+gap5*/
}

.productlist-info .productlist-tags a {
  display: inline-block;
  padding: 2px 6px;
  background-color: #f5f5f5;
  color: #666;
  text-decoration: none;
  border-radius: 16px;
  font-size: 12px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.productlist-info .productlist-tags a:hover {
  color: #0071e3;
  border-color: #0071e3;
  transform: translateY(-1px);
}

.productlist-info .productlist-bottom {
    display: flex;
    justify-content: flex-end;/*靠右*/
    align-items: center;
    height: 30px;
    margin-top: 8px;
    padding-top: 5px;
    border-top: 1px solid #f5f5f5;
}

.productlist-info .productlist-price {
    font-size: 14px;
    font-weight: 600;
    color: #ff6b6b;
    line-height: 1;
}

.productlist-info .productlist-views {
    width: auto;
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
}

/* 产品标签 */
.product-tags {
  font-size: 14px;
  margin-bottom: 15px;
  padding-bottom: 0px;
  /* border-bottom: 1px solid #eee; */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.product-tags a {   
  display: inline-block;
  padding: 4px 12px;
  background-color: #f5f5f5;
  color: #666;
  text-decoration: none;
  border-radius: 16px;
  font-size: 13px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  line-height: 1.25em;
}

.product-tags a:hover {
  background-color: #e8f0fe;
  color: #0071e3;
  border-color: #0071e3;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 113, 227, 0.15);
}

.product-tags a:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 113, 227, 0.2);
}
/*产品列表 筛选模块样式*/
.select_case {
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    padding: 15px 15px 15px 20px;
    overflow: hidden;
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 10px;
}

.filter-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    line-height: 30px;
    flex-shrink: 0;
}

.filter-options {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    transition: all 0.3s ease;
}

/* 768px以下 - 移动端 点击展开和收起 */
@media (max-width: 768px) {
    .filter-section {
        position: relative;
        overflow: hidden;
        max-height: 30px; /* 默认只显示展开按钮 */
        transition: max-height 0.3s ease;
    }
    
    .filter-section.expanded {
        max-height: 805px; /* 展开时的最大高度 */
    }
    
    .expand-toggle {
        display: block;
        width: 100px;
        text-align: center;
        margin: 0 auto;
        padding: 5px 0;
        margin-top: 0px;
        background-color: #f5f5f5;
        color: #0071e3;
        border: 1px solid #e0e0e0;
        border-radius: 20px;
        font-size: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .expand-toggle:hover {
        background-color: #e8f4fd;
        border-color: #0071e3;
    }
    
    .expand-toggle.collapsed::after {
        content: '展开筛选';
    }
    
    .expand-toggle.expanded::after {
        content: '收起筛选';
    }
}
/* 769px以上 - 点击按钮隐藏 */
@media screen and (min-width: 769px) {
    .expand-toggle{
        display: none;
    }
}
.filter-btn, .filter-btn-active{
    display: inline-block;
    white-space: nowrap;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.filter-btn-light {
    background-color: #f5f5f5;
    color: #666666;
    border: 1px solid #e0e0e0;
}

.filter-btn-light:hover {
    background-color: #e8f4fd;
    color: #0071e3;
    border-color: #0071e3;
}

.filter-btn-active {
    background-color: #0071e3;
    color: #ffffff !important;
    border: 1px solid #0071e3;
}

/* 选中标签 容器 */
.selected-tags-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    display: none;
}

.selected-tags-container.show {
    display: block;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.selected-tag {
    position: relative;
    background-color: #0071e3;
    color: #ffffff;
    padding: 8px 16px 8px 32px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 20px;
    display: inline-flex;
    align-items: center;
}

.selected-tag::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: url('../images/checked.svg') no-repeat center center;
    background-size: contain;
}

.remove-tag {
    position: relative;
    margin-left: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    display: inline-block;
}

.remove-tag::before,
.remove-tag::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 2px;
    background-color: #ffffff;
    top: 7px;
    left: 2px;
    transform: rotate(45deg);
    border-radius: 1px;
}

.remove-tag::after {
    transform: rotate(-45deg);
}
@media screen and (max-width: 768px) {
    .selected-tags-container {
        margin-top: 10px;
        padding-top: 10px;
    }
    .selected-tag {
    border-radius: 20px;
    font-size: 12px;
    line-height: 14px;
}
}
/* 768px-1200px之间 - 平板/小桌面 */
@media (max-width: 1200px) and (min-width: 769px) {
    /* 商品列表 - 3列显示 */
    .productlist-card {
        width: calc(33.333% - 10.67px);
    }
    
    /* 每行第三个产品的margin-right设为0 */
    .productlist-card:nth-child(4n) {
        margin-right: 16px;
    }
    
    .productlist-card:nth-child(3n) {
        margin-right: 0;
    }
}

/* 768px以下 - 移动端 */
@media (max-width: 768px) {
    /* 商品列表 - 2列显示 */
    .productlist-card {
        width: calc(50% - 8px);
        margin-right: 16px;
    }
    
    /* 每行第二个产品的margin-right设为0 */
    .productlist-card:nth-child(3n),
    .productlist-card:nth-child(4n) {
        margin-right: 16px;
    }
    
    .productlist-card:nth-child(2n) {
        margin-right: 0;
    }
}
/* 
*
*产品详情 
*/

.product-top{
    display: flex;
    width: 100%;
    background: #ffffff;
    height: auto;
    transition: all 0.3s ease;
    padding-bottom: 15px;
    border-radius: 0 0 12px 12px;
}
@media (max-width: 992px) {
    .product-top {
        flex-direction: column;
        align-items: center;
        padding-bottom: 0;
    }
}
.product-top-left{
    flex-shrink: 0;
    background: #ffffff;
    transition: all 0.3s ease;
}

.product-bigimg{
    width: 100%;
    overflow: hidden;
}
.jqzoom{
    float:left;
    border:none;
    position:relative;
    padding:0;
    cursor:pointer;
    margin:0px;
    display:block;
}
/* 768px-992px之间 - 平板 */
@media (max-width: 992px) {
    .product-top-left {
        width: 100%;
        max-width: 442px;
        margin: 0 auto;
    }
    
    /* 产品属性值宽度自适应 */
    .product-attr-value {
        width: calc(100% - 80px);
        /* height: auto; */
    }
}

/* 768px以下 - 手机 */
@media (max-width: 768px) {
    
    .product-top-left {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }
    
    /* 产品主图在小屏幕上居中显示 */
    .spec-preview {
        display: flex;
        overflow:hidden;
        justify-content: center;
    }
    
    .spec-preview .jqzoom {
        width: 100%;
        max-width: 420px;
    }
    
    .spec-preview .jqzoom img {
        width: 100%;
        height: auto;
    }
    
    /* 产品属性值宽度进一步调整 */
    .product-attr-value {
        width: calc(100% - 75px);
        font-size: 13px;
    }
}
.product-top-right{
    flex: 1;
    background: #FFF;
    padding: 20px 15px;
    transition: all 0.3s ease;
    position: relative;
    height: auto;
}

@media (max-width: 992px) {
    .product-top-right {
        width: 100%;
        padding: 20px 15px 10px 15px;
    }
}
@media (max-width: 768px) {
    .product-top-right {
        width: 100%;
        margin-bottom: 0px;
        padding: 20px 15px 10px 15px;
    }
}
.product-title{
    height: auto;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}
.product-title h1{
    font-size:24px;
    
    color: #333;
    font-weight: bold; 
}
@media (max-width: 768px) {
    .product-title{
        text-align: left;
    }
     .product-title h1{
        font-size:20px;
    }
}

.product-attr{
    padding-top: 5px;
    font-size:14px;
    height: auto;
    max-height: 370px;
    transition: all 0.3s ease;
    position: relative;
}
.product-line-container {
    position: absolute;
    bottom: 48px;
    left: 15px;
    right: 15px;
}
.product-line{
    height: 1px;
    background-color: #e5e5e5;
    margin: 20px 0;
}
@media (max-width: 992px) {
    .product-line-container {
        position: relative;
        bottom: 0;
        left: 0;
        right: 0;
    }
    .product-line{
        position: relative;
        left: 0px;
        right: 0px;
        bottom: 0px;
        height: 1px;
        background-color: #e5e5e5;
        margin: 20px 0;
    }
}
.product-button-area{
    position: absolute;
    clear: both;
    width: 100%;
    bottom: 3px;
    left: 15px;
    right: 15px;
}
@media (max-width: 992px) {
    .product-button-area {
        position: relative;
        bottom: 0;
        left: 0;
        right: 0;
    }
}
@media (max-width: 768px) {
    .product-button-area {
        position: relative;
        bottom: 0;
        left: 0;
        right: 0;
    }
}
.product-reads{
    position: absolute;
    bottom: 30px;
    right: 15px;
    z-index:9999;
    display: inline-block;
    font-size: 14px;
    color: #646566;
    display: flex;
    align-items: center;
    gap: 5px;
    width:auto; 
    transition: all 0.3s ease;
}

@media (max-width: 992px) {
    .product-reads {
        position: absolute;
        bottom: 5px;
        right: 0px;
        z-index:9999;
    }
}

@media (max-width: 992px) {
    .product-attr {
        max-height: none;
    }
}

.consult-button-wrapper {
    position: relative;
    display: inline-block;
}
.consult-button-wrapper .button {
    margin: 0 2px 10px ;
}

.consult-button-wrapper .button:hover {
    background-color: #0056b3;
}
@media (max-width: 768px) {
    .consult-button-wrapper.mobile-display {
        display: none;
    }
}
/* 电话咨询按钮样式 */
.tel-button-wrapper {

}

.tel-info {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    padding: 8px 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.tel-button-wrapper:hover .tel-info {
    opacity: 1;
    visibility: visible;
}

.tel-info p {
    margin: 0;
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

.qrcode-container {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    text-align: center;
}

.consult-button-wrapper:hover .qrcode-container {
    opacity: 1;
    visibility: visible;
}

.qrcode-image {
    width: 150px;
    height: 150px;
    display: block;
    margin: 0 auto 5px;
}

.qrcode-container p {
    margin: 0;
    font-size: 12px;
    color: #333;
    line-height: 1.4;
}

.product-attr-name{
    width:80px;
    float: left; 
    line-height: 28px;
    font-weight: bold; 
    color:#333;
}

.product-attr-value{
    width: calc(100% - 80px); 
    height: auto; 
    line-height: 28px; 
    float: left;
    padding-left: 1px;
    z-index: 1; 
    color:#666; 
    font-size:14px;
    /* 最多显示3行文本，超出显示省略号 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* 兼容其他浏览器 */
    display: -moz-box;
    -moz-line-clamp: 3;
    -moz-box-orient: vertical;
}

/* 产品详情 产品介绍 */
.product-description {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 0px 10px 0px 10px!important;
    height: auto !important;
}
.product-feature-tag {
    display: inline-block;
    color: white;
    padding: 3px 8px;
    margin: 4px 6px 4px 0;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.3;
}

/* 产品详情 标签 颜色 */
.tag-color-blue {
    background-color: #1677ff;
}

.tag-color-green {
    background-color: #01b85c;
}

.tag-color-orange {
    background-color: #f78001;
}

.tag-color-purple {
    background-color: #722ed1;
}
.tag-color-red {
    background-color: rgb(245, 34, 45);
}
.tag-color-tag {
    background-color: #999;
}
.tag-color-pink {
    background-color: #b3006e;
}

/* 产品详情 */
.product-detail-main{
    margin-top: 15px;
}

.product-detail-left p{
    margin: 1em 0;
    color: #333;
}
.product-detail-left img{
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}
.product-detail-right{

}

/* 推荐商品样式 */
.recommended-products {
    margin-bottom: 30px;
}
.recommended-products h3 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.recommended-product-item {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.recommended-product-item:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}
.recommended-product-item .product-img {
    width: 100%;
    height: 270px;
    overflow: hidden;
    margin-bottom: 10px;
    border-radius: 4px;
}
.recommended-product-item .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.recommended-product-item:hover .product-img img {
    transform: scale(1.05);
}
.recommended-product-item .product-title {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.recommended-product-item .product-title a {
    color: #333;
    text-decoration: none;
}
.recommended-product-item .product-title a:hover {
    color: #0071e3;
}

/* 推荐商品信息容器 */
.recommended-product-item .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;/*控制弹性容器内子元素的排列方向，column表示垂直方向*/
}

/* 推荐商品描述样式 */
.recommended-product-item .product-description {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin-top: 5px;
    display: none;
}

/* 响应式设计 - 992px以下 */
@media (max-width: 992px) {
    /* 推荐商品变为左右结构 */
    .recommended-product-item {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
        padding: 10px;
    }
    
    /* 调整商品图片大小和位置 */
    .recommended-product-item .product-img {
        width: 120px;
        height: 120px;
        margin-bottom: 0;
        margin-right: 15px;
        flex-shrink: 0;
    }
    
    /* 显示商品描述 */
    .recommended-product-item .product-description {
        padding-top: 5px !important;
        padding-bottom: 4px !important;
        display: -webkit-box;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    /* 调整商品标题位置和宽度 */
    .recommended-product-item .product-title {
        font-size: 16px;
        font-weight: bold;
        flex: 0 0 auto;
        margin-bottom: 5px;
        -webkit-line-clamp: 2;
    }
    
    /* 调整商品信息容器 */
    .recommended-product-item .product-info {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
}

/* 产品详情 选项卡 */
.tab-nav {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 0px;
    gap: 5px;
}

.tab-item {
    padding: 6px 24px;
    font-size: 16px;
    font-weight: 700;
    color: #666;
    background-color: #f5f5f5;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}
@media screen and (max-width: 768px) {
    .tab-item {
        padding: 6px 12px;
        font-size: 14px;
    }
}
.tab-item:hover {
    color: #0071e3;
    border-radius: 10px 10px 0 0;
    border-bottom-color: #0071e3;
}

.tab-item.active {
    color: #0071e3;
    border-radius: 10px 10px 0 0;
    border-bottom-color: #0071e3;
    background-color: #f0f7ff;
}

.tab-content {
    background-color: #fff;
    padding: 15px 0px;
    border-radius: 4px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}
/*当前位置*/
.combg em{background: url(../images/guanzhu.gif) no-repeat left center;width: 15px;height: 10px;display: inline-block;vertical-align: middle;}
/* 响应式设计 */
@media (max-width: 768px) {
    .select_case {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .filter-section {
        gap: 8px;
    }
    
    .filter-item {
        flex-direction: column;
        gap: 8px;
        padding-bottom: 10px;
    }
    
    .filter-label {
        width: auto;
        line-height: 24px;
    }
    
    .filter-btn {
        font-size: 13px;
    }
    
    .selected-tags-container {
        margin-top: 15px;
        padding-top: 15px;
    }
}
    
/* 产品详情页响应式设计 */
@media (max-width: 768px) {
    .product-attr {
        overflow: visible;
    }
    
    .product-attr-value {
        width: calc(100% - 80px);
    }
    
    /* 产品主图在小屏幕上居中显示 */
    .spec-preview {
        display: flex;
        justify-content: center;
    }
    
    .spec-preview .jqzoom {
        width: 100%;
        max-width: 420px;
    }
    
    .spec-preview .jqzoom img {
        width: 100%;
        height: auto;
    }
}