
/* 标签导航 */
.product-tabs {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.product-tabs-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    padding: 0 20px;
}

.product-tab-Item {
    padding: 16px 24px;
    text-decoration: none;
    color: #666;
    font-size: 16px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

    .product-tab-Item.active {
        color: #4a90ff;
        border-bottom-color: #4a90ff;
    }

    .product-tab-Item:hover {
        color: #4a90ff;
    }

/* 主内容区域 */
.product-main-content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* 商品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    min-width:0px;
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    }

.product-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: #f5f5f5;
}

.product-info {
    padding: 16px;
}

.product-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.product-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.product-price {
    font-size: 18px;
    color: #ff4757;
    font-weight: 500;
}

.product-price-unit {
    font-size: 12px;
    font-weight: normal;
}

.product-tag {
    background: #f0f9ff;
    color: #4a90ff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
}

    .product-tag.hot {
        background: #fff1f0;
        color: #ff4757;
    }

    .product-tag.new {
        background: #f0f9ff;
        color: #4a90ff;
    }

    .product-tag.sale {
        background: #fff7e6;
        color: #fa8c16;
    }

/* 分页组件 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    gap: 5px;
}

.pagination-item {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    background: white;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
    padding: 0 12px;
}

    .pagination-item:hover {
        border-color: #4a90ff;
        color: #4a90ff;
    }

    .pagination-item.active {
        background: #4a90ff;
        color: white;
        border-color: #4a90ff;
    }

    .pagination-item.disabled {
        cursor: not-allowed;
        opacity: 0.5;
    }

        .pagination-item.disabled:hover {
            border-color: #e5e7eb;
            color: #666;
        }

.pagination-ellipsis {
    color: #999;
    padding: 0 8px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .banner h1 {
        font-size: 32px;
    }

    .banner {
        padding: 40px 20px;
    }

    .product-tabs-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .product-tab-Item {
        padding: 14px 16px;
        font-size: 14px;
        white-space: nowrap;
    }

    .product-filter-container {
        flex-direction: column;
        align-items: stretch;
    }

    .product-search-box {
        width: 100%;
    }

    .product-search-input {
        flex: 1;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-image {
        height: 180px;
    }

    .product-info {
        padding: 12px;
    }

    .product-title {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .product-desc {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .product-price {
        font-size: 16px;
    }

    .product-tag {
        font-size: 11px;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-image {
        height: 150px;
    }

    .product-main-content {
        padding: 0 10px;
        margin: 20px auto;
    }
}

/* 加载动画 */
@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}
