

/* 产品分类页样式 - 与新闻中心样式完全一致 */
.product-main {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: 600px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 产品中心横幅样式 - 与新闻中心横幅样式一致 */
.product-banner {
    background: #1e40af;
    color: white;
    padding: 80px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.product-banner h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
}

.product-banner p {
    font-size: 18px;
    opacity: 0.9;
}

/* 左侧边栏样式 */
.sidebar-left {
    padding-right: 30px;
}

.widget-box {
    background: white;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.widget-title {
    background: #1e40af;
    color: white;
    padding: 15px 20px;
    text-align: center;
}

.widget-title h4 {
    font-size: 1.2rem;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.widget-title p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 产品分类菜单 - 与新闻中心样式一致 */
.category-nav {
    list-style: none;
    padding: 15px;
    margin: 0;
}

.category-nav li {
    border-bottom: 1px solid #f0f0f0;
}

.category-nav li:last-child {
    border-bottom: none;
}

.category-nav a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-nav a:hover {
    background: #f0f7ff;
    color: #1e40af;
}

.category-nav .current-category > a {
    background: #e3f2fd;
    color: #1e40af;
    border-left: 3px solid #1e40af;
}

/* 左侧分类导航 - 与新闻中心样式统一 */
.category-sidebar {
    background: white;
    border-radius: 0;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.category-sidebar h3 {
    color: #1e40af;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1e40af;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: #1e40af;
}

/* 联系我们小工具 - 修复右侧对齐问题 */
.widget-box .contact-info {
    padding: 20px;
    line-height: 1.6;
    text-align: left;
}

.widget-box .contact-info h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-align: left;
}

.widget-box .contact-info p {
    margin: 8px 0;
    color: #666;
    font-size: 0.9rem;
    text-align: left;
    word-wrap: break-word;
}

/* 优化联系信息中的电话文字样式 */
.widget-box .contact-info .phone {
    font-weight: 500;
    color: #333;
    display: block;
    margin: 8px 0;
}

/* 确保联系我们区域在不同屏幕尺寸下的显示效果 */
@media (max-width: 768px) {
    .widget-box .contact-info {
        padding: 15px;
    }
    
    .widget-box .contact-info h4 {
        font-size: 1rem;
    }
    
    .widget-box .contact-info p {
        font-size: 0.85rem;
    }
}

/* 新闻资讯小工具 */
.side-news {
    padding: 20px;
}

.side-news a {
    display: block;
    padding: 8px 0;
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s ease;
}

.side-news a:last-child {
    border-bottom: none;
}

.side-news a:hover {
    color: #1e40af;
}

/* 面包屑导航 - 与新闻中心样式一致 */
.breadcrumb-nav {
    margin-bottom: 30px;
}

.breadcrumb-nav h2 {
    font-size: 2rem;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 600;
    text-align: left; /* 确保标题左对齐 */
}

.breadcrumb {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-item {
    margin-right: 10px;
}

.breadcrumb-item:not(:last-child)::after {
    content: ">";
    margin-left: 10px;
    color: #999;
}

.breadcrumb-item a {
    color: #1e40af;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #666;
}

/* 产品网格布局 */
.product-list-container {
    width: 100%;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-card-link {
    display: block;
    text-decoration: none;
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.product-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-item:hover .product-thumbnail {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
}

.badge-hot {
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.product-title {
    padding: 20px;
    text-align: center; /* 确保产品标题居中对齐 */
}

.product-title h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

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

.product-title a:hover {
    color: #1e40af;
}

/* 分页导航样式 */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    color: #333;
    background: white;
    border: 1px solid #ddd;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
}

.pagination .current {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
}

.pagination .prev, .pagination .next {
    font-weight: 600;
}

/* 无产品提示 */
.no-products {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .product-main {
        padding: 20px 0;
    }
    
    .sidebar-left {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .breadcrumb-nav h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .widget-title {
        padding: 12px 15px;
    }
    
    .widget-title h4 {
        font-size: 1.1rem;
    }
    
    .contact-info, .side-news {
        padding: 15px;
    }
    
    .product-title {
        padding: 15px;
    }
    
    .product-title h3 {
        font-size: 1.1rem;
    }
}
