.box-product {
    width: 100%;
    min-height: 280px;
    /*padding: 15px;*/
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.box-product .image-box {
    height: 400px;
    overflow: hidden;
    margin-bottom: 12px;
    /*border-radius: 6px;*/
}

.box-product .image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.box-product:hover .image-box img {
    transform: scale(1.1);
}

.box-product .title {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    height: 40px;
    padding-bottom: 5px;
    overflow: hidden;
}

/* 新增：商品信息容器样式（标题+价格+按钮） */
.product-info {
    text-align: center;
    margin-top: auto; /* 靠下对齐，保留你原有flex布局逻辑 */
    padding: 0 10px; /* 补充少量左右内边距，避免内容贴边 */
}

/* 新增：价格样式 */
.box-product .price {
    font-size: 18px;
    font-weight: 700;
    color: #e63946; /* 醒目红色，可调整 */
    margin: 8px 0 12px; /* 与标题/按钮保持间距 */
    line-height: 1;
}

/* 新增：购买按钮样式 */
.box-product .buy-btn {
    width: 80%;
    padding: 10px 0;
    background: #ffffff;
    color: #000000;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin: 0 auto 10px; /* 居中+底部留白，不超出容器 */
    border: 1px solid #000000;
}

/* 新增：按钮悬停效果 */
.box-product .buy-btn:hover {
    background: #000000;
    color: #ffffff;
}

.box-product:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}




/* 详情页主容器 */
.product-detail {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}
/* 图片展示区 */
.product-detail .product-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
/* 缩略图列表 */
.product-detail .thumbnail-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
}
.product-detail .thumbnail-item {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}
.product-detail .thumbnail-item.active {
    border-color: #009688;
}
.product-detail .thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 主图展示 */
.product-detail  .main-image {
    width: 100%;
    height: 400px;
    border-radius: 6px;
    overflow: hidden;
}
.product-detail .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 产品信息区 */
.product-detail .product-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
/* 产品标题 */
.product-detail .product-name {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
}
/* 产品价格 */
.product-detail .product-price-wrap {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.product-detail .product-price {
    font-size: 28px;
    font-weight: 700;
    color: #e63946;
}
.product-detail .product-price span {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}
/* 规格选择区 */
.product-detail .spec-group {
    margin-bottom: 15px;
}
.product-detail .spec-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: block;
}
/* 第一层规格（如尺寸） */
.product-detail .spec-option-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}
.product-detail .spec-option {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.product-detail .spec-option:hover {
    border-color: #009688;
}
.product-detail .spec-option.active {
    background: #009688;
    color: #fff;
    border-color: #009688;
}
/* 第二层规格（如材质，依赖第一层选择） */
.product-detail .sub-spec-wrap {
    padding-left: 10px;
    border-left: 2px solid #eee;
    display: none;
}
.product-detail .sub-spec-wrap.show {
    display: block;
}
/* 数量选择 */
.product-detail .num-select {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}
.product-detail .num-btn {
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
}
.product-detail .num-input {
    width: 60px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}
/* 操作按钮 */
.product-detail .btn-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.product-detail .cart-btn {
    flex: 1;
    height: 48px;
    line-height: 48px;
    text-align: center;
    background: #009688;
    color: #fff;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}
.product-detail .buy-btn {
    flex: 1;
    height: 48px;
    line-height: 48px;
    text-align: center;
    background: #e63946;
    color: #fff;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.product-detail-b2b {
    margin-top: 20px;
}

/* 图片区域 */
.product-detail-b2b .product-gallery {
    padding-right: 20px;
}
.product-detail-b2b .main-img-wrapper {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 20px;
    background: #fafafa;
    margin-bottom: 12px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-detail-b2b #mainImg {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.product-detail-b2b .thumb-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.product-detail-b2b .thumb-item {
    width: 70px;
    height: 70px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
}
.product-detail-b2b .thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-detail-b2b .thumb-item.active {
    border-color: #009688;
}

/* 产品信息 */
.product-detail-b2b .product-info-b2b {
    padding-left: 20px;
}
.product-detail-b2b .product-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}
.product-detail-b2b .product-desc {
    font-size: 16px;
    margin-bottom: 16px;
    color: #333;
}
.product-detail-b2b .price-box {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}
.product-detail-b2b .price {
    font-size: 26px;
    color: #e53935;
    font-weight: bold;
}
.product-detail-b2b .moq {
    font-size: 14px;
    color: #666;
    margin-left: 10px;
}
.product-detail-b2b .inquiry-btn {
    width: 180px;
    height: 42px;
    line-height: 42px;
    background-color: #ffffff;
    color: #000000;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    margin: 10px 0 25px;
    border: 1px solid #000000;
    font-size: 15px;
}
.product-detail-b2b .inquiry-btn:hover {
    background-color: #000000;
    color: #ffffff;
}
    /* 参数表 */
.product-detail-b2b .product-spec-b2b {
    padding-left: 20px;
}
.product-detail-b2b .param-table {
    width: 100%;
    font-size: 14px;
    color: #333;
}
.product-detail-b2b .param-table tr td {
    padding: 8px 0;
    vertical-align: top;
}
.product-detail-b2b .param-table tr td:first-child {
    width: 120px;
    color: #666;
}
/* 富文本容器基础样式（可选） */
.product-detail-b2b .content {
    width: 100%;
    overflow: hidden; /* 防止图片溢出容器 */
}

/* 核心：控制富文本内所有图片的样式 */
.product-detail-b2b .content img {
    /* 1. 移动端/PC端自适应（必加） */
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;

    /* 2. 图片居中显示（必加） */
    display: block;
    margin: 0 auto 16px !important; /* 左右居中 + 底部间距 */

    /* 3. 最大宽度限制（避免图片过大拉伸变形，可自定义） */
    object-fit: contain; /* 保持图片比例，不裁剪 */

    /* 4. 圆角美化（可选，根据需求调整） */
    border-radius: 4px;

    /* 5. 禁止图片拖拽/选中（可选，商品详情常用） */
    user-select: none;
    -webkit-user-drag: none;

    /* 6. 图片之间的间距（可选） */
    margin-bottom: 20px;
}

/* 额外：富文本段落与图片之间的间距（可选） */
.product-detail-b2b .content p img {
    margin-top: 12px;
    margin-bottom: 12px;
}


    /* 外层容器基础样式 */
.section-product-box {
    width: 100%;
    background: #ffffff;
    padding: 30px 0;
}

/* 标题区域样式 */
.section-product-box .box-header {
    margin-bottom: 25px;
    text-align: center;
}

.section-product-box .box-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-product-box .box-header h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #009688; /* Layui主色调，可调整 */
}

