/* 商品列表页面样式 */

/* 主要内容区 */
.main-content {
    padding: 20px 0 60px 0;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
    transition: all 0.3s;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #667eea;
}

.breadcrumb i {
    font-size: 12px;
    color: #999;
}

.breadcrumb span {
    color: #333;
    font-weight: 500;
}

/* 筛选栏 */
.filter-bar {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-group.result-count {
    margin-left: auto;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.filter-options {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
    cursor: pointer;
}

.filter-option:hover {
    background: #e8e8e8;
    color: #667eea;
}

.filter-option.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: #667eea;
}

.filter-option i {
    font-size: 14px;
}

.price-select {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
}

.price-select:hover {
    background: #e8e8e8;
    color: #667eea;
}

.result-count {
    font-size: 14px;
    color: #666;
}

.count-number {
    color: #ff6b6b;
    font-weight: 700;
    font-size: 16px;
}

.filter-option .count {
    font-size: 12px;
    opacity: 0.8;
}

/* 商品列表 */
.price-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-select {
    padding: 8px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
}

.price-select:hover {
    border-color: #667eea;
}

.price-select:focus {
    border-color: #667eea;
}

/* 结果统计 */
.result-count {
    font-size: 14px;
    color: #666;
}

.count-number {
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
}

/* 商品列表 */
.goods-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.goods-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: all 0.3s;
    display: block;
}

.goods-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.goods-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}

.goods-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.goods-card:hover .goods-image img {
    transform: scale(1.05);
}

.goods-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.badge-热销 {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
}

.badge-新品 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.badge-推荐 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

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

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

.badge-new {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.goods-info {
    padding: 16px;
}

.goods-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
    height: 42px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.goods-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.goods-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: #ff6b6b;
}

.original-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.goods-sales {
    font-size: 12px;
    color: #999;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.empty-icon {
    font-size: 80px;
    color: #e0e0e0;
    margin-bottom: 24px;
}

.empty-state h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 14px;
    color: #999;
    margin-bottom: 32px;
}

.btn-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.page-btn:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
}

.page-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group.result-count {
        margin-left: 0;
        text-align: center;
    }

    .filter-options {
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .filter-option {
        white-space: nowrap;
    }

    .price-select {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .goods-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .filter-options {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .filter-option {
        flex-shrink: 0;
    }

    .goods-title {
        font-size: 14px;
    }

    .current-price {
        font-size: 18px;
    }
}
