/* ==================== 产品列表页样式 ==================== */

/* 主内容区域 */
.main-content {
    min-height: 60vh;
    background: white;
}

/* 产品分类标签 - 使用首页样式 */
.product-tabs {
    display: flex;
    justify-content: center;
    gap: 10%;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.product-tabs1 {
    display: flex;
    justify-content: center;
    gap: 2%;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.product-tabs1 .tab-item {
    padding: 4px 24px;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: inline-block;
    border: 2px solid transparent;
}

.product-tabs1 .tab-item:hover {
    background: #ffb503 !important;
    color: white !important;

    text-decoration: none !important;
}

.product-tabs1 .tab-item.active {
    background: #ffb503 !important;
    color: white !important;


    font-weight: 600 !important;
}

.product-tabs .tab-item {
    padding: 4px 24px;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: inline-block;
    border: 2px solid transparent;
}

.product-tabs .tab-item:hover {
    background: #8d0004 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    text-decoration: none !important;

}

.product-tabs .tab-item.active {
    background: #8d0004 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(141, 0, 4, 0.3) !important;

    font-weight: 600 !important;
}

/* ==================== 页面Banner ==================== */
.page-banner {
    position: relative;
    width: 100%;

    overflow: hidden;
    margin-bottom: 0;
}

.page-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-banner-title {
    font-size: 48px;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInDown 0.8s ease-out;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 16px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #FFD700;
}

.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.6);
}

/* 动画效果 */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* ==================== 产品列表区域 ==================== */
.product-list-section {
    padding: 10px 0;
    background: #f8f9fa;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.product-list-section.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 分类导航 */
.category-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7%;
    margin-bottom: 50px;
    padding: 15px;
    background: white;
    border-radius: 3px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.category-item {
    padding: 5px 26px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-item:hover {
    border-color: #8d0004;
    color: #8d0004;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(141, 0, 4, 0.2);
}

.category-item.active {
    background: linear-gradient(135deg, #8d0004, #c41e3a);
    color: white;
    border-color: #8d0004;
    box-shadow: 0 5px 15px rgba(141, 0, 4, 0.3);
}

/* 产品网格容器 */
.product-grid-container {
    margin-bottom: 20px;
    position: relative;
    min-height: 500px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateY(20px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.product-grid.active {
    opacity: 1;
    position: relative;
    transform: translateY(0);
    pointer-events: auto;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.product-card.show {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
    flex: 1;
}

/* 产品图片 */
.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 1;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(141, 0, 4, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
}

.overlay-content i {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
}

.overlay-content span {
    font-size: 18px;
    font-weight: bold;
}

/* 产品信息 */
.product-info {
    padding: 10px;
    text-align: center;
}

.product-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.product-card:hover .product-title {
    color: #8d0004;
}

.product-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.product-date {
    font-size: 13px;
    color: #999;
}

.product-date i {
    margin-right: 5px;
}

.product-more {
    font-size: 14px;
    color: #8d0004;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-card:hover .product-more {
    transform: translateX(5px);
}

.product-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-more i {
    transform: translateX(3px);
}

/* ==================== 分页导航 ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #8d0004;
    color: white;
    border-color: #8d0004;
    transform: translateY(-2px);
}

.pagination .active {
    background: #8d0004;
    color: white;
    border-color: #8d0004;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== 相关推荐区域 ==================== */
.recommend-section {
    padding: 80px 0;
    background: white;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.recommend-section.animate {
    opacity: 1;
    transform: translateY(0);
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.recommend-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.recommend-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.recommend-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.recommend-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.recommend-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recommend-item:hover .recommend-image img {
    transform: scale(1.1);
}

.recommend-info {
    padding: 20px;
}

.recommend-info h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recommend-info p {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== 响应式设计 ==================== */

@media (min-width: 2200px) {
    .section-title {
        font-size: 48px !important;
    }
    .product-tabs .tab-item{
        font-size: 26px !important;
    }

    .breadcrumb {
        font-size: 24px !important;
    }
    .product-title {
        font-size: 24px !important;
    }
    .pages {
        font-size: 30px;
    }
}
/* 平板设备 */
@media (max-width: 1024px) {
    .page-banner {
        height: 350px;
    }
    
    .page-banner-title {
        font-size: 38px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .recommend-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 移动设备 */
@media (max-width: 768px) {
    .page-banner {
        height: 280px;
    }
    
    .page-banner-title {
        font-size: 32px;
    }
    
    .breadcrumb {
        font-size: 14px;
    }
    

    .recommend-section {
        padding: 50px 0;
    }
    
    .product-tabs {
        gap: 15px;
    }
    
    .tab-item {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .product-image-wrapper {
        height: 220px;
    }
    
    .product-info {
        padding: 7px;
    }
    
    .product-title {
        font-size: 18px;
    }
    
    .recommend-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pagination a,
    .pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* 小型移动设备 */
@media (max-width: 480px) {
    .page-banner {
        height: 220px;
    }
    
    .page-banner-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .breadcrumb {
        font-size: 12px;
        gap: 8px;
    }
    

    .recommend-section {
        padding: 40px 0;
    }
    
    .product-tabs {
        gap: 8px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }
    
    .tab-item {
        padding: 8px 16px;
        font-size: 13px;
        margin: 2px;
        flex: 0 0 auto;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-image-wrapper {
        height: 200px;
    }
    
    .product-info {
        padding: 5px;
    }
    
    .product-title {
        font-size: 16px;
    }
    
    .product-desc {
        font-size: 13px;
    }
    
    .overlay-content i {
        font-size: 36px;
    }
    
    .overlay-content span {
        font-size: 16px;
    }
    
    .pagination {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .pagination a,
    .pagination span {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
        padding: 0 10px;
    }
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.no-products i {
    font-size: 48px;
    color: #ddd;
}

.no-products p {
    margin: 0;
    font-size: 16px;
}

