 /* 产品头部 */
.products-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    padding: 200px 0 100px;
    position: relative;
    overflow: hidden;
}

.products-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
    background-size: 300px;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.products-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.products-header .breadcrumb {
    justify-content: center;
}

.products-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.products-header .breadcrumb-item.active {
    color: white;
}

.products-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}
 /* 产品列表样式 */
.products-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.products-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
}

.products-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    border-radius: 2px;
}

.products-section-subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 40px;
}

/* 产品筛选器 */
.product-filters {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(13, 110, 253, 0.05);
    transition: all 0.3s ease;
}

.product-filters:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.filter-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-section-title i {
    color: #0d6efd;
}

.filter-btn {
    padding: 12px 28px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    background: white;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    transition: all 0.3s ease;
    z-index: -1;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: #0d6efd;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.filter-btn:hover::before,
.filter-btn.active::before {
    left: 0;
}

/* 产品卡片 */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    border: 1px solid rgba(13, 110, 253, 0.05);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(13, 110, 253, 0.2);
    border-color: rgba(13, 110, 253, 0.2);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card-image {
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.product-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.4) 0%, rgba(13, 202, 240, 0.4) 100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .product-card-image::after {
    opacity: 1;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    animation: pulse 2s infinite;
    
}

.product-badge.hot {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

.product-badge.new {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.product-badge.top {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    position: relative;
    padding-left: 35px;
}

.product-badge.top::before {
    content: '★';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
}

.product-badge.recommend {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    padding-left: 35px;
}

.product-badge.recommend::before {
    content: '★';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
}

/* 置顶产品样式 */
.product-card.featured {
    border: 2px solid rgba(13, 110, 253, 0.2);
    box-shadow: 0 15px 40px rgba(13, 110, 253, 0.15);
}

.product-card.featured::before {
    transform: scaleX(1);
}

.product-card.featured::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    z-index: 1;
}

.product-card.featured .featured-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: #0d6efd;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 推荐产品样式 */
.product-card.recommended {
    border: 2px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
}

.product-card.recommended::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(1);
}

.product-card.recommended::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    z-index: 1;
}

.product-card.recommended .recommended-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: #667eea;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.product-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    border: none;
    color: #adb5bd;
    font-size: 1.2rem;
}

.product-favorite:hover {
    background: white;
    color: #f5576c;
    transform: scale(1.1);
}

.product-favorite.active {
    color: #f5576c;
}

.product-card-content {
    padding: 30px;
    position: relative;
}

.product-card-category {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.product-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.product-card:hover .product-card-title {
    color: #0d6efd;
    transform: translateX(5px);
}

.product-card-description {
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.product-feature {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(13, 202, 240, 0.05) 100%);
    color: #0d6efd;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(13, 110, 253, 0.1);
}

.product-card:hover .product-feature {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    color: white;
    border-color: transparent;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
    color: #ffc107;
    font-size: 0.9rem;
}

.product-rating .rating-count {
    color: #6c757d;
    font-size: 0.85rem;
    margin-left: 5px;
}

.product-card-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0d6efd;
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.product-price span {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 400;
}

.product-btn {
    padding: 12px 28px;
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
    color: white;
}

.product-card-quickview {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: white;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    color: #0d6efd;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.product-card:hover .product-card-quickview {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* 分页样式 */
.pagination {
    justify-content: center;
    margin-top: 60px;
}

.page-link {
    color: #0d6efd;
    border: 2px solid #e9ecef;
    padding: 10px 18px;
    margin: 0 5px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-link:hover {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    border-color: #0d6efd;
    color: white;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    border-color: #0d6efd;
    color: white;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .products-header h1 {
        font-size: 2.2rem;
    }

    .products-header {
        padding: 150px 0 80px;
    }

    .navbar-nav-wrapper {
        border-radius: 20px;
        padding: 15px 20px;
    }

    .nav-link {
        padding: 10px 15px !important;
    }

    .product-card-image {
        height: 220px;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .product-favorite {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .product-rating {
        font-size: 0.8rem;
    }
}

@media (max-width: 992px) {
    .product-card-footer {
        flex-direction: column;
        gap: 15px;
    }

    .product-card-footer .product-btn {
        width: 100%;
        justify-content: center;
    }
}