/* pro.css - 产品列表页面样式 */

/* Banner 样式 */
.hnlin_banner {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hnlin_banner_slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hnlin_banner_slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hnlin_banner_slide.active {
    opacity: 1;
}

.hnlin_banner_content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
}

.hnlin_banner_content_item {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hnlin_banner_title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hnlin_banner_subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}

.hnlin_banner_buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeIn 1.5s ease;
}

.hnlin_btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.hnlin_btn_primary {
    background: #3774EB;
    color: white;
}

.hnlin_btn_primary:hover {
    background: #2a68e0;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hnlin_btn_secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.hnlin_btn_secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* 产品列表样式 */
.hnlin_product_list {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.hnlin_container {
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.hnlin_section_title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #333;
    position: relative;
}

.hnlin_section_title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #3774EB;
    border-radius: 2px;
}

.hnlin_product_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.hnlin_product_item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.hnlin_product_item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.hnlin_product_image {
    height: 220px;
    overflow: hidden;
}

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

.hnlin_product_item:hover .hnlin_product_image img {
    transform: scale(1.05);
}

.hnlin_product_content {
    padding: 25px;
}

.hnlin_product_title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.hnlin_product_excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.hnlin_product_meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hnlin_product_category {
    background: #3774EB;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.hnlin_product_version {
    color: #999;
    font-size: 0.9rem;
}

/* 分页样式 */
.hnlin_pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.hnlin_page_num {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    min-width: 40px;
    text-align: center;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hnlin_product_grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .hnlin_banner_title {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .hnlin_banner {
        height: 400px;
    }
    
    .hnlin_banner_title {
        font-size: 2rem;
    }
    
    .hnlin_banner_subtitle {
        font-size: 1rem;
    }
    
    .hnlin_banner_buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hnlin_product_list {
        padding: 60px 0;
    }
    
    .hnlin_section_title {
        font-size: 2rem;
    }
}

@media (max-width: 991px) {
    .hnlin_product_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hnlin_banner {
        height: 350px;
    }
    
    .hnlin_banner_title {
        font-size: 1.8rem;
    }
    
    .hnlin_product_grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hnlin_container {
        padding: 0 15px;
    }
    
    .hnlin_product_list {
        padding: 50px 0;
    }
    
    .hnlin_section_title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .hnlin_pagination {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .hnlin_btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    
    .hnlin_product_item {
        margin-bottom: 0;
    }
    
    .hnlin_product_content {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .hnlin_banner {
        height: 300px;
    }
    
    .hnlin_banner_title {
        font-size: 1.5rem;
    }
    
    .hnlin_banner_content_item {
        padding: 0 15px;
    }
    
    .hnlin_product_content {
        padding: 20px 15px;
    }
    
    .hnlin_product_title {
        font-size: 1.2rem;
    }
}