/**
 * ================================================
 * 文件：product.css
 * 作用：产品展示页面专用样式
 * 说明：仅用于product.html页面
 * ================================================
 */

/* ========== 产品展示页面容器 ========== */
.product-center {
    background: #f5f7fa;
    padding: 40px 0 60px;
    min-height: 600px;
}

/* ========== 左侧导航高亮样式 ========== */
.sidebar-menu li.active a {
    background: var(--color-accent);
    border-left-color: var(--color-accent);
    color: #fff;
}
.sidebar-menu li.active a i {
    color: #fff;
}
.sidebar-menu li a:hover {
    background: var(--color-accent);
    border-left-color: var(--color-accent);
    color: #fff;
}
.sidebar-menu li a:hover i {
    color: #fff;
}

/* ========== 右侧产品内容区 ========== */
.product-content-area {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 30px 40px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    min-height: 500px;
}

.product-content-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-bg-light);
}

.product-content-header h2 {
    font-size: 24px;
    color: var(--color-text);
    font-weight: bold;
}

/* ========== 产品网格布局 ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

/* 产品卡片 */
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8edf2;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 25px rgba(23, 82, 166, 0.15);
}

/* 产品图片容器 */
.product-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #fafbfc;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 产品图片 */
.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

/* 鼠标悬停放大效果 */
.product-card:hover .product-img-wrapper img {
    transform: scale(1.1);
}

/* 产品名称 */
.product-name {
    padding: 15px;
    text-align: center;
    font-size: 14px;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s ease;
    border-top: 1px solid #f0f0f0;
}

.product-card:hover .product-name {
    color: var(--color-primary);
    background: #fafbfc;
}

/* ========== 分页组件 ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-top: 20px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* min-width: 32px; */
    height: 32px;
    padding: 0 3px;
    /* border: 1px solid var(--color-accent); */
    border-radius: 4px;
    /* color: var(--color-accent); */
    font-size: 13px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination a:hover {
    background: var(--color-accent);
    color: #fff;
}

.pagination .current {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.pagination .dots {
    border: none;
    color: #999;
    cursor: default;
}

.pagination .prev,
.pagination .next {
    font-weight: bold;
}

/* ========== 响应式适配 ========== */
@media (max-width: 1024px) {
    .product-content-area {
        padding: 25px 20px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .product-img-wrapper {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .product-center {
        padding: 20px 0 40px;
    }
    
    .product-content-area {
        padding: 20px 15px;
    }
    
    .product-content-header h2 {
        font-size: 20px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-img-wrapper {
        height: 150px;
    }
    
    .product-name {
        font-size: 13px;
        padding: 12px;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .pagination a,
    .pagination span {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-img-wrapper {
        height: 200px;
    }
}