.product-container {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #d01c1a;
    padding: 15px 0;
    flex-wrap: wrap;
}

.product-title {
    flex: 1;
    min-width: 300px;
    color: #d01c1a;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: bold;
}

.product-image {
    flex-shrink: 0;
    margin-left: 20px;
}

.product-image img {
    max-width: 100px;
    height: auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-image {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .product-image img {
        max-width: 80px;
    }
}

.table-container {
    overflow-x: auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 滚动条样式 - WebKit 浏览器 */
.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #ff0000;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #cc0000;
}

table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
}

th, td {
    padding: 10px 5px;
    border: 1px solid #e0e0e0;
    text-align: center;
    white-space: nowrap;  
    overflow: hidden;    
    text-overflow: ellipsis;  
    max-width: 200px;     
}

/* 首列固定关键样式 */
th:first-child, td:first-child {
    position: sticky;       
    left: 0;                
    background-color: #fff; 
    z-index: 1;             
}

th div, td div {
    font-weight: 600;
    color: #333;
}

thead tr th {
    background-color: #f5f5f5;
}

tbody tr {
    background-color: #ffffff;
    cursor: pointer; 
    transition: background-color 0.3s ease;
}

tbody tr:nth-child(even) {
    background-color: #ededed; 
}

tbody tr:hover {
    background-color: rgba(255, 0, 0, 0.5); 
}

tbody tr:hover td div {
    color: #ffffff; 
}

@media (max-width: 1024px) {
    table {
        min-width: 700px;
    }
    
    th, td {
        padding: 10px;
    }
    
    th div, td div {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    table {
        min-width: 600px;
    }
    
    th, td {
        padding: 8px;
    }
    
    th div, td div {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.5rem;
    }
    
    table {
        min-width: 500px;
    }
    
    th, td {
        padding: 6px 4px;
    }
    
    th div, td div {
        font-size: 0.75rem;
    }
    
    .table-container {
        border-radius: 4px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }
}

.bearing_sl {
    background-color: #d01c1a;
    color: white;
    padding: 8px 15px;
    display: inline-block;
    font-weight: bold;
    margin-bottom: 15px;
    border-radius: 3px;
}

.image-container {
    width: 100%; 
    padding: 20px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center; 
}

.image-placeholder {
    text-align: center;
    color: #666;
    font-size: 1.5rem;
}

.image-placeholder img{ 
    width:100%;
}

@media (max-width: 768px) {
    .image-container {
        min-height: 200px;
    }
    
    .image-placeholder {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .image-container {
        min-height: 150px;
        padding: 10px;
    }
    
    .image-placeholder {
        font-size: 1rem;
    }
}