/* 新闻列表页面样式 */
.main-content {
    padding: 20px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.manufacturers{padding: 20px;}
/* 面包屑导航 */
.breadcrumb {
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.breadcrumb a {
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.breadcrumb a:hover {
    color: #007bff;
}

.breadcrumb i {
    margin: 0 10px;
    color: #666;
    flex-shrink: 0;
}

.breadcrumb span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50%;
}

/* 新闻列表区域 */
.news-section {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

/* 新闻列表 */
.news-list {
    display: grid;
    gap: 20px;
}

.news-item {
    padding: 20px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.news-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.news-item a {
    text-decoration: none;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-item h3 {
    font-size: 16px;
    margin: 0;
    flex: 1;
    padding-right: 20px;
}

.news-date {
    color: #666;
    font-size: 14px;
    white-space: nowrap;
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

.pagination a {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.pagination .current {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pagination .disabled {
    color: #999;
    pointer-events: none;
}

/* 文章详情页样式 */
.article-section {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 20px;
}

.article-header {
    margin-bottom: 30px;
    text-align: center;
}

.article-header h1 {
    font-size: 28px;
    color: #333;
    margin: 0 0 15px;
    line-height: 1.4;
}

.article-meta {
    color: #666;
    font-size: 14px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.article-views i {
    margin-right: 5px;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

.article-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 30px;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.prev-article,
.next-article {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 45%;
}

.prev-article span,
.next-article span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prev-article:hover,
.next-article:hover {
    color: #007bff;
}

.prev-article i,
.next-article i {
    font-size: 14px;
    flex-shrink: 0;
}

.related-articles {
    margin-top: 40px;
}

.related-articles h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.related-article-item {
    background: #fff;
    padding: 15px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    min-width: 0;
}

.related-article-item:hover {
    transform: translateY(-5px);
}

.related-article-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    width: 100%;
}

.related-article-item h3 {
    font-size: 1.1rem;
    color: #333;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
    min-width: 0;
}

.related-article-item time {
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
    padding-left: 15px;
    text-align: right;
    flex-shrink: 0;
    min-width: 45px;
}

/* Related Products */
.related-products {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.product-grid {
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: #007bff #f0f0f0;
}

.product-grid::-webkit-scrollbar {
    height: 6px;
}

.product-grid::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.product-grid::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 3px;
}

.product-link {
    color: #333;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.product-link:hover {
    color: #007bff;
    border-color: #007bff;
    background: #f8f9fa;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .article-section {
        padding: 20px;
    }
    
    .article-header h1 {
        font-size: 24px;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .prev-article,
    .next-article {
        max-width: 100%;
    }
    
    .news-item {
        padding: 15px;
    }
    
    .news-item h3 {
        font-size: 14px;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .related-article-item {
        padding: 10px;
    }
    
    .related-article-item h3 {
        font-size: 0.9rem;
    }

    .related-article-item time {
        padding-left: 10px;
        font-size: 0.8rem;
    }
} 

/* 产品信息样式 */
.product-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    padding-top: 10px;
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.product-image {
    flex: 0 0 633px;
    display: flex;
    flex-direction: column;
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.product-image .product-actions {
    display: flex;
    flex-direction: column;
}

.product-image .product-actions .btn {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    height: 40px;
}

.product-image .product-actions .btn i {
    font-size: 16px;
}

.product-details {
    flex: 1;
}

.product-details h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.product-details h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-details h3 a:hover {
    color: #007bff;
}

.product-meta p {
    margin-bottom: 10px;
    color: #666;
}

.product-meta strong {
    color: #333;
    margin-right: 10px;
}

.product-meta a {
    color: #007bff;
    text-decoration: none;
}

.product-meta a:hover {
    text-decoration: underline;
}

.product-params h4 {
    font-size: 18px;
    color: #333;
}

.product-params table {
    width: 100%;
    border-collapse: collapse;
}

.product-params tr {
    border-bottom: 1px solid #eee;
}

.product-params td {
    padding: 2px;
    color: #666;
    font-size: 12px;
}

.product-params td:first-child {
    width: 40%;
    color: #333;
    font-weight: 500;
}

.product-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.product-actions .btn {
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
}

.product-actions .btn-primary {
    background: #007bff;
    color: white;
}

.product-actions .btn-outline {
    border: 1px solid #007bff;
    color: #007bff;
}

.product-actions .btn:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .product-info {
        flex-direction: column;
    }

    .product-image {
        flex: none;
        width: 100%;
    }
    
    .product-image .product-actions {
        flex-direction: row;
    }
    
    .product-image .product-actions .btn {
        flex: 1;
    }
} 