/* 产品中心页面样式 */

/* 子导航区域 - product页面专属 */
.sub-nav-section {
    background-color: #ffffff;
}

/* 页面内容区域 - product页面专属 */
.page-content {
    background-color: #f5f5f5;
}

/* 产品布局 */
.product-layout {
    display: flex;
    gap: 30px;
}

.product-sidebar {
    width: 280px;
    flex-shrink: 0;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    align-self: flex-start;
}

.sidebar-header {
    background-color: #c30b00;
    padding: 20px;
    text-align: center;
}

.sidebar-header h2 {
    font-size: 30px;
    font-family: Microsoft YaHei;
    color: #fff;
    margin: 0 0 5px;
    font-weight: normal;
}

.sidebar-header p {
    font-size: 14px;
    font-family: Arial;
    color: #fff;
    margin: 0;
    letter-spacing: 1px;
}

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

.product-category li {
    font-size: 18px;
    font-family: Arial;
    color: #333333;
    transition: all 0.3s ease;
    position: relative;
    padding: 15px 20px 15px 80px;
}

.product-category li a {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-category li::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #666666;
}

.product-category li:hover,
.product-category li.active {
    color: #c30b00;
}

.product-main {
    flex: 1;
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.product-item {
    background-color: #fff;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-image {
    width: 100%;
    height: 230px;
    overflow: hidden;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.15);
}

.product-name {
    font-size: 18px;
    color: #333333;
    margin: 0;
    font-weight: normal;
    transition: color 0.3s ease;
    cursor: pointer;
}

.product-name:hover {
    color: #c30b00;
}

/* 分页组件 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
}

.page-btn:hover:not(.page-disabled):not(.page-active) {
    background-color: #27477d;
    color: #ffffff;
}

.page-active {
    background-color: #00bcd4;
    border-color: #00bcd4;
    color: #fff;
}

.page-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    color: #6c757d;
    margin-left: 10px;
}

.page-info input {
    width: 50px;
    height: 30px;
    border: 1px solid #e0e0e0;
    text-align: center;
    margin: 0 5px;
    font-size: 14px;
    outline: none;
}

.page-info input:focus {
    border-color: #27477d;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .page-info {
        display: none;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .page-btn {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

/* 移动端产品中心样式 */
@media (max-width: 768px) {
    .product-layout {
        flex-direction: column;
    }
    
    .product-sidebar {
        width: 100%;
    }
    
    .product-category {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 15px 20px;
    }
    
    .product-category li {
        padding: 10px 0 10px 20px;
        font-size: 14px;
    }
    
    .product-category li::before {
        left: 0;
        width: 6px;
        height: 6px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-image {
        height: 100px;
    }
    
    .product-name {
        font-size: 14px;
    }
}
