﻿/* 产品列表容器 */
.product-container {
    display: flex;
    flex-wrap: wrap;
    margin: 30px 0;
    gap: 2%;
}

/* 左侧sidebar */
.product-sidebar {
    width: 25%;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* 右侧产品列表 */
.product-list {
    width: 73%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* 服务项目标题 */
.sidebar-title {
    background: #dc000a;
    color: white;
    font-weight: bold;
    padding: 15px;
    margin: 0;
}

/* 服务项目列表 */
.service-list {
    padding: 15px;
}

.service-list a {
    display: block;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}

.service-list a:hover {
    color: #dc000a;
}

/* 联系我们版块 */
.contact-box {
    margin-top: 30px;
}

.contact-info {
    padding: 15px;
    color: #333;
    line-height: 1.8;
}

/* 产品项 */
.product-item {
    width: calc(33.33% - 14px);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.product-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.product-image img {
    width: 100%;
    height: auto;
    transition: all 0.3s;
}

.product-image:hover img {
    opacity: 0.8;
}

.product-image:hover .product-link {
    opacity: 1;
}

.product-link {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s;
    color: white;
    background: rgba(220, 0, 10, 0.8);
    padding: 10px 15px;
    border-radius: 30px;
    text-decoration: none;
}

.product-name {
    padding: 10px;
    background: #f8f8f8;
    transition: all 0.3s;
}

.product-item:hover .product-name {
    background: #dc000a;
    color: white;
}

/* 分页 */
.pagination {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a.active,
.pagination a:hover {
    background: #dc000a;
    color: white;
    border-color: #dc000a;
}

/* 响应式设计 */
@media (max-width: 991px) {
    .product-sidebar,
    .product-list {
        width: 100%;
    }
    
    .service-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .service-list a {
        border-bottom: none;
        padding: 5px 10px;
        background: #f8f8f8;
        border-radius: 4px;
    }
    
    .contact-box {
        display: none;
    }
    
    .product-item {
        width: calc(50% - 10px);
    }
}

@media (max-width: 767px) {
    .product-item {
        width: 100%;
    }
}