/* 试剂列表页 */
.sS-wall{
    background-color: #f5f6f7;
    padding-bottom: 30px;
}
/* 筛选栏 */
.filters {
    background-color: white;
    margin-top: 0px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    height:36px;
    border-bottom: 1px solid #f8fafd;
}

.filter-group label {
    font-weight: bold;
    width:140px;
    font-size: 13px;
    text-align: center;
    background-color: #f8fafd;
    line-height: 36px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    gap: 10px;
    padding:0 10px;
    height:36px;
}

.filter-options button {
    background-color: #f9f9f9;
    border: none;
    padding: 0px 10px;
    border-radius: 0;
    cursor: pointer;
    font-size: 13px;
    height: 24px;
    line-height: 24px;
}
.filter-options button:hover{
    background-color: #ecf5ff;
    color: #409eff;
}
.filter-options button.active{
    background-color: #ecf5ff;
    color: #409eff;
}


/* 排序选项 */
.sort-options {
    background-color: white;
    padding: 10px 20px;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sort-buttons {
    display: flex;
    gap: 10px;
}

.sort-buttons button {
    background-color: #fff;
    border: none;
    padding: 0px 10px;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    height: 24px;
    line-height: 24px;
}
.sort-buttons button:hover {
    background-color: #ecf5ff;
    color: #409eff;
}

.sort-buttons button.active {
    background-color: #1989fa;
    color: white;
}

/* 产品列表 */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.product {
    background-color: white;
    padding: 10px 15px 15px 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #fff;
}
.product:hover{
    /* box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3); */
    border: 1px solid #409eff;
    cursor: pointer;
}

.product img {
    width: 100%;
    height: auto;
}

.product h4{
    font-size: 14px;
    margin-bottom: 2px;
    text-align: left;
    line-height: 1.2; /* 调整行高，使文字更紧凑 */
    overflow: hidden; /* 截断多余的文字 */
    text-overflow: ellipsis; /* 显示省略号 */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 最多显示两行 */
    -webkit-box-orient: vertical;
    word-break: break-word; /* 允许单词换行 */
    max-height: 3.2em; /* 两行的最大高度 */
}

.product .price {
    color: #FF6629;
    font-weight: bold;
    font-size: 18px;
}

.product del {
    color: #888;
    font-size: 14px;
}

.product .tags {
    margin-top: 5px;
}

.product .tags span {
    background-color: #007bff;
    color: white;
    padding: 1px 7px;
    border-radius: 5px;
    font-size: 12px;
    margin-right: 5px;
}
.product .tags span.self{
    border:1px solid #1690F7;
    color:#1690F7;
    background-color: #fff;
}
.product .tags span.timer{
    border:1px solid #FF6629;
    color:#FF6629;
    background-color: #fff;
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: white;
}

.pagination-info {
    font-size: 14px;
}

.pagination nav {
    display: flex;
    gap: 10px;
}

.pagination button {
    background-color: transparent;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.pagination button.active {
    background-color: #007bff;
    color: white;
}

.pagination-options {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pagination-options label {
    font-size: 14px;
}

.pagination-options select {
    padding: 5px;
    font-size: 14px;
}

.pagination-options input {
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.pagination-options button {
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

/* 试剂详情页 */
/* 产品详细信息 */
.product-info {
    background-color: #fff;
    padding: 20px;
    display: flex;
    gap: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chemical-image{
    border: 1px solid #ebeef5;
}

.chemical-image img {
    width: 100%;
    max-width: 150px;
    height: auto;
}

.chemical-details h2 {
    margin-bottom: 5px;
    font-size: 20px;
    font-weight: bold;
}

.chemical-details p {
    margin-bottom: 10px;
    font-size: 14px;
}

.info-price-row{
    margin-bottom: 5px;
    gap: 20px;
    height: 30px;
    line-height: 30px;
    font-weight: bold;
}

.info-row {
    display: flex;
    gap: 20px;
    margin-bottom: 5px;
    height: 30px;
    line-height: 30px;
}
.info-price{
    color:#FF6629;
}
.info-price strong{
    font-size: 20px;
    font-weight: bold;
}

.info-row span {
    font-weight: bold;
    margin-right: 5px;
}
.info-item{
    width:200px;
}
.info-tit{
    font-weight: bold;
}

/* 规格表格 */
.specifications{
    background-color: white;
    margin-top: 20px;
    padding:20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.specifications table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    padding: 20px;
}
.specifications table tr:hover{
    background-color: #fafafa;
    cursor: pointer;
}
.orangePrice{
    color: #FF7D00;
}
.specifications th,
.specifications td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}

.specifications th {
    background-color: #f9f9f9;
    font-weight: bold;
}

.quantity-btn {
    background-color: transparent;
    border: 1px solid #ccc;
    padding: 5px 10px;
    cursor: pointer;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ccc;
    padding: 5px;
    margin: 0 5px;
}

/* 操作按钮 */
.actions {
    text-align: right;
    margin-top: 20px;
}

.btn-cart {
    background-color: #1690F7;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid #FF7D00;
    color: #FF7D00;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

/* 内容区域 */
.ssContent{
    background-color: white;
    padding: 20px 20px 50px 20px;
    margin:20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 导航栏样式 */
.tab-nav {
    position: sticky;
    top: 0;
    display: flex;
    gap: 20px;
    padding: 10px 20px;
    background-color: white;
    z-index: 1000;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}
.nav-link:hover{
    color: #007bff;
    text-decoration: none;
}

.nav-link.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

/* 内容区域样式 */
.content-section {
    padding: 20px 20px 0px 20px;
    background-color: white;
}

.content-section h3 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 0;
}
.di_content{
    margin-top: 15px;
}

/* 表格样式 */
.chemical-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px auto;
    background-color: white;
}

.chemical-info-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}
.chemical-info-table td:nth-child(odd) {
    background-color: #f9f9f9; /* 隔行背景色 */
}

.chemical-info-table td:first-child {
    font-weight: bold; /* 左侧字段名称加粗 */
}

/* 询价篮 */
.inquireWall{
   background-color: white;
   padding: 20px;
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
}
/* 商品列表 */
.product-list table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}
.inq_tit,.inq_tit div{
    max-width: 300px;
    text-align: left;
}
.product-list th{
    font-weight: bold;
    background-color: #fafafa;
}

.product-list th,
.product-list td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
    border: none;
}
.product-list tr{
    border-bottom: 1px solid #ebeef5;
}

.product-list img {
    width: 50px;
    height: 50px;
    vertical-align: middle;
}

.product-list .quantity-btn {
    background-color: transparent;
    border: 1px solid #ccc;
    padding: 5px 10px;
    cursor: pointer;
}

.product-list .quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ccc;
    padding: 5px;
}
.inquire_text{
    padding: 5px;
    width: 150px;
    border-radius: 3px;
    border: 1px solid #ccc;
}
.product-list .delete-btn {
    background-color: transparent;
    border: 1px solid #ccc;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
}

/* 新增商品表单 */
.add-product-form {
    background-color: #fff;
    padding-top: 30px;
    margin-top: 20px;
}

.add-product-form p {
    margin-bottom: 10px;
}

.add-product-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.add-product-form label {
    width: 100px;
    font-weight: bold;
    line-height: 32px;
    text-align: right;
}

.add-product-form input {
    padding: 5px;
    width: 250px;
    margin-right: 15px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.add-product-form #addProductBtn {
    background-color: #409eff;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

/* 操作按钮 */
.actions {
    text-align: right;
    margin-top: 20px;
}

.btn-primary {
    background-color: #409eff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid #FF7D00;
    color: #FF7D00;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

/* 购物车 */
.cartBg{
   background-color: white;
   padding: 20px;
   margin-bottom: 20px;
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
}
.cartTotal{
    margin-top: 20px;
    text-align: right;
    font-size: 16px;
    line-height: 30px;
}
.cartTotal-cal{
    font-weight: bold;
}
.cartActions {
    text-align: right;
    margin-top: 10px;
}
.btn-toPay {
    background-color: #FF7D00;
    border: 1px solid #FF7D00;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

/* 确认订单 */
.confirmBg{
   background-color: white;
   padding: 20px;
   margin-bottom: 20px;
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
}
.conT-20{
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}
.co_secTit{
    font-size: 16px;
    margin-bottom: 15px;
}

@media screen and (max-width: 600px){
    .dialog-lf{
        display: none;
    }
    .form-group.log-group{
       /* margin-top: 20px;*/
       margin-bottom: 10px;
    }
    .dialog-login .dialog-body{
        width: 340px;
    }
    .dialog-rg{
        padding: 20px 10px;
        width: 340px;
    }
    .logTipCheck{
        margin: 20px 0 10px 0;
    }
    .log-close{
        top: 10px !important;
        right: 10px !important;
    }
    .dialog-bind-bg .dialog-bind{
        width: 340px;
    }
    .log-typeImg{
        margin-top: 10px;
    }
    .log-radio label{
        font-size: 14px;
    }
    .dialog-bind-tit h2{
        font-size: 16px;
    }
}