/* 产品展示页样式表 */

/* 页面内部Banner */
.inner-banner {
    position: relative;
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.inner-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../image/pro.jpg') center/cover no-repeat;
    opacity: 0.3;
    z-index: 0;
}

.inner-banner-content {
    position: relative;
    z-index: 1;
    text-align: right !important;
    color: #fff;
    padding-right: 100px;
    padding-top: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 40px;
}

.inner-banner-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    display: inline-block;
    border-bottom: 3px solid #ff0000;
    padding-bottom: 10px;
}

.inner-banner-subtitle {
    font-size: 24px;
    font-weight: 300;
    opacity: 0.95;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}


/* 主内容区域 */
.main-content {
    padding: 60px 0;
}


.product-container {
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.pro-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.pro-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #007bff;
}

.pro-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* 产品卡片链接样式 */
.product-category-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-category-link:hover,
.product-category-link:focus,
.product-category-link:active {
    text-decoration: none;
    color: inherit;
}

/* 产品类别卡片 */
.product-category {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-category:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 123, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-category:hover .product-overlay {
    opacity: 1;
}

.overlay-content {
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s;
}

.product-category:hover .overlay-content {
    transform: scale(1);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.product-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.category-link {
    display: inline-flex;
    align-items: center;
    color: #007bff;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.category-link i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.category-link:hover {
    color: #0056b3;
}

.category-link:hover i {
    transform: translateX(3px);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .inner-banner {
        height: 280px;
    }
    
    .inner-banner-title {
        font-size: 2rem;
    }
    
    .inner-banner-subtitle {
        font-size: 1rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .inner-banner {
        height: 220px;
    }
    
    .inner-banner-title {
        font-size: 1.8rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pro-title {
        font-size: 1.8rem;
    }
    
    .pro-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .inner-banner {
        height: 180px;
    }
    
    .inner-banner-title {
        font-size: 1.5rem;
    }
    
    .inner-banner-subtitle {
        font-size: 0.9rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .pro-title {
        font-size: 1.5rem;
    }
}