/* 产品列表容器 - 适配layui栅格间距 */
.section-product-box .box-content {
    width: 100%;
}

/* 产品项核心样式 */
.section-product-box .product-item {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* 保证所有产品项高度一致 */
}

/* 产品项hover交互效果 */
.section-product-box .product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* 图片容器样式 - 图片在上核心布局 */
.section-product-box .product-img-box {
    width: 100%;
    height: 200px; /* 固定图片高度，保证统一展示 */
    overflow: hidden;
}

.section-product-box .product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例，裁剪超出部分 */
    transition: transform 0.4s ease;
}

/* 鼠标悬停图片放大效果 */
.section-product-box .product-item:hover .product-img-box img {
    transform: scale(1.08);
}

/* 产品信息容器 */
.section-product-box .product-info {
    flex: 1; /* 占满剩余空间，保证按钮靠下 */
    padding: 15px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* 产品标题样式 */
.section-product-box .product-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 产品价格样式 */
.section-product-box .product-price {
    font-size: 18px;
    font-weight: 700;
    color: #e63946; /* 醒目红色突出价格 */
    margin-bottom: 15px;
    line-height: 1;
}

/* 查看详情按钮样式 */
.section-product-box .product-btn {
    width: 80%;
    padding: 8px 0;
    background: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin: 0 auto; /* 按钮居中 */
    margin-top: auto; /* 按钮靠下对齐 */
}

.section-product-box .product-btn:hover {
    background: #000000;
    color: #ffffff;
}