/* 产品列表页样式 */
.product-list {
    padding: 4rem 0;
    background: #f8f9fa;
}

.category-title {
    color: #0750bdda;
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}
.product-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
    box-shadow: 0 1px 18px rgba(0, 0, 0, 0.05); /* 添加表格阴影 */
}

.product-table th {
    text-align: center;
    background: #0750bdda;
    color: #e6f1ff;
    padding: 1rem;
    /* text-align: left; */
}

.product-table td {
    padding: 1rem;
    text-align: center;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.product-image {
   
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.datasheet-link {
    color: #0750bdda;
    text-decoration: none;
}

.datasheet-link:hover {
    text-decoration: underline;
}

.product-table tr:hover {
    background: #f8f9fa;
}
.datasheet-link img{
    width: 30px;
}
.producttype{
    width: 100%;
    background: #f0f0f0;
    overflow: hidden;
    padding: 15px;
    border-radius: 8px;
}
.producttype ul{
    width: 100%;
    /* display: flex; */
    /* justify-content: center; */
}
.producttype ul li{
    list-style: none;
    margin-right: 10px;
    float: left;
    /* flex-direction: column; */
    /* width: 100px;
    height: 40px;
    text-align: center; */
}
.producttype ul li a{
    color: #0750bdda;
    text-decoration: none;
    
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}
.page-btn {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}
.page-btn.active {
    background-color: #0750bd;
    color: white;
    border-color: #0750bd;
}
.page-btn:hover:not(.active) {
    border-color: #0750bd;
    color: #0750bd;
}
.page-btn.prev, .page-btn.next {
    width: auto;
    padding: 0 12px;
}
/* 响应式调整 */
@media (max-width: 768px) {
    /* .product-table{
        width: 250px;
    } */
    .product-table th,
    .product-table td {
        padding: 10px 4px;
        font-size: 12px;
        max-width: 60px;
        white-space: nowrap; /* 防止文本换行 */
        overflow: hidden; /* 隐藏溢出的内容 */
        text-overflow: ellipsis; /* 使用省略号表示溢出的内容 */
    }
    
    .product-image {
        width: 30px;
        height: 30px;
    }
}
